Nov 11, 2008, 7:58 PM
Examples
Hello Geoffrey,
Whenever I try and run the Coolite.Examples on my localhost, I receive the following:
Cheers,
Timothy
Whenever I try and run the Coolite.Examples on my localhost, I receive the following:
Server Error in '/Examples' Application.
Physical path can't be mapped to the current application.
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.Exception: Physical path can't be mapped to the current application.
Source Error:
Line 168: int index = physicalPath.IndexOf(pathOfWebRoot,StringComparison.InvariantCultureIgnoreCase);
Line 169: if (index == -1)
Line 170: throw new Exception("Physical path can't be mapped to the current application.");
Line 171:
Line 172: string relUrl = Path.DirectorySeparatorChar.ToString();
Source File: E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs Line: 170
Stack Trace:
[Exception: Physical path can't be mapped to the current application.]
Coolite.Examples.UIHelpers.PhysicalToVirtual(String physicalPath) in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:170
Coolite.Examples.UIHelpers.PhysicalToAbsolute(String physicalPath) in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:185
Coolite.Examples.ExampleConfig..ctor(String path, Boolean includeDescriptors) in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:231
Coolite.Examples.UIHelpers.SortFolders(DirectoryInfo root, DirectoryInfo[] folders) in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:84
Coolite.Examples.UIHelpers.BuildTreeLevel(DirectoryInfo root, Int32 level, Int32 maxLevel) in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:24
Coolite.Examples.UIHelpers.BuildTreeNodes() in E:\Projects\Coolite\Coolite.Examples\Code\UI\UIHelpers.cs:16
ASP.default_aspx.Page_Load(Object sender, EventArgs e) in e:\Projects\Coolite\Coolite.Examples\Default.aspx:31
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
Any help? Microsoft .NET 3.5 with Visual Studio 2008 Professional and IIS 7.0.Cheers,
Timothy