Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. web service using asp.net problem

web service using asp.net problem

Scheduled Pinned Locked Moved ASP.NET
helpasp-netcsharpdatabasesysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lagumaster
    wrote on last edited by
    #1

    hi, i created a web service application and i added a web method on my .asmx file(this file will execute a sql command and will return a dataset). i also created a client where the dataset will be displayed in a datagrid my big problem is i don't know how to fix this error: An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional information: Server was unable to process request. --> Login failed for user 'mycomputername\ASPNET'. can anyone tell me how to fix this? thanks!

    S M 2 Replies Last reply
    0
    • L lagumaster

      hi, i created a web service application and i added a web method on my .asmx file(this file will execute a sql command and will return a dataset). i also created a client where the dataset will be displayed in a datagrid my big problem is i don't know how to fix this error: An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional information: Server was unable to process request. --> Login failed for user 'mycomputername\ASPNET'. can anyone tell me how to fix this? thanks!

      S Offline
      S Offline
      Sendilkumar M
      wrote on last edited by
      #2

      Hi This is because of Authentication problem.Do u have your service application and client appliction in the same machine? Please check all security properties of your Service application in IIS. M.Sendilkumar

      L 1 Reply Last reply
      0
      • L lagumaster

        hi, i created a web service application and i added a web method on my .asmx file(this file will execute a sql command and will return a dataset). i also created a client where the dataset will be displayed in a datagrid my big problem is i don't know how to fix this error: An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional information: Server was unable to process request. --> Login failed for user 'mycomputername\ASPNET'. can anyone tell me how to fix this? thanks!

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Hi there, IMO, the exception is originally thrown from the code of the web service when your service was trying to connect the SQl database. Here, perhaps you are using a trusted connection to connect to DB from the web service, and that can be the cause. There are a couple of ways to fix the error, for example you can use the SQL authentication instead by providing the username/password in the connection string, you can take a look at this KB[^] for more information. Also, another way to figure out what is actually happening is to look inside the inner exception of the SoapException, this document may help you out when developing web services: Debugging ASP.NET Web Services[^]

        L 1 Reply Last reply
        0
        • M minhpc_bk

          Hi there, IMO, the exception is originally thrown from the code of the web service when your service was trying to connect the SQl database. Here, perhaps you are using a trusted connection to connect to DB from the web service, and that can be the cause. There are a couple of ways to fix the error, for example you can use the SQL authentication instead by providing the username/password in the connection string, you can take a look at this KB[^] for more information. Also, another way to figure out what is actually happening is to look inside the inner exception of the SoapException, this document may help you out when developing web services: Debugging ASP.NET Web Services[^]

          L Offline
          L Offline
          lagumaster
          wrote on last edited by
          #4

          ahh...thank you so much! that helped me alot:laugh:

          1 Reply Last reply
          0
          • S Sendilkumar M

            Hi This is because of Authentication problem.Do u have your service application and client appliction in the same machine? Please check all security properties of your Service application in IIS. M.Sendilkumar

            L Offline
            L Offline
            lagumaster
            wrote on last edited by
            #5

            yes i'm running my client and server on the same machine...yeah i think i have a problem connecting to my web service to my sql database. thank you!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups