Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a web app that runs fine on the Dev Machine but, when run from a folder on the server it cannot find files in the code behind. When I run it locally I can find all files. On the server, any <a> redirects work file but I can not use Response.Redirect in the code behind.

 

//in the aspx page the following always works...
<a href="NextPage.aspx?SID=1234">Go To Next Page</a>

//in the code behind the equivalent does not work on the server.
//  But does work on the development machine
Response.Redirect("~/NextPage.aspx?SID=1234");

 

On the Server the pages are located in a subdirectory. Updating the redirect to include the sub dir also does not work.

I.E. "/SubDir/NextPage.aspx?SID=1234"

 

Not sure what else to try at the moment.

Thanks

MTS

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Posted

Error: 404 File or directory not found.

 

Development Path = C:\Documents and Settings\mtskull\My Documents\Visual Studio 2008\Projects\Typhon_Tracking\Typhon_Tracking\Typh_Hx.aspx

 

Server Path = C:\inetpub\wwwroot\TyphTrak\Typh_Hx.aspx

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Posted

Thanks, I found it. There was an old reference to a network resource that was unavailable to the server. When I tried to run the website on the server I got a meaningful error message that allowed me to find the problem.

Thanks for the Help

MTS

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...