hi friends,
when i am trying to browse my ASP.NET website through IIS it is showing error regarding authentication.
please verify the attachment of the error...
thanks in advance..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vithal WadjePosted Nov 29, 2012, 3:17 AM
Vithal WadjePosted Nov 30, 2012, 11:28 PM
you need to attach the database to sql server by right cliking on
Database.mdf file and spefiy the connection
Chiranjeevi AripakaPosted Nov 30, 2012, 4:05 AM
my asp.net page is running fine in IIS but when i tried to connect to mdf. file it is chowing error ..
CREATE DATABASE permission denied in database 'master'.
then I changed the path of my mdf file likeAn attempt to attach an auto-named database for file C:\inetpub\wwwroot\modified student\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf
to
datasource=C:\inetpub\wwwroot\modified student\App_Data\Database.mdf;
and now it showing error
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)