Recompile ASP.NET 1.1 application WITHOUT VS.
am 22.01.2008 14:51:32 von 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
Re: Recompile ASP.NET 1.1 application WITHOUT VS.
am 22.01.2008 16:09:34 von nomailreplies
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
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:
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.
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/
======================================
"Alex" wrote in message
news:60bb0ccb-17a0-4fc8-b6df-ca3ae1828353@e6g2000prf.googleg roups.com...
> 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