-
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 !
-
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.
-
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 ?
-
No, you do not need to register the dll file
-
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
-
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 !!! :(
-
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?
-
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 ?
-
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.
-
1 Attachment(s)
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
-
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.
-
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...
-
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.