Welcome to Webhost4life Forum Sign in | Join | Faq

ASP.NET VB.NET

Started by nellyfromma at 04-24-2008 10:47 AM. Topic has 2 replies.

Print Search
Sort Posts:    
   04-24-2008, 10:47 AM
nellyfromma is not online. Last active: 4/25/2008 9:33:26 PM nellyfromma

Top 500 Posts
Joined on 04-25-2008
Posts 2
Deploying a Web Service onto webhost4life webpage.
Reply Quote
Hello,

I am currently interested in experimenting with .NET 2.0 Web Service creation for my website. I have coded a very simple web service and thought perhaps all I needed to bring over was the web.config, asmx and asmx.vb files.

The error I receive is a typical error from what I understand:

"Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'PPTWebService.JobInfo'.

Source Error:


Line 1:



Source File: c:\hosting\webhost4life\member\geoboss\plotplanscom\html\test\html\webservice\jobinfo.asmx Line: 1
"

I searched around for this type of error and from what I understand I needed to build my Project file and now I have a .dll file in a bin folder. My question is where do I place this .dll file? I have a cgi-bin folder under my site folder but placing the dll in there doesn't seem to do anything.

My .NET version for the site is 2.0. Also, I noticed I can 'set .net app' under the admin tools for webhost4life, but I have no idea what that is supposed to allude to. I tried to point this to the subdir I places my asmx's but that didn't seem to have an effect either.

Any help is appreciated,
Nelson

PS. the asmx points to the correct class. My project's name is PPTWebService and class name is JobInfo. The class my asmx points to is PPTWebService.JobInfo.


   Report 
   06-08-2008, 7:41 AM
bicnet is not online. Last active: 6/8/2008 10:32:33 PM bicnet

Top 150 Posts
Joined on 06-08-2008
Posts 3
Re: Deploying a Web Service onto webhost4life webpage.
Reply Quote
If you're running the default "website" project, you need to have that .dll placed in the bin folder in the root of your website (the one that the web service resides in).

If you are running a web application project, make sure that .dll is referenced.

So if this: c:\hosting\webhost4life\member\geoboss\plotplanscom\html\test\html\  was the root of your website:

c:\hosting\webhost4life\member\geoboss\plotplanscom\html\test\html\bin\ -  this is where the DLL should be put

----
If you have a perfectly workking local copy, you can just FTP the root website up to the servers (Don't need to copy or anything).



   Report 
   06-08-2008, 6:19 PM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: Deploying a Web Service onto webhost4life webpage.
Reply Quote
The 'Set .NET App' option allows you to set the .NET version for the domain/sub-domain you're using to run your .NET application. It's always a good practice to set the .NET version to the appropriate version - even if that version is already shown for the domain/sub-domain. If your application needs .NET 2.0/3.5, but .NET 1.1 is set for the domain/sub-domain, then you will get an error message.


I <3 WebHost4Life.com
   Report 
Webhost4life Fo... » General Discuss... » ASP.NET VB.NET » Deploying a Web Service onto webhost4life webpage.

Powered by Community Server, by Telligent Systems