Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

New to web services in 2005. I compiled my web service to my site and the .asmx file I believe isn't linked properly since It's compiled and that info is in the bin folder. This is what the .asmx file looks like

 

<%@ WebService Language="VB" CodeBehind="~/App_Code/myservice.vb" Class="myservice" %>

 

I'm guessing some compiler options are wrong. Since this file is pointing to an app_code folder which it doesn't even add. I set up a virtual directory so I am sure that is all right. Any suggestions to fix that to link it to the right place? I don't know how they link it to the .dll's

Posted

asmx do not change

 

The asmx file does not change during compilation, and therefore retains the reference to App_Code (which presumably existed in the source project). If the deployed web service is not working there must be another reason.

 

Good luck :cool:

Never trouble another for what you can do for yourself.
Posted

Well, yeah. When I build it there its not compiled. I thought when it was compiled it was all one self contained unit. I also have it in a namespace guess I'm confused on how they did this.

<WebService(Namespace:="http://www.mysite.org/virtualdirectorywhereserviceis")>

  • Administrators
Posted

.Net 2 changed the workings of web applications in regards to compilation and publishing, the differences can really catch you out.

 

If you prefer the VS 2003 way of doing things then SP1 for VS 2005 brings back the project based way of doing things as an option.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
It seems pretty weird and I am suspecting it's some bug in 2005. The other files and rest of the web pages compiled fine. I seen how they linked up and what this does is something completely different. Do you have any link that shows the difference between 2003 and 2005 web services?
Posted
Well, if anyone knows the correct way to compile it let me know.I just want ahead and put it in there as uncompiled and it works that way.Which is fine. I can use that while I'm debugging the windows application. Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...