Questions tagged [aspnet-compiler]

165 questions
8
votes
4 answers

How can I use the latest VB.NET language level in an ASP.NET web site project?

I've been tasked with modernising a web application developed in 2009. It is written in VB.NET and using ASP.NET WebForms. I would like to use the latest language constructs in VB.NET. I get helpful pointers saying "Visual Basic 10.0 does not…
8
votes
6 answers

Is there any relation between compilation debug="true" and in publish mode "release"

Do I need to set the debug='false' Even if Publish my code in Release Mode. Edit 1 As mentioned in the MSDN Compilation Overview It is done in two Phase In first phase it compile the code into…
शेखर
  • 17,412
  • 13
  • 61
  • 117
7
votes
3 answers

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…
grobartn
  • 3,510
  • 11
  • 40
  • 52
7
votes
0 answers

What does Aspnet_compiler.exe do?

I'm trying to pre-compile views for our MVC5.1 application to improve first load performance (see this question for more context). I'm playing with aspnet_compiler.exe: aspnet_compiler -p d:/path/to/myapp/ -v myapp I can definately see the…
trailmax
  • 34,305
  • 22
  • 140
  • 234
7
votes
1 answer

aspnet_compiler Failed to map the path '/'

.NET 4.5.2, IIS 8.5 on Windows 8.1 x64. I have a single ASP.NET web site at /localhost/. The DEFAULT website is disabled, a new site with was created with the right bindings. I am trying to pre-compile it in…
n8wrl
  • 19,439
  • 4
  • 63
  • 103
7
votes
7 answers

Pre-Compile During Build returns Error ASPNETCOMPILER(0,0): Error ASPRUNTIME: startIndex cannot be larger than length of string

This question is similar, but I think not the same msbuild ASPNETCOMPILER ASPNETRUNTIME startIndex error I have a Web Application which I am trying to publish using Visual Web Developer 2010 Express. If I publish, locally, or to production server,…
7
votes
1 answer

msbuild ASPNETCOMPILER ASPNETRUNTIME startIndex error

I have a web project that builds fine on Windows 7 with no error. When I upgraded to Windows 8, compiling the project into a compiled website throws an error. Compiling from the csproj file (not creating a website) works fine. This is the actual…
6
votes
1 answer

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:
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
6
votes
6 answers

Precompilation and startup times on ASP.Net

I am developping a (relatively small) website in ASP.Net 2.0. I am also using nAnt to perform some easy tweaking on my project before delivering executables. In its current state, the website is "precompiled" using aspnet_compiler.exe -nologo -v…
Luk
  • 5,371
  • 4
  • 40
  • 55
6
votes
2 answers

System.Linq namespace missing even with reference to System.Core.Dll

When I open up a Asp Net web site of mine in Visual Studio 2010 the properties say "Target Framework 3.5", however when I try to using the Linq namespace the compiler complains about it. "The type or namespace name 'var' could not be found (are you…
joeriks
  • 3,382
  • 8
  • 32
  • 42
6
votes
1 answer

CodeDom provider can't be located after another application deployed

I had two web applications deployed in a site under IIS 7.5 site.com/myApp site.com/anotherMyApp Now another devs deployed their app as root application site.com/ Now when I access site.com/myApp or /anotherMyApp it throws: The CodeDom…
evictednoise
  • 587
  • 1
  • 7
  • 19
6
votes
2 answers

System.Web.Mvc 5.2.2.0 vs. 5.2.3.0 versioning issue with aspnet_compiler

I have problems when turning on compilation of views in Visual Studio. I have a fairly standard ASP.NET MVC 5 application, with a lot of references. I reference System.Web.Mvc 5.2.3.0 (latest as of now), but the compilation seems to have problems…
6
votes
2 answers

Configure Visual Studio 2013 to allow ASPNETCOMPILER to precompile using the x64 compiler

How can I use the "Precompile during publishing" flag on a VS2013 x64 project? No matter what I do, it fails to publish because it insists on using the x86 ASPNETCOMPILER. I think I used to have this working in VS2012, but after upgrading to VS2013…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
5
votes
3 answers

Web Application build error with net6.0 framework, is already signed (NETSDK1177)

I am working on MAC and dotnet core 3.1, 5.0 and 6.0 versions are installed on my machine. I not able to build Web Application on my machine due to shared error in this ticket. I can build web application in target framework net5.0 but not with…
5
votes
0 answers

IIS still runs csc.exe after aspnet_compiler has been used to compile application

I've been trying to use aspnet_compiler to pre-compile my asp.net site in order to avoid or minimize running csc.exe after an application pool recycle. However after running the compiler recycling the app pool still causes a tonne of csc.exe…
M4sterShake
  • 140
  • 7
1
2
3
10 11