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">
      </forms>

Open in new window

prashanth agsoftware engineer Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:
Hi,

You have multiple web.config files in your application.

Remove the second web.config file if not required.

OR

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.
0
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 ?
0
Lokesh B RDeveloperCommented:
Hi,

In web.config file add this.

<pages>
    <namespaces>
        <add namespace="Microsoft.JScript" />
    </namespaces>
</pages>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.