Broken Links.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/22/2013 7:04:21 AM
Gravatar
Total Posts 11

Broken Links.

Hi Joe,

I developed a site and upload to a shared hosting. DB: MySQL. Now the main page comes up fine. The admin bar at the bottom works fine, but the link (Home, about us etc) are not working.

The only thing I did was change the key in web.config as advised by security module. Any quick suggestions?

 

Thanks,
Bali

8/22/2013 1:09:32 PM
Gravatar
Total Posts 18439

Re: Broken Links.

You should post a link so someone can see the problem, otherwise I have no idea what you mean by its not working.

You also have not explained what steps you took to develop or deploy the site.

I would use web browser dev tools to look for script errors on the page and check the mojoportal log for any errors that are logged.

 

8/23/2013 2:55:00 AM
Gravatar
Total Posts 11

Re: Broken Links.

Hi Joe,

Apologies, was in a hurry yesterday. So here is the issue. I had developed the site in local and everything was fine. Now when I upload it to the hosting site the main page comes up, but the rest does not work. To simulate please visit, http://www.criussoftware.com (Not all content is ready yet smiley )

The main page comes up. Now try and click any link careers or About us and it says "The requested document was not found on this server".
 I have kept customErrors mode="Off' in web.config. System Log says the following:

2013-08-22 16:25:27,546 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
2013-08-22 16:41:58,804 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
2013-08-22 16:42:07,959 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
2013-08-23 11:09:13,326 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End

I have pretty much used following instructions for moving the site: http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=2523~-1

mojoPortal Version 2.3.9.7 MySQL
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust
 

Do let me know if you suspect anything or if you need more info.

Thanks,
Bali
 

8/23/2013 6:06:50 AM
Gravatar
Total Posts 18439

Re: Broken Links.

Hi,

The main problem seems to be that the extensionless urls are not working, IIS is returning a 404 page not found for those urls without passing the request to asp.net so mojoportal code is not even handling the request and you see the IIS 404 page.

If you don't have IIS 7 or higher, extensionless urls are not going to work. I suggest read the article about Extensionless Urls and check all configurations mentioned there, ask your host about the IIS version and if it is not 7 (which has been out since Windows 2008) or higher I would recommend looking for different hosting.  I would not use any hosting that puts your site on some old legacy Windows 2003 machine.

Hope that helps,

Joe

 

8/23/2013 10:14:53 AM
Gravatar
Total Posts 11

Re: Broken Links.

Hi Joe,

Perfect, that was the problem. Now I checked with my service provider and IIS 7 is installed and pipeline mode enabled.
I followed your link and I can see the Drop down in Site settings "Default Friendly Url Pattern" and also Web.config has the setting <modules runAllManagedModulesForAllRequests="true">.

It still does not work. Please suggest.

Thanks,
Bali
 

8/23/2013 10:44:54 AM
Gravatar
Total Posts 18439

Re: Broken Links.

Hi,

Sorry but you previously said:

"Windows NT 5.2.3790 Service Pack 2"

From this wikipedia page that looks like Windows 2003, as far as I know IIS 7 can only be on Windows 2008 or newer, extensionless urls will not work on Windows 2003/IIS6 without 3rd party components. 

You need better hosting or else change to using .aspx extension which will require updates in page settings of each page. Since you can't get to the pages from the menu you would have to use Administration > Add/Edit Pages to get to page settings. Then you would also need to edit the urls under Administration Advanced Tools > Url Manager to add the .aspx extension.

Hope that helps,

Joe

8/23/2013 11:17:21 AM
Gravatar
Total Posts 11

Re: Broken Links.

Hi Joe,

The OS information was taken from "System Information" of Mojoportal admin. When I checked with ISP, he says IIS 7 is installed with pipeline mode, which I guess might not be entirely true now that I read your reply. I will weigh between the options provided and work on this tomorrow.

Thanks for the quick support provided.

Thanks,
Bali
 

8/23/2013 11:30:15 AM
Gravatar
Total Posts 18439

Re: Broken Links.

The mojoPortal System Information page is not capable of deceit :-D

I bet your host does have newer machines but your site is not on one of them, despite what the support contact may say or think.

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