The DevCenter has moved!

The Developer Center has a new home, developer.ektron.com. The site you are currently viewing is available as a read-only archive.
Things to note:
  1. Your username & password is the same on the new site, developer.ektron.com
  2. Going forward, please use the new URL, developer.ektron.com
  3. The old discussion forums and old KB articles are still available as an archive (read-only)
RSS Feed Print Category View
Failed to map the path '/'
Johnson
Posted: Wednesday, June 2, 2010 4:22 AM
Joined: 6/2/2010
Posts: 2


Hi guys,

    I am getting the error: 

 Exception Details: System.InvalidOperationException: Failed to map the path '/'.  

 Stack Trace:

[InvalidOperationException: Failed to map the path '/'.]
Ektron.Cms.EkException.ThrowException(Exception ex) +22
Ektron.Cms.CommonApiBase.InitializeRequestInformation() +26160
Ektron.Cms.CommonApiBase..ctor() +886
Ektron.Cms.CommonApi..ctor() +13
Ektron.Cms.UserAPI..ctor() +14
Ektron.Cms.PageBuilder.PageBuilder..ctor() +120
home..ctor() +29

ASP.home_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\


v4.0.30319\Temporary ASP.NET Files\website\0fe06677\bbabe598\


 App_Web_hfsyzbog.48.cs:0


__ASP.FastObjectFactory_app_web_hfsyzbog.Create_ASP_home_aspx() in


c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\


 website\0fe06677\bbabe598\App_Web_hfsyzbog.56.cs:0


System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath


(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean


 allowCrossApp) +109


System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,


String requestType, VirtualPath virtualPath, String physicalPath) +31


System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.


GetHandler(HttpContext context, String requestType, VirtualPath virtualPath,


 String physicalPath) +40


System.Web.HttpApplication.MapHttpHandler(HttpContext context,


String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)


 +167


System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.


IExecutionStep.Execute() +128


System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&


completedSynchronously) +184


  Our project use ektron cms ( version 8.00 buildnumber is 8.0.0.128, with sp1),


 I get the project from tfs, I can build the project successfully, but I received above


  error everytime I browse the webpage.


I find one article from google


http://ektronforums.com/ektronsupport/yaf_postsm37_Help--Error-message-Failed


 -to-map-the-path-.aspx


In my web.config file, the node is like: <add key="ek_sitePath" value="/" />


but my project is save in other directory, C:\Myproject. So I don't know how to


 config the sitePath. I do create a virtual directory in IIS(Sorry to mention, my local


  system is winXP with IIS 6.0) named Ektron,


I set the sitepath to <add key="ek_sitePath" value="/Ektron" /> , but the error still


 there.


So I install the CMS400 package on my local pc, the installation program created a


  virtual directory on my local pc


C:\Inetpub\wwwroot\CMS400Developer


Then I changed the web.config to <add key="ek_sitePath" value="/CMS400Developer" />


  , the error still there.


Keep the config to <add key="ek_sitePath" value="/" />, the error still there.


I really don't know how to solve this problem, every time the page throw this error,


 I can find a event log in event viewer:


Timestamp: 6/2/2010 7:28:39 AM
Message: Exception thrown from: /CMS400Developer
Failed to map the path '/CMS400Developer/'. at System.Web.Hosting.


HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull)
at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath)
at System.Web.VirtualPath.MapPathInternal()
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath


baseVirtualDir, Boolean allowCrossAppMapping)
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath)
at System.Web.HttpRequest.MapPath(String virtualPath)
at Ektron.Cms.CommonApiBase.InitializeRequestInformation() at System.Web.


Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull)
at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath)
at System.Web.VirtualPath.MapPathInternal()
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath


baseVirtualDir, Boolean allowCrossAppMapping)
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath)
at System.Web.HttpRequest.MapPath(String virtualPath)
at Ektron.Cms.CommonApiBase.InitializeRequestInformation()
Category: Error
Priority: -1
EventId: 0
Severity: Error
Title:
Machine:
Application Domain: c85c3a3e-4-129199373116105128
Process Id: 536
Process Name: C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\


WebDev.WebServer40.exe
Win32 Thread Id: 7580
Thread Name:
Extended Properties:


Does any one meet this problem before? Does anyone know how to fix this?

 I notice one article relate to this issue, but seems no final solution to this

problem, here is the link,


http://dev.ektron.com/forum.aspx?g=posts&t=14362


Any comments ,very thanks.






Johnson
Posted: Thursday, June 3, 2010 7:03 AM
Joined: 6/2/2010
Posts: 2


Ok, I solved this issue.

close this post. thanks.


Chris-Winters
Posted: Wednesday, February 23, 2011 9:34 AM
Joined: 3/27/2009
Posts: 57


so what was the solution?


Kris
Posted: Wednesday, February 23, 2011 3:03 PM
Joined: 4/20/2007
Posts: 611


Chris,

  It depends on where your error is occurring.

I mostly get that error on my localhost because I forget to change the key

<add key="ek_sitePath" value="/" />

value to point to my local project name.

And actually, I have now installed the XP Pro IIS Admin (from JetStat.com) and I don't have to change anything between the dev server and my local machine.

Life got easier!

Kris


lcs
Posted: Thursday, December 8, 2011 10:54 AM
Joined: 9/9/2010
Posts: 371


Kris,

 

THANK YOU for that tip. This was driving me nuts!

 

Another thing you can do is change your application name property in Visual Studio, if you don't want to change your web.config, so your localhost web project will run as "/" instead of the default "/applicationname"

 

See: http://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-run-a-root-site-with-the-local-web-server-using-vs-2005-sp1.aspx 

 

In either case, the ek_sitePath variable and your siteroot/project property must match.

 



 Ektron 8.5


 

Jump to different Forum...