I hate to be the one to ask stupid questions, but...ultimately I'd like to run BugNET as a subfolder of my root. I have everything running except I've noticed that the TabMenu user control is not displaying its links (Home, My Issues, Administration) as being under the subfolder (their URLs incorrectly point to the site's root, rather than my subfolder). Is there a configuration setting somewhere that would handle this?
If not, I've looked at the source code and attempted to change it, but noticed that BugNET_WAP.csproj will not open in C# Express 2008 (contrary to the documentation). Is there something I'm doing wrong there? If someone else can take a look, I was attempting to put a key in the <appSettings> of web.config and reference it as a property in TabMenu.ascx.cs. See the snippets below:
web.config
<add key="BugNetVirtualPath" value="~/bugnet/"/>
TabMenu.ascx.cs
//add property
//example from Page_Load
Tabs.Add(new Tab("Project Summary", string.Format(webRoot + "Bugs/ProjectSummary.aspx?pid={0}",ProjectId)));
The idea for using a configuration setting came from the way BlogEngine.NET does it. Once the configuration is set, the BlogEnding core dll references it and uses it throughout the app.
The last thing I was thinking is am I missing something more fundamental like being able to run a subfolder as an ASP.NET app? I really don't know a lot about this, but remember it from my hosting control panel.
I'd love to help but am unable to open in an editor where I can compile. Any help is greatly appreciated.
Thanks,
Mike
string _webRoot = ConfigurationManager.AppSettings("BugNetVirtualPath");
public string webRoot
{
get
{
if ((_webRoot.Trim.Substring((_webRoot.Length - 1), 1) != "/"))
{
_webRoot += "/";
}
return _webRoot;
}
}