Re: Howto: WebService in not Bin folder?
From: Mujtaba Syed (mujtaba_at_marlabs.com)
Date: 12/15/04
- Next message: Jeff Dillon: "Re: call web service from TSQL"
- Previous message: Sergio Cossa: "Re: Call a webservice from a javascript function"
- In reply to: Topper: "Re: Howto: WebService in not Bin folder?"
- Next in thread: Topper: "Re: Howto: WebService in not Bin folder?"
- Reply: Topper: "Re: Howto: WebService in not Bin folder?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 11:18:16 -0500
Hi Topper:
> ASMX file has definition(assembly name) of my WebService object for
> ASP.NET.
> ASP.NET searching my WebService assembly in bin folder (by default it
> defined in machine.config file)
> But if i place my WebService dll not in bin folder ASP.NET cann't found it
> and error occured.
If you use Visual Studio .NET, it breaks your web service into two parts, a
.ASMX file and a .ASMX.CS file. The .ASMX.CS file is referenced by the
CODEBEHIND attribute in the .ASMX file. Now when you compile your project,
the .ASMX.CS (codebehind) is compiled to a .DLL and placed in your BIN
folder under your VROOT. When the ASP.NET runtime is serving an .ASMX file
(reference in the URL), it sees the INHERITS attribute and compiles a
temporary class by inheriting the codebehind class from the DLL. So, /BIN is
just the default probing path to lookup assemblies. And since you don't want
to configure alternative probing paths in web.config, you problem can be
solved by not using a codebehind at all. Put all your code in .ASMX and be
done with!
Mujtaba.
- Next message: Jeff Dillon: "Re: call web service from TSQL"
- Previous message: Sergio Cossa: "Re: Call a webservice from a javascript function"
- In reply to: Topper: "Re: Howto: WebService in not Bin folder?"
- Next in thread: Topper: "Re: Howto: WebService in not Bin folder?"
- Reply: Topper: "Re: Howto: WebService in not Bin folder?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|