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
971 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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