I saw many topic similar to my issue and tried to apply those fixed but it looks like nothing is working at the moment.
I have many applications under one IIS website which I can access like http://mywebsite/myapplication. Website I had there was a static html, css website and now I am trying to develop my website using Umbraco but after installing umbraco to my root directory my subfolder/applications are not accessible. I tried setting sub folders in umbracoReservedPaths and umbracoReservedUrls but that gave me following error.
Server Error in '/myapplication' Application.
Could not load file or assembly 'System.Web.Helpers
So I tried to add in web.config of my application to clear any settings from parent website, but that returned this error.
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Exception message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=SDDSDS231231111' or one of its dependencies. The system cannot find the file specified.
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=SDDSDS231231111' or one of its dependencies. The system cannot find the file specified.
I tried setting inheritinchildapplications to false on my parent web.config then it started throwing Internal server error on the parent website and sub application.
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
So I tried addingon the child application web.config which resulted in showing the same error on my child application.
I have an umbraco 4.5 site and in there we have an application folder all i had to do was add the inheritinchildapplications setting and it all worked btw this is in iis6 you are in iis7/7.5? although that should all work.
I managed to fix it I was trying to wrap config section in location tag which was causing the problem. Now I excluded config section and everything working fine now.
Unable to access non umbraco sub folders
Hi All,
I saw many topic similar to my issue and tried to apply those fixed but it looks like nothing is working at the moment.
I have many applications under one IIS website which I can access like http://mywebsite/myapplication. Website I had there was a static html, css website and now I am trying to develop my website using Umbraco but after installing umbraco to my root directory my subfolder/applications are not accessible. I tried setting sub folders in umbracoReservedPaths and umbracoReservedUrls but that gave me following error.
Server Error in '/myapplication' Application.
Could not load file or assembly 'System.Web.Helpers
So I tried to add in web.config of my application to clear any settings from parent website, but that returned this error.
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Any help appreciated.
Thanks,
Rahul
Rahul,
Can you take a look at the windows event log to give more detailed error message.
Regards
Ismail
Hi Ismail,
This the error log from Event Viewer.
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=SDDSDS231231111' or one of its dependencies. The system cannot find the file specified.
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=SDDSDS231231111' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Request information:
Request URL: http://mydomain.com/myapplication/Default.aspx?testid=123
Request path: /myapplication/Default.aspx
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\MYAPPLICATION
Thread information:
Thread ID: 6
Thread account name: IIS APPPOOL\MYAPPLICATION
Is impersonating: False
Stack trace: at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Thanks,
Rahul
Rahul,
The other directories are they applications in iis if so do they run under own app pool if they do what is the .net version?
Regards
Ismail
Hi Ismail,
Thanks for your reply, Yes they are application itself and they have seperate application pool with .net framework 4.
Thanks,
Rahul
Rahul,
Those app pools classic mode or integrated?
Regards
Ismail
Hi Ismail,
It is in integrated mode.
Thanks,
Rahul
Rahul,
Can you paste config for one of the sub folders need to see how you are getting it to ignore the parent
Regards
Ismail
These are the web.config settings from umbraco. I am trying to change umbraco web.config to ingnore my sub folders/application
<add key="umbracoReservedUrls" value="~/myapplication/,~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx" />
<add key="umbracoReservedPaths" value="~/myapplication/,~/umbraco,~/install/" />
Thanks,
Rahul
Rahul,
That is your main web.config I want to see the config you have in the sub folders.
Regards
Ismail
Rahul,
Ignore that last question. In your web.config do you have
this needs to be in just before
This will stop child folders from using the web.config in the parent.
Regards
Ismail
Hi Ismail,
I tried setting inheritinchildapplications to false on my parent web.config then it started throwing Internal server error on the parent website and sub application.
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
So I tried addingon the child application web.config which resulted in showing the same error on my child application.
Thanks,
Rahul
Hi Ismail,
I am not sure whether this will be helpful this is the structure of my iis. Sorry i removed some folder names.
Rahul,
I have an umbraco 4.5 site and in there we have an application folder all i had to do was add the inheritinchildapplications setting and it all worked btw this is in iis6 you are in iis7/7.5? although that should all work.
Regards
Ismail
I have IIS 7.5, I am trying to use location tag to wrap everything under configuration.
Also I noticed one thing even when I add inheritInChildApplications without anything inside it I am getting the same error.
Hi Ismail,
I managed to fix it I was trying to wrap config section in location tag which was causing the problem. Now I excluded config section and everything working fine now.
Thanks,
Rahul
is working on a reply...