Solved

'Unable to start debugging on the web server.  The web server is not configured correctly.  See help for common configuration errors. Running the web page outside of the debugger may provide further i

Posted on 2010-11-12
9
960 Views
Last Modified: 2013-12-17
Hi experts,

When compiling a code that my teammate made, I get this error:

'Unable to start debugging on the web server.  The web server is not configured correctly.  See help for common configuration errors. Running the web page outside of the debugger may provide further information.'

System Info:
Windows XP Professional.
Visual Studio Team System 2008
MS SQL Server 2008
IIS is installed.

I tried running these commands (but used v2.0 instead):
C:\windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
C:\windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -r

posted by lem2802.

They did nothing.

I tried following MS's tech document, but they are confusing.

Thanks!

0
Comment
Question by:nvs_victor
  • 6
  • 3
9 Comments
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 500 total points
ID: 34124536
can you run without debugging?
0
 

Author Comment

by:nvs_victor
ID: 34124675
Thanks for replying.

When I "Start without debugging", I get a whole seperate error.  Attached as code, and attached as file.

Thank you!
Server Error in '/twERP' Application.
--------------------------------------------------------------------------------

Failed to access IIS metabase. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. 

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[HostingEnvironmentException: Failed to access IIS metabase.]
   System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +637
   System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174
   System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath, Boolean permitNull) +51
   System.Web.CachedPathData.GetConfigPathData(String configPath) +341
   System.Web.CachedPathData.GetConfigPathData(String configPath) +234
   System.Web.CachedPathData.GetApplicationPathData() +38
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8809743
   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +117

Open in new window

Failed-to-access-IIS-metabase.htm
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 500 total points
ID: 34124732
Did you install IIS after .net framework (or Visual Studio 20xx)?

If you install IIS after .net framework, you need run aspnet_regiis. Let me know if this is the case.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:nvs_victor
ID: 34125067
Yeah. I found the same doc.

It looks like IIS was installed afterwards.

Shall I NOT uninstall framework and reinstall it?
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 500 total points
ID: 34125677
no need uninstall.

go to dos command window
go to folder:  C:\Windows\Microsoft.NET\Framework\v2.0.50727
run: aspnet_regiis -i

check the command output to see if any error occurs

REBOOT pc
0
 

Author Comment

by:nvs_victor
ID: 34128147
Sounds like a good idea.

I'll give it a try in a few days.

Thanks!
0
 

Author Comment

by:nvs_victor
ID: 34140240
You said no need to uninstall and install... would that do harm to anything?

Thanks.
0
 

Accepted Solution

by:
nvs_victor earned 0 total points
ID: 34155823
Ok. I think I got problem solved. It was a pain.

Since, I un-installed before your post, I had to reinstall everything. It turns out it worked. Install Dot NET after IIS. But to uninstall Dot NET, thanks to a guy's posting, you'll have to all later Dot NETs before uninstalling the target Dot NETs.

Thank you.
0
 

Author Closing Comment

by:nvs_victor
ID: 34186368
Thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 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