Server Error in '/' Application.

Invalid URI: The hostname could not be parsed.

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.UriFormatException: Invalid URI: The hostname could not be parsed.

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:


[UriFormatException: Invalid URI: The hostname could not be parsed.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +7019743
   System.Uri..ctor(String uriString) +22
   System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration) +245
   System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +240
   System.Web.HttpRequest.get_Url() +76
   BlogEngine.Core.Blog.get_CurrentInstance() in c:\Users\Jason\Documents\Visual Studio 2012\Projects\BlogEngine\BlogEngine.Core\Blog.cs:547
   BlogEngine.Core.Web.HttpModules.WwwSubDomainModule.ContextBeginRequest(Object sender, EventArgs e) in c:\Users\Jason\Documents\Visual Studio 2012\Projects\BlogEngine\BlogEngine.Core\Web\HttpModules\WwwSubDomainModule.cs:118
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0