Bug 36980 - System.UnauthorizedAccessException - Access to the path "/~" is denied.
Summary: System.UnauthorizedAccessException - Access to the path "/~" is denied.
Status: RESOLVED NORESPONSE
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 4.2.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Helgi Jónsson
URL:
Depends on:
Blocks:
 
Reported: 2015-12-14 15:59 UTC by Helgi Jónsson
Modified: 2016-04-16 08:34 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Helgi Jónsson 2015-12-14 15:59:49 UTC
Hello,

I am running the latest mono on centos 7 and I really can't get past this error. I have searched everywhere and can't seem to fin anything like it.

Application Exception
System.UnauthorizedAccessException
Access to the path "/~" is denied.

Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): mscorlib.
Exception stack trace:
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006c] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:114 
  at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:78 
  at System.IO.DirectoryInfo.Create () [0x00000] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:143 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:96 
  at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:78 
  at System.IO.DirectoryInfo.Create () [0x00000] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:143 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:96 
  at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:78 
  at System.IO.DirectoryInfo.Create () [0x00000] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:143 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:96 
  at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:78 
  at Umbraco.Core.PluginManager..ctor (IServiceProvider serviceProvider, IRuntimeCacheProvider runtimeCache, Umbraco.Core.Logging.ProfilingLogger logger, Boolean detectChanges) <0x402c0790 + 0x001d6> in <filename unknown>:0 
  at Umbraco.Core.CoreBootManager.Initialize () <0x402b06b0 + 0x00293> in <filename unknown>:0 
  at Umbraco.Web.WebBootManager.Initialize () <0x402afdb0 + 0x000db> in <filename unknown>:0 
  at Umbraco.Core.UmbracoApplicationBase.StartApplication (System.Object sender, System.EventArgs e) <0x402af540 + 0x001b2> in <filename unknown>:0 
  at Umbraco.Core.UmbracoApplicationBase.Application_Start (System.Object sender, System.EventArgs e) <0x402af1c0 + 0x0003b> in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /builddir/build/BUILD/mono-4.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:295 
Version Information: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 04:43:41 EST 2015); ASP.NET Version: 4.0.30319.17020
Comment 1 Aleksey Kliger 2015-12-21 15:55:10 UTC
Thanks for the bug report, Helgi.

Do you have some sample code to reproduce this crash that we could investigate?
Comment 2 Marek Safar 2016-04-16 08:34:36 UTC
No response