.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Getting 'Unable to create mutex' exception using IsolatedStorage

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :.NET Framework
Getting the following exception when trying to use IsolatedStorage on a windows 7 machine.  This same code works fine on Windows XP or Vista.  Any insight would be most helpful. Thanks CD Sample method: public static IsolatedStorageFileStream GetIsolatedStorageFileStream(string fileName,FileMode fileMode)         {                          IsolatedStorageFile isolatedStorageFile = IsolatedStorageFile.GetUserStoreForAssembly();                          IsolatedStorageFileStream fileStream;             string existingFile = FindExistingStorageFile(isolatedStorageFile, fileName);             if(!(String.IsNullOrEmpty(existingFile)))             {                 fileStream = new IsolatedStorageFileStream(fileName, fileMode, isolatedStorageFile);             }             else             {                 fileStream = new IsolatedStorageFileStream(fileName, FileMode.Create, isolatedStorageFile);             }             return fileStream;                      } when trying to access the returned stream, I am receiving the following exception. Top Exception Type=System.IO.IsolatedStorage.IsolatedStorageException Source=mscorlib Message=Unable to create mutex. (Exception from HRESULT: 0x80131464) StackTrace: at System.IO.IsolatedStorage.IsolatedStorageFile.nOpen(String infoFile, String syncName) at System.IO.IsolatedStorage.IsolatedStorageFile.Lock() at System.IO.Isolate

View Complete Post

More Related Resource Links

Unable to catch WCF EndpointNotFound exception in SecurityToken.GetToken( . )

I have a set of WCF services that I am integrating with, I can not change them in any way because they are provided by a third party. I use a username/password scheme to authenticate with the services. If the services are not available I get an exception (EndPointNotFoundException) from the SecurityTokenProvider class that I can not catch. I understand why the exception is being thrown, I just need to know how I can handle it so that I can gracefully handle the errors in the user interface. Is there a way I can catch this exception or a better way to handle this scenario? The Exception The exception is thrown from System.IdentityModel.Selectors.SecurityTokenProvider : GetToken( TimeSpan timeout ) public SecurityToken GetToken(TimeSpan timeout) {    SecurityToken token = this.GetTokenCore(timeout);     if (token == null)    {        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.TokenProviderUnableToGetToken, this)));    }     return token;} The channel open part When I open the channel I have it wrapped in exception handling, but none of it seems to trap the SecurityToken exception. I am using the ExceptionHandlingProxyWrapperBase try{    this.Open();} catch( EndpointNotFoundException epnfe ){    // Handle the exception} catch( E

unable to create new table in sql server 2000 enterprise manager on windows7(Operating system)

i have successfuly installed sql server 2000 on windows7 and i am able to browse all the tables and edit aswell(on enterprise manager) but i have a problem while creating new tables it says ' MMC has detected an error in a snap-in' and provides options to either continue with the error or send a report to microsoft ,   Please help regarding this compatibility issue   Thanks in advance !

Unable to Create a New SSP

HI Team,      I was creating a New SSP, its taking a long time so i stopped the SSP in creation by clicking the browser back button. Now i am  not able to create the new SSPs and unable to delte the SSP  I stopped in the middle It says "provisioning in progress" I am not able to delete the ssp which I stopped in the middle while creation We are using Share point 2007 I am new to share point Please advise how to fix this issue Thanks Kumar

Unable to create Web Folders in Windows Server 2008 R2

Hi, We are unable to create web folder from a Windows Server 2008 R2 system as we do in Windows XP. The web url cannot be identified. The web url is an oracle repository application built in 32-bit OS and now we need this to be added in Windows Server 2008 R2 machine. Kindly help.  

Unable to Create a New SSP

HI Team,      I was creating a New SSP, its taking a long time so i stopped the SSP in creation by clicking the browser back button. Now i am  not able to create the new SSPs and unable to delte the SSP  I stopped in the middle It says "provisioning in progress" I am not able to delete the ssp which I stopped in the middle while creation We are using Share point 2007 I am new to share point Please advise how to fix this issue Thanks Kumar

Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

Unable to create a new subscription

Hi, I'm trying to re-create a new subcription on my server. When I tried to connect to the the publisher server, i kept getting an error message saying " SQL server could not retrieve the list of publication for "D..." Additional information: An exception occured while executing a transcat- SQL statement or batch. [Microsoft.sqlserver.connectionInfo} A transport level error has occured when receiving results from the server. [Provide: TCP provide error:0 ] - The specified network name is no longer available] [Microsoft sql server, error 64) I can ping the publisher server and also connect from my subcriber server using remote desktop.  I tried connecting to the publisher server using the sa account. Is this a permission issue? Thank you.

Unable to create instance of proxy class in WCF

Hello, I created proxy class using svcutil.exe and added it in App_Webreference folder. I want to access objects and methods from this proxy. But I am unable to create instance of this proxy class. In inellisence, it is not showing this proxy class. What could be the problem ? I am using VS 2008 and Visual Basic.   Thanks in advance.  Amit Lohakare

Unable to create company account in ax 09

Hi All, I am using ax 09 sp1 with IND Localization standard(Base) package. when i tried to create an company from administrator/Company account it create the company.but when  again i reopen the same form company account  doesnt exist their.after that i checked in SQL server record is their but its not showing in AX(front End). i tired with different SQL server also but same issue persist. kindly suggest me the solution  or cause behind this. I am looking forward for response asap.

Unable to Edit or Create Page under new subsites Moss 2007

I have created new subsites and trying to create a page, but it shows access denied error. Eventhough i have logged in as site collection administrator and given access as full control for subsite and also tried giving master page and style library read access. when i click on create page, I can enter the page name and after that it shows ACCESS DENIED . but the page is physically created and unable to edit.... Appreciate your help on this Issue....    

Rare exception: Unable to read data from the transport connection: An existing connection was forcib

Our .NET 2.0 app relies upon the ability to download xml webpages from URLs.  At startup, we have about 6 boxes in the wild (out of thousands) that are seeing the following inner exception when they try to download an xml page.  System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. (Inner: ) System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. They can get to the URL in their browser just fine, so we know our server is working.  Furthermore, the embedded WebBrowser control in our app can pull up webpages just fine, so I don't think their firewall is blocking our app.  I'm hoping it's just some diagnosible configuration issue.  Here is the snippet of code that does the downloading: WebRequest request = WebRequest.Create(fileToDownload.SourceUri);request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);request.Timeout = (int)DefaultTimeout.TotalMilliseconds;request.Method = "HEAD";WebResponse response = request.GetResponse(); Nothing revolutionary there. (I've also tried it without the HEAD request, without keepalive, and using HTTP 1.0).  And here is the exception: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. StackTrace Infor

