Recompile ASP.NET 1.1 application WITHOUT VS.

A

Alex

Hi

This might seem an unusual request!

Does anybody know how to rebuild an ASP.NET 1.1 application on server
without Visual studio (i.e. compile on the server itself).

It would be fine if it was an ASP.NET 2.0 application I guess (would
recompile on the fly).

Is there anything in the standard 1.1. framework which will allow me
to do this?

BACKGROUND

Basically I've hacked a .VB file on the application server (minor
change) using notepad, there are no copies of Visual Studio available
here. I've backed up the application and wish to attempt a rebuild
(just changing the file, or deleting the bin files is not enough for
ASP.NET 1.1 seems), and I don't really want to install VS2003 on a
machine just for this trivial hack.

Many thanks

Alex
 
J

Juan T. Llibre

re:
!> Does anybody know how to rebuild an ASP.NET 1.1 application
!> on server without Visual studio (i.e. compile on the server itself).

Here's a tip from :
http://www.ssw.com.au/ssw/kb/KB.aspx?KBID=Q1545246

<quote>
ASP.NET 2.0 has precompilation built-in (when you compile through VS.NET 2005 or above) or with
the command line aspnet_compiler.exe. However, if you are using ASP.NET 1.1, you can use this tip.

Place the following http handler section into your web.config:

<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="precompile.axd" type="System.Web.Handlers.BatchHandler"/>
</httpHandlers>
</system.web>
</configuration>

Then surf to the file http://webservername/VirtualDirectoryName/Precompile.axd

If your site has no errors, you will get a message "Batch Compilation Successful" displaying on the page.
Otherwise, you will get an error from the pages on your site that do not precompile. Note that this will only
work for the current directory. If you have subfolders, you will need to run it on the subfolders as well.

You may also have to restart the ASP.NET worker process
(or just restart IIS) for the ASP.NET 1.1 precompiler to work.
</quote>

HTH...


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top