Friday, February 10, 2012

Registering an Assembly through code

November 3, 2009 by · Leave a Comment 

Many times we have to register an assembly and only one thing came in mind "regasm" command line utility. But for this also we have to manually type this command and it parameters (assembly name) in command prompt, or we can use the Process class in .NET to call regasm executable, and run through .NET, [...]

Publish a ASP.NET website from command line

October 31, 2009 by · Leave a Comment 

In case of an automatic build/deployment process it might be a request to precompile the web application after building it. Since .NET Framework 2.0 there is a tool called aspnet_compiler.exe. You can use it like that: aspnet_compiler -v /MyIISWebApplication MyTargetPath Make sure that MyIISWebApplication is a registered web application within IIS. MyTargetPath defines the path [...]