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
Umbraco Website (loaded through relative location)
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.
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)
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.
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
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:
Trace Information
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)
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
Thanks Richard - that worked like a charm!
is working on a reply...