G
Greg Smith
I am just getting started with ASP.Net. I am attempting to place a dateGrid
on a page and I have done all the things I would do in a Windows
application:
- drag a connection to the form
- preview the data
- generate a data set
When I run the app I get:
"Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection."
string strConnectionString = "packet size=4096;user
id=MyUserName;password=MyPassword;integrated security=SSPI;data
source=MAGRATHEA;persist security info=False;initial catalog=Tracker";
cn.ConnectionString = strConnectionString;
da.Fill(ds.tblInfo);
It fails on the .fill.
The above works perfectly in a WinApp but apparently the user name is not
picked up as I would have thought. There is obviously some additional
voodoo I need to do on the web side.
Any help is greatly appreciated.
on a page and I have done all the things I would do in a Windows
application:
- drag a connection to the form
- preview the data
- generate a data set
When I run the app I get:
"Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection."
string strConnectionString = "packet size=4096;user
id=MyUserName;password=MyPassword;integrated security=SSPI;data
source=MAGRATHEA;persist security info=False;initial catalog=Tracker";
cn.ConnectionString = strConnectionString;
da.Fill(ds.tblInfo);
It fails on the .fill.
The above works perfectly in a WinApp but apparently the user name is not
picked up as I would have thought. There is obviously some additional
voodoo I need to do on the web side.
Any help is greatly appreciated.