I'm working on ASP.NET application in VS2012. Project uses ASP.NET Development Server & connects to Sql Server 2008 database, which is on other server. Everything works fine. My manager instructed me to use localhost IIS, than development server. Simply I pointed the home directory of Default site to the files of the project.
Whenever I access the site http://localhost/ I receive the error, when connecting to Sql Server [conn.Open();]
System.ComponentModel.Win32Exception: Logon failure: unknown user name or bad password
From the same development machine, same project, but if i access through ASP.NET Development Server (http://localhost:24573/Web/), it works fine & is able to connect to sql sever.
Note that connection string uses Sql Server credentials.
I read some articles with same error, but they are mentioning FILESTREAM feature of Sql Server, while I am not using any such feature. Even though if such feature is enabled/used internally, then, I am confused, from the same computer, but different URLs (one IIS local host & other ASP.NET Development Server), why one is able to connect & other is not able?
Is there anybody, who can guide me, what is the problem & how to fix it? Thanks in advance