Error: 'MachineToApplication' beyond application level'

I have a project which was converted from VS2003 to VS2008 throwing an  error while running the appln

"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."
<authentication mode="Forms">
      <forms loginUrl="Loginfrm.aspx" name="frmauth.aspxcookieauth2" protection="All">

Open in new window

prashanth agsoftware engineer Asked:
Who is Participating?
Lokesh B RDeveloperCommented:

In web.config file add this.

        <add namespace="Microsoft.JScript" />

Open in new window

Lokesh B RDeveloperCommented:

You have multiple web.config files in your application.

Remove the second web.config file if not required.


If you are in IIS server, convert the folder which is having the second web.config file as Application.

Right-Click on the folder and Click Convert to Application.
prashanth agsoftware engineer Author Commented:
Hi lokesh
thanks for your feedback

yes appln have two web.config because I have a project which was converted from VS2003 to VS200
Error: 'MachineToApplication' beyond application level' was solved but
 it throws  new error

Compiler Error Message: CS0234: The type or namespace name 'JScript' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
my question is How to Upgrade an ASP.NET Web Application from older version to new version ?
prashanth agsoftware engineer Author Commented:
Thanks lokesh

my appln up and running fine now .

As per your suggestion
 (Right click on the references -->Add reference-->Select Microsoft.JScript from the list and Click OK)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.