How to create Web Service dll

It seems like I've seen the answer to this question somewhere in the forum before, but I can't seem to find it so, how 'bout another post?

I am not finding a dll for a C# web service that I have created in Visual Studio 2005.  Do I need a dll in order to deploy the service?  Also, I am not wanting to put my .cs files on the web server.

Why dont you publish your web service (right click the WebService project and select Publish WebSite)? You can see the DLL in the published folder under /bin folder. I use this "Publishing" for deploying web services.

Let me know if this works.

 

Do you know why the dll creation was taken out of the build for web services?  This seems lame but, I'm sure there was a good reason.

There were many benefits associated with the new compilation model in VS 2005. For e.g.(one of them which I particularly like):

"Because pages are compiled dynamically and compiled into different assemblies as needed, it is not required that the entire project compile successfully in order to run and debug a page."

So the new compilation model has its advantages too.

Please see this link for details and exact differences between these two models:

http://msdn.microsoft.com/vstudio/default.aspx?pull=/library/en-us/dnvs05/html/WAP.asp

Leaving the old option out at first, was purely a mistake (that's why they released WAP quite fast), but there was reasons to introduce the new model, explained by Scott Guthrie himself: http://weblogs.asp.net/scottgu/archive/2005/08/21/423201.aspx

 

from   http://forums.asp.net/p/1013120/1356503.aspx

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值