Login failed for user 'XYZ1492\IUSR_XYZ1492' 
Author Message
 Login failed for user 'XYZ1492\IUSR_XYZ1492'

Trying to work my way through the Walkthrough for a Distributed Application included in the VB help file.  The application currently consists of a web form that accesses a web service. Windows Integrated security is being used.

I get the error message shown below at application startup (with the web form project designated as the startup project.)  The message indicates that user USR_XYZ1492 (the anonymous user) was unable to login to SQL Server.  I don't understand why the anonymous user is in play if I'm using Windows Integrated Security with anonymous access turned off. Also, the web service works fine if launched directly.

Help appreciated.

Greg Dunn

------------------------------------------------------------------------------------------------
Server Error in '/AuthorsWebClient' Application.
------------------------------------------------------------------------------------------------
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.

Exception Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Login failed for user 'XYZ1492\IUSR_XYZ1492'. at System.Data.SqlClient.SqlConnection.Open() at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) at System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at AuthorsWebService.AuthorsService.GetAuthors() in c:\inetpub\wwwroot\AuthorsWebService\AuthorsService.asmx.vb:line 122 --- End of inner exception stack trace ---

Source Error:

Line 43:         <System.Web.Services.Protocols.SoapDocumentMethodAttribute(" http://www.*-*-*.com/ ;, RequestNamespace:=" http://www.*-*-*.com/ ;, ResponseNamespace:=" http://www.*-*-*.com/ ;, Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
Line 44:         Public Function GetAuthors() As authors1
Line 45:             Dim results() As Object = Me.Invoke("GetAuthors", New Object(-1) {})
Line 46:             Return CType(results(0),authors1)
Line 47:         End Function



Mon, 03 Jan 2005 07:24:03 GMT  
 Login failed for user 'XYZ1492\IUSR_XYZ1492'

Trying to work my way through the Walkthrough for a Distributed Application included in the VB help file.  The application currently consists of a web form that accesses a web service. Windows Integrated security is being used.

I get the error message shown below at application startup (with the web form project designated as the startup project.)  The message indicates that user USR_XYZ1492 (the anonymous user) was unable to login to SQL Server.  I don't understand why the anonymous user is in play if I'm using Windows Integrated Security with anonymous access turned off. Also, the web service works fine if launched directly.

Help appreciated.

Greg Dunn

------------------------------------------------------------------------------------------------
Server Error in '/AuthorsWebClient' Application.
------------------------------------------------------------------------------------------------
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.

Exception Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Login failed for user 'XYZ1492\IUSR_XYZ1492'. at System.Data.SqlClient.SqlConnection.Open() at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) at System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at AuthorsWebService.AuthorsService.GetAuthors() in c:\inetpub\wwwroot\AuthorsWebService\AuthorsService.asmx.vb:line 122 --- End of inner exception stack trace ---

Source Error:

Line 43:         <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAuthors", RequestNamespace:="http://tempuri.org/", ResponseNamespace:="http://tempuri.org/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
Line 44:         Public Function GetAuthors() As authors1
Line 45:             Dim results() As Object = Me.Invoke("GetAuthors", New Object(-1) {})
Line 46:             Return CType(results(0),authors1)
Line 47:         End Function

--
Greg Dunn



Fri, 07 Jan 2005 23:30:10 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. login failed for user '(null)'

2. VB can't run non-Microsoft OCX when user don't login as Adminsitrator

3. Login Off's In Windows '95/'98

4. Need Help Getting User's Group From Login Account on NT

5. Getting User's NT Login programatically

6. How to read user's Novell Login name

7. How to read user's Novell Login name

8. How to capture user's NT login?

9. How to retrieve current user's login?

10. User's login name...

11. Returning users' login name

 

 
Powered by phpBB® Forum Software