BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  General Support  Configure for site's subfolder rather than root
Previous Previous
 
Next Next
New Post 4/11/2008 3:34 PM
User is offline mmengel
3 posts
No Ranking


Configure for site's subfolder rather than root 
Modified By mmengel  on 4/11/2008 2:53:13 PM)

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;
            }
        }

 

 
New Post 4/12/2008 10:36 AM
User is offline mmengel
3 posts
No Ranking


Re: Configure for site's subfolder rather than root 

Here's an update. I'm using WebHost4Life to host our BugNET site. WH4L has the ability to set a subfolder of a root site as an ASP.NET application. This appears to be working for me on my hosted site, but it raises questions about how to go about debugging on my local XP box. It would be great if someone could implement the suggestion above in case a host provider doesn't offer the capability to set subfolders as applications, though. If you know of any ways to configure my local XP box like the way I described w/ WH4L, I'd love to know/learn.

Thanks,
Mike

 
Previous Previous
 
Next Next
  Forum  Support  General Support  Configure for site's subfolder rather than root

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.