G
Guest
I cannot successfully create a connection object in a web form. In the
page_load event I try the following code:
Dim sConnection As String = "server=MIDATLANTICUS;" & _
database=Pubs;integrated security=SSPI"
Dim conTest As New SqlConnection
conTest.ConnectionString = sConnection
conTest.Open()
conTest.Close()
I get an error saying that login failed for user
ElectroSource\IWAM_MIDATLANTICUS
The description I get is the following:
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
My operating system is Windows 2000 Server and my server is a domain
controller and I'm programming with Visual Basic.NET 2003. I read an article
titled, BUG: IWAM Account Is Not Granted the Impersonate Privilege for
ASP.NET 1.1 on a Windows 2000 Domain Controller with SP4, but it still didn't
work when I did what the article suggested. Please help me resolve this
problem. What should I do? I should tell you that I am new to .NET and I
have never successfully created a connection object in a web form but I have
successfully created a connection object in a windows form. What do you
think I need to do?
page_load event I try the following code:
Dim sConnection As String = "server=MIDATLANTICUS;" & _
database=Pubs;integrated security=SSPI"
Dim conTest As New SqlConnection
conTest.ConnectionString = sConnection
conTest.Open()
conTest.Close()
I get an error saying that login failed for user
ElectroSource\IWAM_MIDATLANTICUS
The description I get is the following:
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
My operating system is Windows 2000 Server and my server is a domain
controller and I'm programming with Visual Basic.NET 2003. I read an article
titled, BUG: IWAM Account Is Not Granted the Impersonate Privilege for
ASP.NET 1.1 on a Windows 2000 Domain Controller with SP4, but it still didn't
work when I did what the article suggested. Please help me resolve this
problem. What should I do? I should tell you that I am new to .NET and I
have never successfully created a connection object in a web form but I have
successfully created a connection object in a windows form. What do you
think I need to do?