Site url not working on server but work on localhost in cs2008

rated by 0 users
This post has 5 Replies | 2 Followers

Not Ranked
Posts 3
Points 60
almighty Posted: Wed, Jun 18 2008 3:41 PM

Here cs2008 is run properly on localhost on local machine, when we uploaded it on my server it's running fine for home page and few link page (linked with my header buttons).

But for internal pages/links it's throwing 404, page not found error.

For example when i click on Blogging link under Blog section, it's trying to go to URL http://mydomain/CS/blogs/tags/Blogging/default.aspx

Then URL redirection is not working fine there for tHis Page and it's throwing 404 error.

I doubt if SiteURL.config is playing one role here and URL rediction is not proper due to some problem there. But that same SiteURL file is working fine at my localhost. And i am using same virtual directory environement at server.

Can anyone please help me to understand the issue and fix it.

Thanks in advance.

 

  • | Post Points: 35
Top 10 Contributor
Posts 3,542
Points 53,570
TelligentSupportTeam

Could you provide the url of your server.  If you don't want to post it publicly, send me a private message (click on the contact button above this post > start conversation with afscrome)

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 5
Top 10 Contributor
Posts 3,542
Points 53,570
TelligentSupportTeam

You'll want to speak to your host about the problem.

CS expects to receive all requests to .aspx page, even if the .aspx page being requested does not actually exist.  CS will then rewrite the url behind the scenes and respond with an aspx page that actually exists.  It appears as if your host are only allowing asp.net (and hence CS) to handle a request when the page being requested actually exists on the server.  You'll need to get your host to turn this off.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Not Ranked
Posts 3
Points 60
almighty replied on Fri, Jun 20 2008 6:21 AM

Thanks Big B,

When we click on any sub link like on Blogging in blogs page then it give url error,

Please explain above turn off conditiion, what should we do on our server to run it properly,

Thanks again ,

  • | Post Points: 20
Top 10 Contributor
Posts 3,542
Points 53,570
TelligentSupportTeam

Re the private message you sent.  I'll answer it here so if anyone else comes across the problem, they can also find the solution.

Whilst it is possible to make a dummy page for all possible URLs CS may use, it is certainly not feasible to do so.  You'll have to write a custom module to add in a dummy page every time a new post is created, similarly for a new thread.  You'll also have to make large numbers of pages for every new tag added to your site.

Your only real option is to upgrade to a VPS or dedicated server with your host, which will allow you to control IIS and set it up to work with CS, or to move to a different host which does not require the pages requested to be physically located on the server.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Not Ranked
Posts 3
Points 60
almighty replied on Thu, Jun 26 2008 10:01 AM

Sir,

We write Application_BeginRequest procedure in global.aspx, but i think request does not fire this event.

 void Application_BeginRequest(object sender, EventArgs e)

{

 

try

 

{ 

if (System.IO.File.Exists(Request.PhysicalPath) == false)

{

 

 

if (System.IO.Directory.Exists(Request.PhysicalPath.Substring(0, Request.PhysicalPath.LastIndexOf("\\"))) == false)

    System.IO.

 

Directory.CreateDirectory(Request.PhysicalPath.Substring(0, Request.PhysicalPath.LastIndexOf("\\")));

   System.IO.

 

File.Create(Request.PhysicalPath);

}

}

catch (Exception ex)

again display url not found error , could you help , please to work cs 2008 on my server,

Thanks,

 

 

  • | Post Points: 5
Page 1 of 1 (6 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com