Attention: We are retiring the ASP.NET Community Blogs. Learn more >

DotNetNuke Tip #15, Running a webservice inside of a DNN site.

Perhaps you need to run a webservice inside an instance of DotNetNuke. If you've tried by just copying the webservice directory out there you've probably been frustrated with the result.

The fix is pretty darn simple. First thing, create a virtual directory in IIS for your web service folder.

Second, copy the BIN files from the DotNetNuke/bin folder to the webservice/bin folder.

In the webservice web.config file add the following to System.web

<httpModules>

<clear />

</httpModules>

That will clear out the httpModules that DNN loads, thus allowing your webservice to run on it's own.

<clear />

</httpModules>

That will clear out the httpModules that DNN loads, thus allowing your webservice to run on it's own.

 

12/4/2010 An update to this blog post

I found another useful resource for IIS7 and getting a virtual directory to run Under DotNetNuke, follow the instructions on this blog post.

2 Comments

  • I tried adding the lines to my web.config for a Screwturn wiki running inside of DNN, but it doesn't clear out the httpModules that DNN loads.



  • Using DNN 4.8.3 here is everything that I needed to add to my web.config:

















    -->





















    Please note that this was for a web service in a subdirectory. I have installed Screwturn in a DNN subdirectory before. I will try to find that web.config

Comments have been disabled for this content.