0

asp.net Web アプリケーションをテスト IIS 7.5 サーバー (実際には同じマシン) にデプロイしました。アプリケーションは Visual Studio 2010 で正常に動作します。Cookie を使用しない認証を使用しています。デプロイされたサイトを開いて、ログイン後にユーザーをメイン ページにリダイレクトすると、ページが見つからないというエラーが表示されます。なぜこれが起こっているのでしょうか?

ありがとうダモ

4

1 に答える 1

0

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

于 2012-09-11T19:04:10.243 に答える