if u want to run ur web page from remote desktop use the following instructions,
1. sql Connection string as
Data Source=server_name;Initial Catalog=Database_name;User ID=username;Password=password"
Note:
No need to write like below
Data Source=server_name;Initial Catalog=Database_name;Integrated Security=True;User ID=username;Password=password"
if u run ur page from remote desktop or from ur local system with above sql connection string. The Following Error Will Display
System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Before Going to run ur web page from remote desktop, first configure ur web folder by iis.
1. start--->control panel--->Administrative Tools---> Internet Information services, double click the icon to open iis.
2.Expand ur local computer name like (vijay(local computer)) , it displays
2.1 Website
2.2 Default SMTP Virtual Server
3. Expand Website option, Default web site option apper, expand Default web site too.
4.It shows the list of Webpage in form of folders.
5.select ur own folder. Right Click and select properties option, in that create virtual directory,just click create button in Application setting segement.
6.select Directory Security Tab---> click edit button
7.Check anonymous access checkbox and Allow iis to control password, and also check Integrate window Authentication.
8. then click ok to finish the process.
We can run our application in two ways
1. From local system with domain or system name
2. From Remote Desktop
From local system, with Domain name
open IE and type the path like below
http://system_name/foldername/Default.aspx (or)
http://localhost/foldername/Default.aspx
From Remote Desktop
http://system_name/foldername/Default.aspx
No comments:
Post a Comment