unable to create a group using directive services -ASP.net C#

 this is what i used: public void Create(string ouPath, string name)        {            if (!DirectoryEntry.Exists("LDAP://CN=" + name + "," + ouPath))            {                try                {                    DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath);                    DirectoryEntry group = entry.Children.Add("CN=" + name, "group");                    group.Properties["sAmAccountName"].Value = name;                    group.CommitChanges();                }               

unable to create wiki library with bulagarian name via custom ASPX page

hi, I am using one Aspx page where it takes the input from user and create the wiki library with the name entered by User. The issue is , when I am creating name in Eglish it is creating properly. but suppose I give library name  ¿¿¿¿¿¿¿ TEXT 4, I get the following error http://vm2003/ ??????? TEXT 4/Forms/AllPages.aspx?PageView=Shared ?? ??????????. which means ttp://vm2003/ ??????? text / AllPages 4 forms /. Aspx? PageView = shared does not exist. I dont know hwy it is redirecting to this page. but when i check on site , the library gets created with name ??????? TEXT 4 and its URL is http://vm2003/TEXT%204/Forms/AllPages.aspx if you see the bulgarian part is missed, please help.

Unable to create index for view

Hi, I'm including the script for my ProductCategories table but I think it might be very beneficial for you to understand what I'm doing first: As the name implies, the ProducttCategories table is where I store all product categories for an ecommerce site. Furthermore, the CategoryHierarchy column uses the HierarchyID datatype in SQL Server 2008 so that I can have a hierarchy and make suggestions to users who are looking for a product in a category along with all its child categories. Also, in order to make the site as user friendly as possible, I've implemented friendly URLs. Therefore, I need to do a reverse look up when someone requests: Electronics-DigitalCameras-DigitalSLRs to figure out the CategoryID (int) for the Digital SLR's category. I wanted to create an index in the database to make sure these look ups would have pretty good performance and that's where I got stuck. First, I got a message that told me that I couldn't create an index because my view was not bound to schema. And when I tried to do that, I got another error saying "Cannot schema bind view 'dbo.vwProductCategoriesAndPathsOrdered2' because name 'ProductCategories' is invalid for schema binding. Names must be in two-part format and an object cannot reference itself." The view simply creates a category path that looks like this: Electronics > Digital Cameras > Digital SLRs I'd

unable to create site collection using publishing - collaboration portal

i am facing problem creating site collection using publishing - collaboration portal template. i am getting the below error: Event log message was: 'The site template was not provisioned successfully. Delete this site collection in Central Administration, and then create a new site collection.'. Exception was: 'Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page has encountered a critical error. Contact your system administrator if this problem persists. at Microsoft.SharePoint.ApplicationRuntime.SafeControls.IsSafeControl(Type type, String& unsafeErrorMessage)    at Microsoft.SharePoint.WebPartPages.TypeCache.get_Item(Type type)    at Microsoft.SharePoint.WebPartPages.WebPart.WriteXmlGlobal(Boolean disableSafeControlsCheck)    at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope scope)    at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.get_Links()    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartToStore(WebPart webPart, Int32 viewId, String viewGuid)    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked)    at Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.AddWebPartInternal(WebPart webPar

How to create a Custom Exception Handler using Micorosft Exception Handling Application Block?

Dear Friends,Can any one let me know "How to create a Custom Exception Handler using Microsoft Exception Handling Application Blocks"I will be having a set of Exceptions which will be getting maintained in an XML File along with the User Friendly Messages for a particular Exception. Whenever an Exception occurs in the projects first it need to check with the Exceptions present in the XML File and need to display the concerned user friendly message for that particular exception to the user..I am not able to get an idea on "How to start with the Microsoft Exception Handler Application Block" to achieve this". Please help me in this regard...Thanks and Regards,G.V.N.Sandeep.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend