Does wodWebServer.Net support precompiled asp.net - WeOnlyDo Discussion board

Does wodWebServer.Net support precompiled asp.net (wodWebServer / wodWebServer.NET)

by Jeremy, Friday, May 09, 2014, 14:58 (3851 days ago)

Does wodWebServer.Net support precompiled asp.net web application?

Is there any sample code?

Does wodWebServer.Net support precompiled asp.net

by wodSupport, Friday, May 09, 2014, 21:33 (3851 days ago) @ Jeremy

Hi Jeremy.

Yes, you can use precompiled asp.net applications. Here's what I did to make it work. I installed wodWebServer.NET, and tested with our 'VB 5. With ASPX' sample. Inside that sample's folder, I renamed 'Website1' folder to 'WebSite1.src' folder, and created new empty 'WebSite1' folder. Since our sample app uses that folder for serving ASP.NET pages, I thought this would be best approach.

Then, as explained here:

http://msdn.microsoft.com/en-us/library/ms227976(v=vs.90).aspx

NOTE: I had to remove Authentication mode = Windows from web.config (line 27) for aspnet_compiler to work correctly.

I opened command prompt, went to C:\Windows\Microsoft.NET\Framework\v2.0.50727, and executed command like this one:

aspnet_compiler.exe -p "your.path.to\VB 5. With ASPX\WebSite1.src" -v / "your.path.to\VB 5. With ASPX\WebSite1"

(change your.path.to to real path where wodWebServer.NET is installed". As you can see, command compiles original WebSite1.src to compiled WebSite1.

After that, I just opened our sample and executed it. It worked like a charm.

Hope this helps!

Kreso