Tuesday, February 26, 2008

Login failed for user computername\ASPNET

$exception {"Cannot open database \"Pasal\" requested by the login. The login failed.\r\nLogin failed for user 'owner-CC6FEF3\\ASPNET'."} System.Exception {System.Data.SqlClient.SqlException}

Try to solve this kind of error by adding below lines in web.config file.
<system.web>

<identity impersonate="true" userName="abc" password="abc" />

</system.web >

Wednesday, February 13, 2008

Unable to connect to Visual Studio's Localhost Web Server

This Problem occured when I was trying to compile ASP.net in VS 2005. I tried for 2-3 hours tyring every possibilities like changing browser settings, turning off windows firewall but nothing works. At last I found in some forums that it might be the problem with the file WebDev.WebServer.exe which comes with the .net framework. Then I copied WebDev.WebServer.exe from other machine and replace it and it worked. my gosh ! the file was corrupted.