Connectivity Issue
-
Hello Friends, I am in a search of some information over asp.net. I have created a web application which my client requires to set in on a server which is phisically present in the company premises itself. The condition of the client is such that when the users are using the application in the same premise they should not be routed through internet, so the bandwith could be saved. Over there they should use LAN for processing the application. But for the user who is accessing the website through internet should hit the same server and application. So in short they need that the application should have two pointers. I have tried giving it two pointers, the application is getting accessed through internet, user can login sucessfully but as the any activity is clicked it displays "Page Cannot be displayed" the reason is it is searching for internal server files through URL. Eg... My test application is deployed by name http://testsoft/login.aspx My live application which has a public ip is by name http://255.26.235.22/login.aspx When user logs in a web application internaly and clicks on any activity through LAN the application redirects the pages through the url http://testsoft/myactivity.aspx But when user logs in a web application externally it should display ip http://255.26.235.22/myactivity.aspx but instead of that its getting redirected to http://testsoft/myactivity.aspx which is basically for internal users. So external users are not getting access through the activities of the application and the result which gets displayed is "Page cannot be displayed". Is there any solution related to global.asax file ? If any kindly let me know. Please reply ASAP,
Nikhil Bandekar Mumbai, India
-
Hello Friends, I am in a search of some information over asp.net. I have created a web application which my client requires to set in on a server which is phisically present in the company premises itself. The condition of the client is such that when the users are using the application in the same premise they should not be routed through internet, so the bandwith could be saved. Over there they should use LAN for processing the application. But for the user who is accessing the website through internet should hit the same server and application. So in short they need that the application should have two pointers. I have tried giving it two pointers, the application is getting accessed through internet, user can login sucessfully but as the any activity is clicked it displays "Page Cannot be displayed" the reason is it is searching for internal server files through URL. Eg... My test application is deployed by name http://testsoft/login.aspx My live application which has a public ip is by name http://255.26.235.22/login.aspx When user logs in a web application internaly and clicks on any activity through LAN the application redirects the pages through the url http://testsoft/myactivity.aspx But when user logs in a web application externally it should display ip http://255.26.235.22/myactivity.aspx but instead of that its getting redirected to http://testsoft/myactivity.aspx which is basically for internal users. So external users are not getting access through the activities of the application and the result which gets displayed is "Page cannot be displayed". Is there any solution related to global.asax file ? If any kindly let me know. Please reply ASAP,
Nikhil Bandekar Mumbai, India
Hey Nithil,
Nikhil Bandekar wrote:
My test application is deployed by name http://testsoft/login.aspx My live application which has a public ip is by name http://255.26.235.22/login.aspx
The above code shows that you are using Absolute Path instead of relative path. Eg, You must use Response.Redirect("Login.aspx") where Login.aspx file is located in the same root not Response.Redirect("http://testsoft/login.aspx").
Nikhil Bandekar wrote:
Is there any solution related to global.asax file ? If any kindly let me know.
As per knowledge nope... But I have seen some application are frame the URL in Global.asa or Global.asax file. You check both scenario.
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot