Results 1 to 13 of 13

Thread: Web Services

  1. #1

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322

    Web Services

    Hi all,

    All these talk abt Web Services had made me eager to create one on my own.

    I have created a web service on my own local host and all works fine...

    But I have problems deploying it to a remote web (virtual) server as it presents the error = cannot create type"WebService1.Sevice1"

    My question is, I have heard it is easy to deploy and stuff like that... BUT do I need to install the compiled object onto the remote server eg....regsvr32 some.dll OR can i just copy the asmx file onto the web server and let the JIT compiler take care of the rest ?

    Can anyone please help ? Any help is appreciated !
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    40
    Your remote server must have .NetFramework and Frontpage Extension installed.

    To copy the web service to the server, create a virtual directory on it and copy all the ".asmx" files and the "bin" directory to the virtual directory.

    You can then access the web service through the .asmx files.

  3. #3

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Hi,

    Thanks for the reply. It tells me that i cant create a type class

    Does the DLL in the BIN need to be registered on the remote server eg regsvr32 some.dll ?
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    40
    No, you do not need to register the dll file

  5. #5

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Hi Prog

    Thanks for the reply.

    I have created a asmx page by itself and have managed to copy it to my remote server but i encounter the following error.

    please take a look at this link and tell me what is wrong with it. I really appreciate all your help. Thanks

    http://www.vbforums.com/showthread.php?threadid=168316
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  6. #6

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Hi Prog,

    I have copied all the asmx and the bin directory over and I get this error as by this page

    http://www.softwaremaker.net/webserv.../service1.asmx

    I am utterly confused !!!
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  7. #7
    Member
    Join Date
    Mar 2002
    Posts
    40
    I'm not sure. Where did you get the sample code from? We need to see the code to try it out.

    By the way, the page display this message,
    "Server Error in '/' Application"

    Normally, it should be
    "Server Error in '/YourWebServiceName' Application"

    Did you create the virtual directory correctly?

  8. #8

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    yes i have as we can see the codes on the error page on the asmx file in the virtual directory.

    What other problem could it be ?
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  9. #9
    Member
    Join Date
    Mar 2002
    Posts
    40
    Did you configure your virtual directory as an application?

    To check, open the IIS Manager. Open up the properties for the Virtual Directory. Under the Directory tab, if there is a Create button, then you haven't configure it as an application.

    By the way, we need the code to see what's wrong.

  10. #10

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Hi,

    I dont have access to my remote server now as it is a server shared by everyone else

    BUT i am fairly sure that it has been set properly. I will attach a zip file of the codes.

    If you can pinpoint to me where the error is, I will really appreciate it. Thanks
    Attached Files Attached Files
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  11. #11
    Member
    Join Date
    Mar 2002
    Posts
    40
    I'm not sure... everything seems to be okay on my machine... maybe I'll try on my deployment site tomorrow.

    Anyway, I think there might be a problem with your remote server... well, just a guess.

  12. #12

    Thread Starter
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Thanks so much for your help, prog.

    Like you, I am sure there is a config problem with my remote server. I just dont know what it is and how to tell the remote web administrators...
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  13. #13
    Member
    Join Date
    Mar 2002
    Posts
    40
    I tried the service on my deployment server and everything works fine. There is not Visual Studio .NET development tools on the server, just IIS, FrontPage Extension and .NET Framework.

    Anyway, there must be something wrong with your remote server as it does not display the application name correctly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width