I've created a project in VS of type Site. I've created a bunch of asmx services. To make it work on IIS, I just copied cs and asmx files to site's folder. Everything works perfect. Now, when it comes to deploy my services from local pc to development server, I was told to deliver a single dll. I don't see how I can compile a dll on this type of project. Is it possible?
Then, I created an ASP.Net project, put all my stuff there. It created a single dll. But if I put it that folder and tell my asmx, that code behind is in that dll, I get parse error when try to check it in browser.
WebService1.asmx:
<%@ WebService Language="C#" CodeBehind="~/AllWebServices.dll" Class="MyNamespace.WebService1" %>
Maybe I need to add smth in Class attribute?
I have Asmx webservices deployed on IIS on remote server.
Class Library
bin folder
of your project. You will find dll's there.external dlls/libs
and want a single dll you have to merge them, using Using Ilmerge to combine multiple dlls in .NETWhen I deploy my asmx webservice to IIS on remote server. I deploy only
bin
webservicename.asmx
Web.Config
Note: You don't need to change the markup in
.asmx
file of your webservice. It will automatically find it in thedll in bin folder
.