asp.net Web アプリケーションをテスト IIS 7.5 サーバー (実際には同じマシン) にデプロイしました。アプリケーションは Visual Studio 2010 で正常に動作します。Cookie を使用しない認証を使用しています。デプロイされたサイトを開いて、ログイン後にユーザーをメイン ページにリダイレクトすると、ページが見つからないというエラーが表示されます。なぜこれが起こっているのでしょうか?
ありがとうダモ
asp.net Web アプリケーションをテスト IIS 7.5 サーバー (実際には同じマシン) にデプロイしました。アプリケーションは Visual Studio 2010 で正常に動作します。Cookie を使用しない認証を使用しています。デプロイされたサイトを開いて、ログイン後にユーザーをメイン ページにリダイレクトすると、ページが見つからないというエラーが表示されます。なぜこれが起こっているのでしょうか?
ありがとうダモ
In the code behind the login page i had the following.
string Redirectport = HttpContext.Current.Request.ServerVariables["SERVER_PORT"];
RedirectURL = "http://localhost:" + Redirectport + System.Web.HttpContext.Current.Response.ApplyAppPathModifier("~/Main.aspx");
i had to change the word localhost to the actual pc name. I will make this part of the webconfig.
is this the way to do this. i thought it would of worked with localhost??
thanks Damo