web services

Discussion in 'ASP.NET WebServices' started by sbaral, Sep 29, 2003.

  1. I just finished creating my first web service. It works fine on my development machine. But I ran into problems when I deployed it to my web site. I have three functions in this web service. There is one function which does not use database (access database) seems to run fine but the other two which need to access the database fail. The error message simply says that there is a problem in the page. I have checked and double checked path to my db, etc. I specify the path to the database using server.mappath function. I even wrote a traditional asp script to access the database and that worked fine. What could I be overlooking?

    Appreciate you help.

    Thanks,
    Sanjeev
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    There could be a million things that cuz this error.

    Please post error and code.





    quote:Originally posted by sbaral

    I just finished creating my first web service. It works fine on my development machine. But I ran into problems when I deployed it to my web site. I have three functions in this web service. There is one function which does not use database (access database) seems to run fine but the other two which need to access the database fail. The error message simply says that there is a problem in the page. I have checked and double checked path to my db, etc. I specify the path to the database using server.mappath function. I even wrote a traditional asp script to access the database and that worked fine. What could I be overlooking?

    Appreciate you help.

    Thanks,
    Sanjeev
    </blockquote id="quote"></font id="quote">
     
  3. I know nothing about security, but I would guess that you might need to provide the properUserID and password to the database. In your local machine you might get away with it, since you can use Windows Authentication.
    Please, check(and modify?) the web.config file in your directory on the server.
     

Share This Page