Installation in sub-folder using MS Visual Studio 2015

Topics: ASP.NET 2.0
Jan 8, 2016 at 4:19 PM
Hello, I've tried downloading the web version of blog engine today, but found an installation problem.
My first attempt, I just created a website using visual studio 2015 community edition, then copied the files straight in. It worked ok.
For my second experiment, I tried copying the blogengine files to a subfolder called blog.
I moved App_Code, App_Data, AppGlobal_resources, bin, web.config, global.asax, packages.config, web.sitemap etc. up to the root folder.
I tried opening up blog/default.aspx
  • and got the following error:
Directory does not exist.
Parameter name: directoryVirtualPath

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.ArgumentException: Directory does not exist.
Parameter name: directoryVirtualPath

Source Error:

Line 6: {
Line 7: var app = (HttpApplication)sender;
Line 8: BlogEngineConfig.Initialize(app.Context);
Line 9: }
Line 10:

end quote.
I tried adding a line to my web config:

<add key="BlogEngine.VirtualPath" value="~/blog/"/>
  • under app settings but it doesn't help.
    Anyone have any ideas?
Jan 8, 2016 at 6:09 PM
Web version provided here as download meant to be installed to IIS server directly, it is already compiled by Visual Studio.

The source code that you can use with VS is on GitHub.