Saturday, March 31, 2012

Web Config Error

Ok,
For some reason my web server stopped running so I have uninstalled / reinstalled IIS and that seems to be working. When I go to view one of my ASP.NET pages in a browser I am getting the following error associated with the web.config file. Previously before ISS had to be reinstalled it all ran fine.
Any ideas?

Server Error in '/' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: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.
Source Error:
Line 3: <system.web>Line 4:Line 5: <authentication mode="Forms"/>Line 6: Line 7: <compilation><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/></assemblies></compilation></system.web>

Source File:c:\inetpub\wwwroot\Web Content Outsourcing and QA Tool\web.config Line:5

Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032You need to make the folder a virtual folder in IIS. When you do not do that, your folder is considered a subfolder of the application in the root.

set the authentication mode to "Off"


Sorted, thanks!
Matt

0 comments:

Post a Comment