I added a new site but can't access to it.

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
6/30/2007 1:01:48 AM
Gravatar
Total Posts 16

I added a new site but can't access to it.

Hi!

I added a new site referring the Document "Hosting Multiple Sites Based on Folder Names ".

I edited Web.config, set UseFoldersInsteadOfHostnamesForMultipleSites="true" .

I added a new site on "Admin > Site Setting" page, and add folder mapping "newfolder".

My first site's url is http://localhost/mojoportal/Default.aspx, and I can access to it. But when I tried access this new site by url "http://localhost/mojoportal/newfolder/Default.aspx",  I just got HTTP 404 Error.

Error logs are written in currenlog.config as follows:

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2007-06-30 14:32:50,734 [2496] ERROR mojoPortal.Web.Global [(null)] - System.Web.HttpException: file '/mojoportal/dnl/Default.aspx' doesn't exits.

System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)

Are there any mistakes in my operation?

 

6/30/2007 6:03:40 AM
Gravatar
Total Posts 18439

Re: I added a new site but can't access to it.

folders only work at the first level. Your root site needs to be root web site like just localhost or some host name, it can't work 2 levels deep like hostname/folder1/folder2

Hope it helps,

Joe

6/30/2007 8:36:03 AM
Gravatar
Total Posts 16

Re: I added a new site but can't access to it.

Hi Joe!

I understand the reason. Thank you for your kind advice.

Kiyoshi

7/7/2007 3:06:35 AM
Gravatar
Total Posts 16

Re: I added a new site but can't access to it.

Hi Joe,

I added a new site using subfolder successfully, but it has two problems.

  1. Menu icons(home.gif etc) are not shown.
  2. Menu links to deeper folders, like "hostname/subfolder1/subfolder1/home.aspx"

You can see this on my test site http://aspx.ito-sys.com/dnl/ , working on mono 1.2.4 and progresql.

What's wrong?

Regards,

Kiyoshi

 

7/7/2007 6:44:10 AM
Gravatar
Total Posts 18439

Re: I added a new site but can't access to it.

Hi Kiyoshi,

I really haven't tested the folder sub sites feature under Mono myself yet.

About the menu icons though, part of the problem is that Mono hasn't yet implemented support for CSS Control Adapters so the ASP.NET Menu and TreeView are rendering as nested tables instead of as ul and li elements. In the control adapter I'v put in handling to correctly resolve the image urls when using sub folder sites but that code is not runnning because its using the ordinary control on mono  instead of the adapted control. If you view the source of the page on your site vs the same code running on windows, you will see clearly the difference in the rendering of the menu. I've seen some commits going into Mono svn that lead me to think they are working on support for the adapters so hopefully this will be fixed in future version of Mono.

Note that when using the folder subsites I have to maintain the subsite folder in all navigation urls but image urls still need to be relative to the root site. Apparently there is some difference in Mono that is not working correctly.

I might be able to get it working correctly in Mono if I play around with it but ideally the support for adapted controls will fix it for us and is a much better way to render a menu.

In the meantime you could consider using the host name sub sites instead of folders, it should work better because there is no virtual folder to deal with and everything already has the correct relative path.

Or if working with source code in MonoDevelop you may be able to fix this yourself by modifying Controls/SiteMenu.ascx.cs

Hope it helps,

Joe

7/9/2007 5:45:00 AM
Gravatar
Total Posts 16

Re: I added a new site but can't access to it.

Hi Joe,

Thank you for your reply.

I saw the html source, and understood the difference between IIS server and Mono.

But I think the problem is not from rendering system of treeview. It seems that current directory information is not correct under Mono.

When accessing to the subfolder, the current directory shoud be "/hostname/subfolder", but it says it is in "/hostname" folder. So the menu links points to "subfolder/home.aspx", it should point to "home.aspx" .

I also found that the file manager doesn't work under Mono. I think this is from misjudgement of the current directory. Is it wrong?

Regards,

Kiyoshi  

7/11/2007 9:22:46 AM
Gravatar
Total Posts 18439

Re: I added a new site but can't access to it.

Hi Kiyoshi,

Unfortunately my Mono machine has got to a funky state where it just hangs in MonoDevelop. I'm working on setting up a new machine and then I will investigate further.

There does apprear to be some differences in the way urls are resolved on windows vs mono.

Thanks,

Joe

You must sign in to post in the forums. This thread is closed to new posts.