I want to invoke the ASP.NET compiler in a batch job (part of a debugging
build process). I want to build the ASP.NET assembly from my aspx files. I'm
not talking about the "code" assembly which is built when I run/build my
application which is built from my .cs files. I am after the one which
ASP.NET generates when a page is requested. I want to be able to create the
ASP.NET assembly on demand from a batch job - any ideas how I can do this ?
(I know that the ASP.NET assembly will be built when the page is hit and I
could write a program to hit every page in the app thereby forcing a
compilation but I would prefer to be more clinical than this. Also this
approach generates the assemblies in a pseudo-random location and this isn't
helpful for what I am doing.)
Joseph Farmer 3 1414
the compiler is standard, vb.net, c sharp of javascript compiler. asp.net
create a batch file for the compile and runs it. this does you little good,
though, becuase asp.net actually parses the aspx page itself and produces
the code passed to the compiler. version 1 has no support for doing this
manually (this feature is added to version 2). you can set the batchsize
(number of pages compiled at once) to a large number to cut down the number
of page hits to compile a site.
note: every appdomain load requires a recompile.
-- bruce (sqlwork.com)
"Joseph Farmer" <jo**@asdasd.co m> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. I want to invoke the ASP.NET compiler in a batch job (part of a debugging build process). I want to build the ASP.NET assembly from my aspx files. I'm not talking about the "code" assembly which is built when I run/build my application which is built from my .cs files. I am after the one which ASP.NET generates when a page is requested. I want to be able to create the ASP.NET assembly on demand from a batch job - any ideas how I can do this ?
(I know that the ASP.NET assembly will be built when the page is hit and I could write a program to hit every page in the app thereby forcing a compilation but I would prefer to be more clinical than this. Also this approach generates the assemblies in a pseudo-random location and this isn't helpful for what I am doing.)
Joseph Farmer
Bruce, this feature is added to version 2
Ok, how do I do this in .NET 2 ? What class should I be looking at ?
Joseph
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:ec******** ******@TK2MSFTN GP09.phx.gbl... the compiler is standard, vb.net, c sharp of javascript compiler. asp.net create a batch file for the compile and runs it. this does you little good, though, becuase asp.net actually parses the aspx page itself and produces the code passed to the compiler. version 1 has no support for doing this manually (this feature is added to version 2). you can set the batchsize (number of pages compiled at once) to a large number to cut down the number of page hits to compile a site.
note: every appdomain load requires a recompile.
-- bruce (sqlwork.com) "Joseph Farmer" <jo**@asdasd.co m> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..I want to invoke the ASP.NET compiler in a batch job (part of a debugging build process). I want to build the ASP.NET assembly from my aspx files. I'm not talking about the "code" assembly which is built when I run/build my application which is built from my .cs files. I am after the one which ASP.NET generates when a page is requested. I want to be able to create the ASP.NET assembly on demand from a batch job - any ideas how I can do this ?
(I know that the ASP.NET assembly will be built when the page is hit and I could write a program to hit every page in the app thereby forcing a compilation but I would prefer to be more clinical than this. Also this approach generates the assemblies in a pseudo-random location and this isn't helpful for what I am doing.)
Joseph Farmer
Navigate to your .Net Framework directory
and issue a command line like this :
aspnet_compiler -v virtualPath
Substitute *your* virtual path, of course.
You can also precompile to a physical path
and/or add a targetPath parameter
Look up "site precompilation" in the VS.NET documentation.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Joseph Farmer" <jo**@asdasd.co m> wrote in message
news:Oz******** ******@TK2MSFTN GP09.phx.gbl... Bruce,
this feature is added to version 2
Ok, how do I do this in .NET 2 ? What class should I be looking at ?
Joseph
"Bruce Barker" <br************ ******@safeco.c om> wrote in message news:ec******** ******@TK2MSFTN GP09.phx.gbl... the compiler is standard, vb.net, c sharp of javascript compiler. asp.net create a batch file for the compile and runs it. this does you little good, though, becuase asp.net actually parses the aspx page itself and produces the code passed to the compiler. version 1 has no support for doing this manually (this feature is added to version 2). you can set the batchsize (number of pages compiled at once) to a large number to cut down the number of page hits to compile a site.
note: every appdomain load requires a recompile.
-- bruce (sqlwork.com) "Joseph Farmer" <jo**@asdasd.co m> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..I want to invoke the ASP.NET compiler in a batch job (part of a debugging build process). I want to build the ASP.NET assembly from my aspx files. I'm not talking about the "code" assembly which is built when I run/build my application which is built from my .cs files. I am after the one which ASP.NET generates when a page is requested. I want to be able to create the ASP.NET assembly on demand from a batch job - any ideas how I can do this ?
(I know that the ASP.NET assembly will be built when the page is hit and I could write a program to hit every page in the app thereby forcing a compilation but I would prefer to be more clinical than this. Also this approach generates the assemblies in a pseudo-random location and this isn't helpful for what I am doing.)
Joseph Farmer
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sim Nanda |
last post by:
Hello,
When I used to have MSVStudio 6.0 on my old machine, I
could just use:
cc somefile.cpp -o somefile.exe
to invoke the compiler from the command prompt.
Which I found very helpful for quick little test
programs.
Recently, I've moved to a new machine
at work which came with MS .NET pre-installed. I can't
|
by: Àä×ÔȪ |
last post by:
Can i invoke SSE command with c#???
Thanks for any way!!!
|
by: Boni |
last post by:
Dear sirs/madam,
I am trying to dynamically invoke assembly. (For some days Tomas helped me
to get it compiled). Now I am so far that I can test if the assembly
invoked. And I get the System.ExecutionEngineException at the time of
Invoke. Apparenty it is because of the cast of parameter 4 or may be because
GC? I tried to pin it but get compiler error, that only pointers can be
pinned.
I would very appreciate any help.
Thanks,
|
by: stephan querengaesser |
last post by:
hi ng,
i try to invoke a webservice-method with an filter-object, that
contains value types. if i don´t want to filter the return value of
the method, i have to pass a new instance of the filter-object without
setting any properties. but the value type-properties can´t be null
and the filter is set to 0 (int) or false (bool).
therefore i did implement the propertySpecified-pattern like this:
|
by: Subbu |
last post by:
I have created a simple ASP.NET web server. I expose a methos helloWorld().
when I invoke this method I receive the following error message. I
definitely seems like a setting issue. Would really appreciate a solution for
this..
System.IO.FileNotFoundException: File or assembly name ktqipm75.dll, or one
of its dependencies, was not found.
File name: "ktqipm75.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String...
| |
by: Terry Olsen |
last post by:
I'm running an asynchronous Socket. In the ReceiveCallback method, I need
to append what is received to a textbox on the main form. I have this code:
Private Sub ToChatWindow(ByVal msg As String)
txtChat.AppendText(msg)
End Sub
I've never used a delegate or invoke before and I'm rather confused on the
topic. Hope someone can help.
|
by: iLL |
last post by:
So why is it that we need to use the Invoke method when updating the GUI?
The following is the way we are suppose to update GUI components:
delegate void textIt(object o);
public partial class Form1 : Form
{
public Form1()
{
|
by: puzzlecracker |
last post by:
I've just discovered DynamicInvoke methods while reading Jon's
threading article. And my question is how it's different from a
regular invoke method?
In this method:
/// <summary>
/// Invokes the wrapped delegate synchronously
/// </summary>
static void InvokeWrappedDelegate (Delegate d, object args)
|
by: =?Utf-8?B?UmFq?= |
last post by:
I want to understand why C++ interop has better performance than P/Invoke.
Can someone explain in detail.
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |