Questions tagged [aspnet-compiler]

165 questions
30
votes
5 answers

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…
Greg Beech
  • 133,383
  • 43
  • 204
  • 250
24
votes
2 answers

Avoid aspnet_compiler running PreApplicationStart method

So, one of my websites has a PreApplicationStartMethod that should run before the application starts: [assembly: PreApplicationStartMethod(typeof(ServiceStackAppHost), "Start")] This methods does some bootstrapping and relies on some configuration…
driis
  • 161,458
  • 45
  • 265
  • 341
23
votes
16 answers

Circular file references not allowed

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…
Program.X
  • 7,250
  • 12
  • 49
  • 83
20
votes
9 answers

ASPNETCOMPILER error ASPCONFIG: Could not load file or assembly 'Microsoft.VisualBasic.Activities.Compiler' or one of its dependencies

I just upgraded my project to Asp.Net 4, from 3.5. When the build kicks off from TeamCity, I get the following error: [Project "Website.metaproj" (Rebuild target(s)):] C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /Website -p…
Jim Geurts
  • 20,189
  • 23
  • 95
  • 116
19
votes
1 answer

Precompilation of aspx and cshtml pages, but leaving the master or layout pages updateable

Not sure if what I am after here is even achievable with the aspnet_compiler.exe tool, but here goes: We have a site that we allow users to skin by allowing them to modify master pages - or rather, we don't allow them to modify them directly, we…
MajorRefactoring
  • 3,713
  • 3
  • 20
  • 26
17
votes
8 answers

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…
F.A.B
  • 181
  • 1
  • 1
  • 3
11
votes
2 answers

Why does the ASP.NET Compiler rebuild all binaries in every build?

When I recompile my project (asp.net, c#) with aspnet_compiler the rebuilt binaries change (when compared to the previous build) even if no code changes have been made. This, I understand, is due to the build generating a new Module Version ID…
devlop
  • 1,168
  • 1
  • 8
  • 19
10
votes
2 answers

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…
Clearly
  • 1,624
  • 3
  • 11
  • 15
10
votes
4 answers

How do you handle excluded files with aspnet_compiler?

I'm trying to use aspnet_compiler to move a project that has already compiled from one location to another. I'm using Subversion for revision control. The process basically gets all the code out of subversion, does a build, then calls…
Tom Moseley
  • 591
  • 7
  • 15
10
votes
0 answers

Expression Body VS Block Body

While coding, a discrepancy surfaced. Normally while coding simple methods or constructors I often utilize the expression body technique. However, when I produce the following: public class Sample : ISample { private readonly…
Greg
  • 11,302
  • 2
  • 48
  • 79
10
votes
1 answer

How to exclude path from precompilation for AspNetCompiler in csproj

example on command line that i use to exclude Admin path with -x C:\Users\Test>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /Application.Web -p D:\Application.Web -x /Application.Web/Admin after run this result is fine. But…
Aixasz
  • 338
  • 1
  • 3
  • 15
10
votes
2 answers

Why do I need VirtualPath property for AspNetCompiler task

I'm trying to write a build system for a website so that I can do a one click build. I'm getting a clean copy of the code from the source code repository and then using msbuild to run a AspNetCompiler task to do all the precompile for the…
Chris
  • 27,210
  • 6
  • 71
  • 92
9
votes
1 answer

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:…
sam
  • 4,594
  • 12
  • 61
  • 111
9
votes
2 answers

How to return all aspnet_compiler errors (not just those in first directory)

Is there a way to get the aspnet_compiler to go through all views and return all errors, rather than just the errors in the current view directory? For example, lets say I have a project that has a bunch of…
Dan Atkinson
  • 11,391
  • 14
  • 81
  • 114
9
votes
3 answers

Visual Studio 2013 calls 32 bit aspnet_compiler instead of 64 bit one

My solution contains some .net projects and one of them is a ASP.NET MVC project, which I'm trying to publish. All configurations are set correctly, x32 and x64, non of them is set to AnyCPU. Problem: If I try to publish the project as 32bit,…
VladL
  • 12,769
  • 10
  • 63
  • 83
1
2 3
10 11