aspnet-compiler

Why is aspnet_compiler.exe so slow (and can it be made any faster)?

During our build process we run aspnet_compiler.exe against our websites to make sure that all the late-bound stuff in ASP.NET/MVC actually builds (I know nothing about ASP.NET but am assured this is necessary to prevent finding the failures at runtime). Our sites are fairly large in size, with a few hundred pages/views/controls/etc. ho...

aspnet_compiler ASPParse Could Not Load Type

I am unable to build my Web Application (not Web Site) in our build environement. We use DMAKE in our build environment (this unfortunately is non negotiable, therefore using MSBUILD is not permitted ) and when invoking the asp.net precompiler through C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -d -nologo -p Site -f -...

How can I publish an ASP.NET MVC project from the command line?

I've got an existing web site that monitors an SVN repository for changes and when there is a check in, the new web site is built using aspnet_compiler and then a diff of what is on the production site is sftp'd up to a production web server. The entire continuous integration process is built using cruisecontrol.net. I've refactored the...

Circular file references not allowed

Hi, I am having a problem in building my solution in VS2008. Normally, it compiles fine in the environment. Sometimes, it fails with: /xxx_WEB/secure/CMSManagedTargetPage.aspx(1): error ASPPARSE: Circular file references are not allowed. I rebuild and it works fine. Now, however, I am in the middle of setting up a CruiseControl.NET ...

How to publish to server using aspnet compiler

Currenlty I am trying to publish usinf aspnet compiler using a batch file start /b C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -p "C:\cc\titr\code\" TargetPath="C:\cc\titr\code\deploy\" Force="true" Debug="true" Giving me error 1010 file path not valid. Any idea where I am doing wrong. as the paths are correct ...

Unable to publish using msbuild or aspnet_compiler using cc.net

I am trying to automate publishing a project having many solutions in cc.net. I am using msbuild which in turn calls a aspnetcompiler xml file. Problem is my directory contains many solutions and when I run aspnetcompiler it gives me the following error. errorASPCONFIG: It is an error to use a section registered as allowDefinition='Mach...

Getting Could not load type errors while publishing

Getting following errors after trying to publish using aspnet_compiler errorASPPARSE: Circular file references are not allowed. errorASPPARSE: Unknown server tag 'uc2:FAQ'. errorASPPARSE: Could not load type 'CompoundControls.BBar'. errorASPPARSE: Could not load type 'CompoundControls.PPIndicator'. errorASPPARSE: Unknown server tag 'm:C...

Which project to publish if you have 20 project solutions in same folder

I am using aspnet_compiler to publish a particular solution from a bunch of solutions residing in same folder. I dont know how to tell aspnet_complier to excecte a particular one. Can any one having any idea abou it. ...

Suppress compiler warnings using aspnet_compiler at the command line

Is there a switch to suppress specific compiler warnings when using the aspnet_compiler.exe warnings at the command line? I've tried fixing the errors myself, rather than ignoring them - they are for events that are defined by never used. I simply commented out the events, but this caused other problems! It's as if they are used but the...

How come the attributes for event handler properties on ASP.NET controls have a prefix (OnLoad for the Load event handler)

This is just for a better understanding of the ASP.NET framework. When you use a control in a declarative way (that would be web form markup), you assign event handlers by their method name using an attribute that starts with On: <asp:Button runat="server" OnClick="..."/> But when you look at the System.Web.UI.WebControls.Button class...

Trying to Build and Publish Asp.net website from command line using aspnet_compiler

I am trying this. I have built asp.net website. When I publish to IIS through VS2008 it works fine. Lets say my site is at c:\projects\Website1\ I want to publish it to c:\Inetpub\wwwroot\WebsiteOne I am trying to mimic publish from studio. That is publish and remove anything that is in side. I tried this: aspnet_compiler -v/WebsiteOne...

Copy web-site on remote machine

I am trying to create command line command to do this. I already deploy website using aspnet_compiler to local drive. Now I am trying to copy these files to remote machine IIS: is it possible to use aspnet_compiler to directly deploy on remote IIS something like this aspnet_compiler -v /Website1 -p c:\Projects\WebSite -f test.lala.com...

Is it possible to set updatable to true and still request precompiled pages from their assembly?

I had it working earlier today, but now I get the contents of the marker files if I request precompiled pages. The .compiled file and the assembly it refers to are still present in the /bin folder. I would expect that the ASP.NET runtime first checks to see if there is a .compiled file before trying to serve the page directly, but I have...

.NET Compiler Output

I'm attempting to resolve source problems and I'm attempting to figure out which version is which. The other problem I'm running into is the output the .NET compiler generates is very unintelligible and a little frustrating. In my bin folder i have the following assemblies: AjaxControlToolkit.dll AjaxControlToolkit.pdb App_Code.compil...

aspnet_compiler fails when using App_Browsers folder with Web Deployment Project

Hi When Compiling my Web Deployment Project which references a Asp.Net project with a App_Browsers folder I get the following compilation error: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /[PROJECTNAME].csproj -p "[FILEPATH]" -u -f -d .\TempBuildDir\ ASPNETCOMPILER : error ASPRUNTIME: Object reference not set...

Precompiling asp.net solutions for deployment

I'm using aspnet_compiler.exe to precompile my application for deployment. However, I don't think it's working, for two reasons: I see my applications assemblies under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, even if i manually clear out this directory & restart the app. The performance hit to JIT the app...

How to specify a CompilerVersion for aspnet_compiler.exe without a web.config?

When you precompile a directory that doesn't contain a web.config, the aspnet_compiler.exe defaults to CompilerVersion 2.0 and 3.5 code fails to compile. Is the following minimal web.config the only way to specify the CompilerVersion? <?xml version="1.0"?> <configuration> <system.codedom> <compilers> <compiler language="c...

ASP.NET Compilation And Code Visibility

How ASP.NET compiles its assemblies generally confuses me. It seems that I cannot program against anything outside the *App_Code* folder. In the application I am working on I have several server side controls and a few user controls. The user controls are outside the *App_Code* folder and I cannot refer to them from the *App_Code* folder...

aspnet_compiler and msbuild.exe question

Hello, I am pretty new to msbuild and aspnet_compiler. I am using aspnet_compiler to compile web application project. Now I just saw the MSBuild.exe and noticed that its builds my website into the /mywebsite/precompiledWeb folder. Now why do I need to use MSBuild.exe? Can't I directly use the aspnet_compiler to see if my website can b...

Specify which version of aspnet_compiler Visual Studio uses?

Is it possible to tell Visual Studio 2010 to use an older version of aspnet_compiler to build and debug a web application project? I have a web app targeted for .Net 3.5 that complains and mentions something about using version 2.0 of the aspnet_compiler command. I know where on the disk this magical version of aspnet_compiler is located...