views:

970

answers:

2

I'm using a web deployment project in order to precompile my ASP.NET 3.5 web project. It creates a single extra DLL for the code in aspx and ascx files. And, for every aspx file there is a placeholder aspx file (empty) which needs to be copied to the server.

I'd like to simplify the deployment process. Is there a way (configuring the IIS site and adding some sort of http handlers etc.) to get rid of these aspx placeholders?

Also, I'd like to know if there is a way to get rid of the .compiled files in the bin folder. It would make the deployment process smoother.

Thanks!

A: 

IF it is possible, then it will require, at the least, the mapping in IIS of all possible requests to the asp.net engine. Not very difficult. Then, a HttpHandler should be possible to intercept all incoming requests. That handler should then be able to dynamically load compiled page classes and render them. You'd basically have a single engine DLL that serves page content.

But as you might have noticed from all the should's, it's not a simple thing to accomplish, and I doubt that it's really worth the trouble. What exactly is wrong with these placeholder files being present?

The project has hundreds of aspx files. The deployment (on many servers on different locations) would be much easier if I in could just "copy" the DLLs instead of synchronizing a lot of aspx files...
splattne
I see you've found a way to do this in IIS. However, take a look at Microsoft's robocopy.exe for future reference. It can automatically mirror complete directory trees, so you won't have to synchronize anything manually.
Yes, I have something similar (syncback). But the problem is: on some servers I have to go FTP and the web deployment project re-creates this aspx files every time. Since I don't know if there are new aspx, I have to compare them every time ... Oh I could tell you hours of the pain I experienced...
splattne
+5  A: 
splattne
Sounds good. I hope it does exactly what you expect.
Thank you, miies. It seems so. If I discover caveats etc. I'll keep you informed in this answer.
splattne