Last post Sep 03, 2018 07:43 AM by Brando ZWZ
Aug 31, 2018 05:00 PM|nambir|LINK
In our we company we have a legacy website which is in Dotnet 3.5. I am trying to setup locally in Win 10.
I am getting below error:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
1.I have installed "Microsoft Visual Web Developer 2008 Express Edition".
2.To install 3.5 framework , i used the command prompt installation "DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs"
because when i try install "dotNetFx35setup.exe" it is not installing.
3.In the app pool i have .NET Clr 2.0, 4.0
Aug 31, 2018 05:09 PM|mgebhard|LINK
The error means the IIS application is not setup correctly as the error message states.
This error can happen if a web application is pasted into an already working application and/or adding second web.config file to an app.
I recommend IIS support or simply reviewing your IIS configuration for correctness.
Sep 01, 2018 05:15 AM|nambir|LINK
Thanks for the suggestion. What do you mean by "IIS support " is it a separate forum?
Sep 03, 2018 07:43 AM|Brando ZWZ|LINK
According to your description and image, It seems you have not configured the virtual directory for your website as an application in IIS.
If you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error.
More details, you could refer to below article: