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
975 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
[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
  • 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
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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