Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

web,config
Jose Gonzalez
#1 Posted : Saturday, March 15, 2014 7:46:26 PM(UTC)
Groups: Member
Joined: 3/15/2014(UTC)
Posts: 3
Location: US

I am getting the following error:

[InvalidOperationException: Failed to map the path '/'.]
System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path) +194
System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +619
System.Web.Configuration.ProcessHostMapPath.GetPathConfigFilenameWorker(String siteID, VirtualPath path, String& directory, String& baseName) +15
System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +38
System.Web.Configuration.HostingPreferredMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +75
System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) +166
System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) +13
System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +224

[ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'.]
System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) +81
System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) +31
System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) +358
System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) +30
System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) +750
System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) +71
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) +23
eCandidusService.index.Page_Load(Object sender, EventArgs e) +28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
System.Web.UI.Control.OnLoad(EventArgs e) +73
System.Web.UI.Control.LoadRecursive() +52
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5197
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +247
System.Web.UI.Page.ProcessRequest() +79
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
System.Web.UI.Page.ProcessRequest(HttpContext context) +110
ASP.index_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ecandidusservice\4a6bc682\1edb1980\App_Web_nsobvrqf.2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +391
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76


The line of code that is producing the error is:

eCandidusService.WDB.Cookie.Configuration = WebConfigurationManager.OpenWebConfiguration(HttpRuntime.AppDomainAppVirtualPath);

The interesting part is that the error happens when the application has been deployed and does not happen while debugging.

What other information can I get you to figure out the issue?

Thank you
Ultidev Team
#2 Posted : Saturday, March 15, 2014 8:38:44 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Jose.

Could you please tell us what is the physical OS path to the application root?

We will try to reproduce the problem internally. If you need a workaround, consider passing null to the function - MS says root web config can be opened that way.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jose Gonzalez
#3 Posted : Saturday, March 15, 2014 8:55:32 PM(UTC)
Groups: Member
Joined: 3/15/2014(UTC)
Posts: 3
Location: US

All:

The null does the same thing. The path is 'C:\Program Files (x86)\Candid.Concept LP\eCandidus Server SA (32 bit)'. The same thing happens with the 64 bit version (and a different path).

Ultidev Team
#4 Posted : Saturday, March 15, 2014 8:59:46 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
We were able to reproduce the problem.

We are working on looking for the work-around and how to fix it permanently. We'll keep you posted.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jose Gonzalez
#5 Posted : Saturday, March 15, 2014 9:04:33 PM(UTC)
Groups: Member
Joined: 3/15/2014(UTC)
Posts: 3
Location: US

All:

Looking at all the settings, I tried it in an instance where the process user was system, instead of network service and that worked. Security issue.
Ultidev Team
#6 Posted : Saturday, March 15, 2014 9:17:37 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Yup. Just found the same. Looks like it wants to go one more level up the directory structure from the application root, which UWS won't allow.

We are not sure we can offer a work-around here.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#7 Posted : Saturday, March 15, 2014 9:43:51 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Jose,

We'll try to see whether we will be able to find a workaround that does not require running as Local System. We'll keep you posted. However, UWS cannot let application look at files above application's root. This is clearly a bug in the .NET Framework, and we'll try to find whether there is another way to access config w/o using this method.

Best regards
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#8 Posted : Friday, March 30, 2018 8:10:34 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.