Last post Sep 06, 2010 11:52 AM by more.rahuls
Jan 28, 2008 10:39 PM|gp3333|LINK
I am install Visual studio 2008 and after I import any project from Visual studio 2005 or after I one by one add some files by any example and try run it, I have all the time error below... I am point in project target to framework 2.0 properly
any help? I 3 days looks around and no right solution
[No relevant source lines]
[InvalidOperationException: Failed to map the path '/'.] System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path) +261 System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +580 System.Web.Configuration.ProcessHostMapPath.GetPathConfigFilenameWorker(String siteID, VirtualPath path, String& directory, String& baseName) +19 System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +37 System.Web.Configuration.HostingPreferredMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +77 System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) +166 System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) +10 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +249[ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'.] System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) +245611 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) +40 System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object hostInitConfigurationParams) +412 System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object hostInitConfigurationParams) +29 System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) +961 System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) +84 System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) +36 Microsoft.Reporting.WebForms.ReportViewer.ConfigContainsHandler() +80 Microsoft.Reporting.WebForms.ReportViewer.OnInit(EventArgs e) +96 System.Web.UI.Control.InitRecursive(Control namingContainer) +321 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7248 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213 System.Web.UI.Page.ProcessRequest() +86 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Users\GP\AppData\Local\Temp\Temporary ASP.NET Files\customerwebsitemy\c2a87546\bfb9e837\App_Web_92tmcihj.0.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Jan 29, 2008 12:33 AM|dinesh_sp|LINK
Did you conver your website to .net 3 if yes do you have .net 3 on your computer, if not,change the config file to
Hope this helps
Jan 29, 2008 12:43 AM|gp3333|LINK
hm, why convert in net 3?
I am convert in framework 2.0... because I wish do it for framework 2.0
Jan 30, 2008 02:58 AM|Vince Xu - MSFT|LINK
Based on my understanding, you opened the web site that developed by VS2005 with VS2008 directly, and it will be upgraded it to VS2008. But it doesn't work for you and you encountered the error.
The approach that directly open the web site with VS2008 is on the currect way. If it's not following you to the right track, my suggestion is clear all temp files in Temporary Folders, and then rebuild again.
Hope it helps.
Oct 07, 2008 06:12 PM|barrettr|LINK
Thank you so much for helping wiht this. I've found that clearing all temp files in the ASP.NET Temporary Files folder has solved a number of problems in the past. [:)] I have found, however, that it doesn't help with the problem mentioned in this thread.
[:(] I have the same problem and I think I can provide a few more details. Thanks in advance for any help that you can provide. Like the example above, my web site is written for .NET Framework 2.0. I have discovered that this issue might be tied to the
ReportViewer web control. I ported a Visual Studio .NET 2005 web site to Visual Studio .NET 2008 SP1. My VS2005 development box runs on Windows XP x86 and my VS2008 box runs Vista SP1 x64. I found that I was able to edit, compile, and deploy the web site
from my VS 2008 dev box to my production web server and the web app runs fine on the production server. My production web server is running Wndows Server 2003 x86. My pages with ReportViewer controls on them render normally on the production web server whether
the web site is compiled VS 2005 or VS 2008SP1. Those same pages display properly on the development box running VS 2005, but I get the "Failed to map the path "/" error whevever I try to view the same web page on the VS 2008SP1 box. VS 2008 is using its
built in Cassini web server for debugging just as VS 2005 does. So this issue seems to be related to porting pages with ReportViewer controls and running them under Cassini.
Apr 16, 2009 02:18 PM|gerr2305|LINK
I have a similar problem when trying to change the web.config file programatically. I found this is a security problem in VS 2008. I am running on Vista and I had to run VS 2008 as administrator to get this to work.
May 08, 2009 05:45 PM|ctheriault|LINK
I got the same issue when moving to Vista. My appl was working fine on XP but threw this exception on Vista.
It was a security issue caused by Vista which is much tighter... This seems to be a common issue with everyone moving the dev env. to Vista...
You just need to launch your Visual Studio with "Run as Administrator" from your Vista OS.
I got the hint from the link below which is more explanative
Jul 09, 2009 05:09 AM|nithicbe|LINK
Thanks for your help.
Please kindly help me out to solve my problem.
I am using Visual Studio 2005. I need to add a crstal report to my web page.I am using SQL which is inbuilt with VS 2005. I am not able to connect my crystal report with the SQL database.
Thanks in advance.
Sep 06, 2010 11:52 AM|more.rahuls|LINK
Thanks a lot , I was going nuts over this issue