Error when you browse your ASP site from IIS
When you take a copy of your project from TFS, and you run
the project it will create virtual directory in IIS (Internet Information
Service), after running (or pressing F5) it will encounter an error like
Server Error in '/' Application.
Or
It
is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level.
This
error will occur because you virtual directory is not act as Application. For
converting your virtual directory in an Application follows following steps:
For
windows XP:
- Start --> control panel --> Administrative tools --> Internet Information Service (IIS)
- Right click on website folder and select properties.
- Select the directory tab and click the create button in the Application Settings section. Now you can see the application name field enabled and your website converted into an application.
- Then click OK.
- Now browse your application, it will run without any error.
- Start --> control panel --> Administrative tools --> Internet Information Service (IIS)
- Right click on website folder.
- And select Convert To Application. Now you can see the application name field enabled and your website converted into an application.
- Now browse your application, it will run without any error.
nice post..thanks for posting
ReplyDelete