Precompile asp.net webpart dll

Posted by mathias florin on Stack Overflow See other posts from Stack Overflow or by mathias florin
Published on 2010-06-15T12:49:31Z Indexed on 2010/06/15 12:52 UTC
Read the original article Hit count: 567

Filed under:
|

Hi,

I have built a few custom webparts for WSS 3 using the Visual Studio 2010 Web application template. When I compile the application, Visual Studio creates the assembly file in the bin directory which I copy over later to the production server (another machine) with WSS 3. The compiled webpart dll is copied into the bin folder inside the virtual directory of WSS.

I would like to precompile the webpart / dll using the aspnet_precompiler on my development machine to reduce the delay when the page is first requested.

I have used the following command to precompile the entire Web Application:

aspnet_precompile -v / -p PATH_TO_WEB_APPLICATION C:\WebApp -errorstack

The compilation runs fine without any errors and I end up with a couple of .compiled files and also a Web_App_xxxxx.dll file inside the C:\WebApp\bin folder.

From here onwards I am a bit lost how to proceed.

Could you give me an advise to which folder I need to copy the compiled files on the production server?

Do they need to go into the bin folder on the server or better inside the temporary asp.net folder %SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files folder?

Can I precompile the Web application on a development machine without the IIS metabase?

Cheers,

Mathias

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about precompile