Link to home
Start Free TrialLog in
Avatar of Burzhuin
Burzhuin

asked on

IIS Configuration Error

The company I am working for is switching to new Financial application. The old application will be still accessible for limited amount of people. In order to prevent all other users to access the old application I moved the whole folder to new location. However when I tried to open application I got the following error:

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 20:       </connectionStrings>
Line 21:       <system.web>
Line 22:             <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
Line 23:                   <providers>
Line 24:                         <add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
 
Since my web developing experience between slim to none I have no idea where to go and what to do. Can somebody advise me what should I do? Thank you.
Avatar of pateljitu
pateljitu
Flag of Canada image

It seems like you might have web.config within the older folder as it will conflict with your IIS configuration.

Also if you want to keep both application running in parallel would suggest to create another virtual directory for older application.

Also please take a look at this article.
http://blogs.msdn.com/b/robgruen/archive/2005/09/12/464196.aspx
Avatar of Burzhuin
Burzhuin

ASKER

I created Virtual directory and now it shows me Login page but I cannot login. I do not get an error but I cannot login neither.
Confirm your values for connection string to database server.

Are you using MS-SQL as database server?
Yes, I am. And the connection strings are the same in both cases.
ASKER CERTIFIED SOLUTION
Avatar of pateljitu
pateljitu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial