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
933 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
Comment Utility
can you run without debugging?
0
 

Author Comment

by:nvs_victor
Comment Utility
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
Comment Utility
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
 

Author Comment

by:nvs_victor
Comment Utility
Yeah. I found the same doc.

It looks like IIS was installed afterwards.

Shall I NOT uninstall framework and reinstall it?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 500 total points
Comment Utility
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
Comment Utility
Sounds like a good idea.

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

Thanks!
0
 

Author Comment

by:nvs_victor
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now