Need help in Webservice Deployment [How to deploy a webservice?]

Dear all

i am getting this error when i am deploying a webservice made in asp.net 2.0. i havnt deployed a webservice before and this is my first time. i have followed all the proxy creating process and the virtual directy assignment stuff. tell me what i am missing. i get this error when i access the webservice from IE.

The webservice class name is Service.asmx

-------------------------------------------------------------------------------------------------------------------

Server Error in '/PAS_Webservice' Application.

Answer this question

Need help in Webservice Deployment [How to deploy a webservice?]

  • MSDNuser63

    A proxy class , the way you describe it is usually for a web service. Not a web application.

    There are many ways in which you can deploy an ASP.nET 2.0 web app.

    1. Precompile the entire app

    2. Pre compile only the cs files(here you will deploy a dll in thebin folder)

    3. Dynamically compile the files using App_code dir.

    I would suggest checking out the gotdotnet site for these details so that you will be able to make an informed choice.



  • dlldelhi

    well i checked that all...the names are same and file in its proper location, but still the error is same.

    okay a few questions.

    i need a proxy class in my solution. i know i can get that by simply adding a web reference to my solution. and i do that by the vs wizard. is this the proper way to do so

    i have to make a dll of my cs file and do that from the command prompt and deploy it in a bin folder in my webshared folder. is this the proper way to do so

    next when i have to call my webservice is it necessary to write the port # with the url i type.

    i hope i get these answers..cause they bin really bugging me. its my first time @ asp.net and things going wild :)...need ur help

    thanks in advance.

    Regards



  • TheCranker

    Also make sure you didn't rename the Class in Service.cs to some other than "Service".



  • MSenthilVel

    Make sure that the class named Service.cs is deployed to the App_Code directory.

  • Need help in Webservice Deployment [How to deploy a webservice?]