Questions tagged [aspnet-compiler]

165 questions
0
votes
0 answers

Compiling an ASP.Net website using aspnet_compiler.exe fails with error: /global.asax(1): error ASPPARSE: Could not load type 'name space.class name'

Compiling an ASP.Net website using aspnet_compiler.exe fails with error: /global.asax(1): error ASPPARSE: Could not load type 'namespace.className'. I have followed all the usual recommendations to fix similar issues and it fails the same way every…
Guillermo
  • 1
  • 1
0
votes
1 answer

How to solve error "aspnet_compiler.exe" exited with code 1 when trying to publish web service in Visual Studio 2019?

I have made a change to a web service in Visual Studio 2019 and although it builds it throws an error when I try to publish. The web service is built on .Net Framework 4.5.1, and the error I'm seeing is: C:\Program Files (x86)\Microsoft Visual…
0
votes
1 answer

MSBuild not always creating .precompiled files

I'm having an issue with my Build server. I'm calling MSBuild for Building a Web Project, the process runs, it even shows ASPNETCOMPILER warnings for some views, the views are getting 'cleaned' but the .precompiled files and DLLs are not getting…
0
votes
1 answer

How to speed up aspnet_compiler.exe?

We have Asp.Net Mvc application for which aspnet_compiler.exe takes more than 5 minutes to run. The Asp.Net Mvc application is question depends on ~100 smaller projects that all contribute to it different static views, Javascript files, etc... by…
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
3 answers

How can ASP.Net Compiler exclude .svn directories in the deploy

On my local machine I have checked out a web application and then compiled it with MSBuild, and then pre-compiled and deployed it with the aspnet_compiler. The command line looks like: C:\Program Files (x86)\Microsoft Visual Studio…
davecoulter
  • 1,806
  • 13
  • 15
0
votes
0 answers

aspnet_compiler is not working in windows 2019 server but works on windows 10 pro

I am trying to use aspnet_compiler.exe to compile a webapp project. While doing that I am getting error in windows 2019 server (has .net framework 4.8.03761) but it compiles fine on windows 10 pro ( .net framework 4.8.04084). In aspx file I…
Samuel
  • 1,949
  • 4
  • 18
  • 30
0
votes
1 answer

ASP.NET Web Site (WSP) - Precompile - how to use an alternate folder

How can I instruct an ASP.net website to use an alternate precompiled folder instead of the default %windir%\Microsoft.NET\Framework\version\Temporary ASP.NET Files? I know how to use aspnet_compiler.exe and specify TargetPath but then I see that…
JosephS
  • 744
  • 5
  • 22
0
votes
1 answer

Using ASP.Net templates outside of ASP.Net?

As a brief intro, I spent the last few days writing my own template parser/compiler. It's been an interesting project (which I plan to continue) but it sparked some curiosity about how ASP.Net (ASPX, MVC 2/3, or otherwise) handles templates and…
Garrett Bluma
  • 1,312
  • 10
  • 14
0
votes
1 answer

iis 6.2 using aspnet_compiler.exe to Precompile

I am using IIS 6.2 and able to pre-complie in place an application successfully using C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe using the parameters -p "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET…
Jon Cluff
  • 109
  • 7
0
votes
1 answer

How to make aspnet_compiler compile project dependencies?

I try to compile my web project with aspnet_compiler. aspnet_compiler -f -fixednames -u -v / -p C:\test\testproj\testproj c:\test\output -c The testproj is a web site that has a dependency to a class library called MyLib. The problem is that…
Patrik
  • 241
  • 1
  • 3
  • 14
0
votes
0 answers

How do I control SDK version used to build project in ASP.NET Core project while using Visual Studio?

I created a new ASP.NET Core project using Visual Studio 15.8 Preview 5.0 and the project is .NET Core 2.1.2 based. The preview version of VS ships with a preview version of .Net Core, but I want to use a release version of the SDK to compile the…
Paul Duer
  • 1,100
  • 1
  • 13
  • 32
0
votes
1 answer

error making dll

I created ASP.NET pages using C# code when I compile the (.csproj file) code using COMPILE.BAT file it shows me compilation error with error code cs1303 [ "Label01" not found, "TextBox01" not found" so on... as all forms are unable to make dll... I…
Karthik Malla
  • 5,570
  • 12
  • 46
  • 89
0
votes
0 answers

Circular reference ASPNET

I just want to say that I'm not that familiar with aspnet first. I have been given this 6 yo application that Im trying to automate using Jenkins. (I didnt choose this life if it was for me I'd have re-written the whole thing using something not…
0
votes
1 answer

ConfigSource in ConnectionStrings - WEB.config ASP.NET

I'm doing an automated publishing using VSTS, the whole process performs publishing on multiple servers, and each has its own specific settings in WEB.config. I was deleting WEB.config before I threw the publication files into the folder so I was…
0
votes
1 answer

Orchard CMS - View Compilation?

Is it possible to perform view compilation in Orchard? Using the off-the-shelf latest dev branch, and setting MvcBuildViews to true results in all kinds of reference issues. As an alternative, I tried doing this: build Precompiled - this works…
jimasp
  • 962
  • 9
  • 26