Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Danny Douglass 28 posts 43 karma points
    Aug 18, 2009 @ 14:56
    Danny Douglass
    0

    Failed to map the path '/data/access.xml'

     

    Greetings,

    Details: Umbraco 4.0.2.1, Windows Vista, IIS7

    I'm working on refactoring the physical structure of my Umbraco project and I'm running into an issue when trying to use Cassini to fire up the Umbraco website.  I'd like to avoid having to create a site in IIS7, if that is at all possible.  I have the following solution structure:

    Main Solution

     

    1. Umbraco Website (loaded through relative location)
    2. Umbraco Extensions Web Application Project
    so the file structure would look something like:
    c:/test/UmbracoSolution.sln (ROOT)
      - c:/test/Umbraco/...
      - c:/test/Umbraco.Extensions/...
    Then, using the recommended approach on http://our.umbraco.org/wiki/codegarden-2009/open-space-minutes/working-in-visual-studio-when-developing-umbraco-solutions, I have added post-build events to my Umbraco.Extensions web app project to copy over the extended files (which works just fine).  However, if I try to run the website I get the error below.  Any ideas why this is happening and how I can get around it?
    Thanks!

    Server Error in '/Umbraco' Application.

    Failed to map the path '/data/access.xml'.

    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.InvalidOperationException: Failed to map the path '/data/access.xml'.

    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: 

    [InvalidOperationException: Failed to map the path '/data/access.xml'.]
       System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +8853082
       System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) +42
       System.Web.VirtualPath.MapPathInternal() +4
       System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +107
       System.Web.HttpRequest.MapPath(VirtualPath virtualPath) +37
       System.Web.HttpServerUtility.MapPath(String path) +99
       umbraco.cms.businesslogic.web.Access..cctor() +98
    
    [TypeInitializationException: The type initializer for 'umbraco.cms.businesslogic.web.Access' threw an exception.]
       umbraco.cms.businesslogic.web.Access.IsProtected(Int32 DocumentId, String Path) +0
       umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url) +3445
       umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) +903
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.OnPreInit(EventArgs e) +8698174
       System.Web.UI.Page.PerformPreInit() +31
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282

    Trace Information

    CategoryMessageFrom First(s)From Last(s)
    aspx.page Begin PreInit    
    umbracoInit handling request 2.08127010555811E-05 0.000021
    request handler current url '' 6.22285793306133E-05 0.000041
    umbracoRequestHandler xpath: '/root/node' 8.90476303552547E-05 0.000027
    umbracoRequestHandler xpath: '/root/node [@urlName = ""] | /root/node' 0.000101828584359185 0.000013
    umbracoRequestHandler xpath: '/root/node [@urlName = ""] | /root/node' 0.000115377792428926 0.000014
    umbracoRequestHandler Just before xPath query (False, '/root/node [@urlName = ""] | /root/node') 0.000127041285973497 0.000012
    umbracoRequestHandler pageXPathQueryStart: '/root' 0.000137307953943867 0.000010
    umbracoRequestHandler After xPath query 0.000172647640971129 0.000035
    umbracoRequestHandler Access checking started 0.000211269868097761 0.000039
    Unhandled Execution Error
    The type initializer for 'umbraco.cms.businesslogic.web.Access' threw an exception.
      at umbraco.cms.businesslogic.web.Access.IsProtected(Int32 DocumentId, String Path)
      at umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url)
      at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
      at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
      at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
      at System.EventHandler.Invoke(Object sender, EventArgs e)
      at System.Web.UI.Page.OnPreInit(EventArgs e)
      at System.Web.UI.Page.PerformPreInit()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    0.000330000041904767 0.000119

     

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Aug 18, 2009 @ 15:14
    Richard Soeteman
    1

    Check the website Properties in Visual Studio. Look for the property Virtual Path. I think the value is now /test/ try to change that to /  and see if that helps you. I have run sites several times from Visual Studio so it should work. Allthough I prefer having the site in IIS7.

    Cheers,

    Richard

  • Danny Douglass 28 posts 43 karma points
    Aug 18, 2009 @ 15:20
    Danny Douglass
    0

    Thanks Richard - that worked like a charm!

Please Sign in or register to post replies

Write your reply to:

Draft