G
Guest
Vey simple, but does not work:
I'm trying to set a data-driven Web page with a GridView control. The steps
I followed are:
1. Created a data connection using Database Explorer.
2. Dropped an SqlDataSource and a GridView control on the page.
3. Set the data source (configured by using the data connection) and
selected the this data source for the GridView.
4. Specified the columns of a table for the GridView.
5. Ran test successfully.
But, when I try to view the page on the browser, the following exception is
thrown:
System.Data.SqlClient.SqlException: Cannot open database "Test" requested by
the login. The login failed. Login failed for user 'EP_WKS302\ASPNET'.
** (EP_WKS302 is the computer name).
I'm using the Express Editions of Visual Web Developer 2005 and SQL Server
2005. The authentication mode for the SQL Server is "Windows Authentication".
The Web.Config file has the following connection string:
........................................................................................................................
<connectionStrings>
<add name="TestConnectionString" connectionString="Data
Source=EP_WKS302\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
.......................................................................................................................
Does anybody can help?
I'm trying to set a data-driven Web page with a GridView control. The steps
I followed are:
1. Created a data connection using Database Explorer.
2. Dropped an SqlDataSource and a GridView control on the page.
3. Set the data source (configured by using the data connection) and
selected the this data source for the GridView.
4. Specified the columns of a table for the GridView.
5. Ran test successfully.
But, when I try to view the page on the browser, the following exception is
thrown:
System.Data.SqlClient.SqlException: Cannot open database "Test" requested by
the login. The login failed. Login failed for user 'EP_WKS302\ASPNET'.
** (EP_WKS302 is the computer name).
I'm using the Express Editions of Visual Web Developer 2005 and SQL Server
2005. The authentication mode for the SQL Server is "Windows Authentication".
The Web.Config file has the following connection string:
........................................................................................................................
<connectionStrings>
<add name="TestConnectionString" connectionString="Data
Source=EP_WKS302\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
.......................................................................................................................
Does anybody can help?