?
Solved

How to setup IIS to run my Visual Studio 2008 ASP.NET development project?

Posted on 2009-05-07
3
Medium Priority
?
530 Views
Last Modified: 2012-05-06
I've been testing my project in the asp.net development studio site, but I want to integrate windows security (and eventually I want to use IIS to host the pages), so I've tried to install IIS on my XP box to host my site..  But when I erase the default files in the IIS web site inetpub\wwwroot folder, and replace with my vs2008 project folder files in there, it gives me the attached error in the application event log when I try to access the site..  

I DID make sure to replace permissions on all of the child items in the wwwroot folder to reflect IIS/ASP service account permissions necessary to access them.  



Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT
 
Exception: System.Configuration.ConfigurationErrorsException
 
Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
 
StackTrace:    at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
   at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
   at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
   at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
   at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

Open in new window

0
Comment
Question by:CantonIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:b_levitt
ID: 24332882
Go into the IIS manager, right click your site or virtual directory and select properties.

Go to the asp.net tab and select the 2.0 version.  It's probably running under 1.x and there are new things in a 2.0 (or 3.5) config.
0
 

Accepted Solution

by:
CantonIT earned 0 total points
ID: 24349259
I had already done that.. (control panel -> admin tools -> comp management -> IIS properties on default web site -> asp.net tab -> selected version 2.0.whateva)

For whatever reason it wasn't working.  What I did to correct it was this...

command prompt ->
C:\windows\microsoft.net\framework\<version 2.0.whateva folder>\aspnet_regiis.exe -i

Which reinstalled IIS for asp.net

Additionally..  VS2008 does some crazy stuff compiling assembly info for asp.net projects, and you cant just copy the project folder to another path and expect it to work.  The easiest way for me to get it to work properly in my wwwroot folder was to 'publish' it to that folder from vs2008's publish site tool.
0
 
LVL 11

Expert Comment

by:b_levitt
ID: 24391834
"Comp Management"??  I assume you mean the IIS manager?

VS2008 doesn't do any crazy stuff compiling the assembly unless you did a "Web Application Project" in which case the code behind is compiled into a dll.  If this is a regular website, publishing it isn't necessary.

In any case it sounds it sounds like you fixed it.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question