?
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
Medium Priority
?
983 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 2000 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 2000 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
Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

 

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 2000 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

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

765 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