164 questions
1
vote
0
answers
112
views
How to programmatically publish asp.net web app using aspnet_compiler.exe
I am learning how to automate the solution building, publishing, and deploying of ASP.NET websites. I am only using C# to execute cmd commands programatically, and I'm currently stuck with the publish ...
1
vote
2
answers
2k
views
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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
0
answers
171
views
How to debug "error ASPCONFIG: The path is too long after being fully qualified. "?
I've got a project that contains a script that runs as part of the build process. In this script there is an AspNetCompiler task that doesn't cause any issues when I run the script locally. The task ...
2
votes
1
answer
3k
views
Can Azure DevOps Pipelines build an ASP.NET Web Site?
I have an older codebase that uses an ASP.NET Web Site (not an ASP.NET Web App) and am trying to construct a Pipeline for it on Azure DevOps.
After running into some difficulty when the process ...
0
votes
1
answer
445
views
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....
2
votes
0
answers
7k
views
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) - Visual Studio 2017
I have ordinary ASP.NET project with .NET Framework 4.5.2, It work great as Web Site Projects (WSP), but I try to change this project to Web Application Projects (WAP). I don't change anything in body ...
1
vote
1
answer
1k
views
MSB4062: The Microsoft.Build.Tasks.AspNetCompiler task could not be loaded from the assembly Microsoft.Build.Tasks.Core
I have AspNet.MVC application and want to build MVC views during the build (only in Release configuration).
I create this target
<Target Name="BuildViews" Condition="'$(configuration)'=='...
0
votes
1
answer
205
views
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....
1
vote
1
answer
2k
views
/global.asax(1): error ASPPARSE: Could not load type
I have a .Net solution with a MVC website and an API project in it. The web project has <MvcBuildViews>true</MvcBuildViews>
and also
<Target Name="MvcBuildViews" AfterTargets="...
19
votes
1
answer
642
views
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, ...
8
votes
4
answers
6k
views
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 ...
0
votes
1
answer
548
views
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 ...
1
vote
0
answers
717
views
aspnet_compiler Unknown server tag 'sc:sublayout'
I have no error or warnings when i build my visual studio 2012 solution file.
However, when i tried using aspnet_compiler, I got lots of errors such as" Error ASPPARSE: Unknown server tag 'sc:...
-1
votes
1
answer
136
views
Aspnet Core Action request fails but everything works
Why does the request fail even if everything works correctly?
public async Task<IActionResult> DeleteUser(String Cod)
{
var User = await _context.AwsmAppusers.AsNoTracking()....
11
votes
1
answer
2k
views
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 /...
6
votes
1
answer
11k
views
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/...
1
vote
1
answer
3k
views
Could not load file or assembly when build using ASP .Net compiler and custom build project
I have complex solution with a lot of MVC web application projects which have to be built in a specific way. That's why I use custom build project and msbuild utility to build the solution on my local ...
6
votes
2
answers
7k
views
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 ...
1
vote
0
answers
38
views
Accessing Javascript globals from aspx page to another
Here's the underlying folder structure:
| ...
| Top.aspx
| ...
|
\---Include
...
ClientScriptGlobals.aspx
...
\---Config
...
Project.config
...
...
0
votes
1
answer
3k
views
User Controls (asp.net, ascx-files) inside a C# class library, build error (aspnet_compiler.exe)
Having trouble "passing" this error from ASPNET_Compiler.exe:
error CS0103: The name 'TestMath' does not exist in the current context.
The function called within TestMath from a user control (.cs) ...
0
votes
1
answer
1k
views
aspnet_compiler [sitename] is not a valid iis application
I'm having some difficulty getting the aspnet_compiler tool to compile my test site. A few years back I had used the tool on another machine without a lot of difficulty but I'm trying to setup a new ...
5
votes
0
answers
2k
views
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 ...
3
votes
3
answers
4k
views
Can't find the valid AspnetCompilerPath
I have a web application that's failing to publish, from the command line.
It's a VS2013 web application project, with a publish profile defined:
Publish method: File System
Configuration: Release
...
0
votes
1
answer
130
views
What to put in -v using Aspnet_Compiler
I have an in-place website in .NET running on Windows Server 2012. I would like to try pre-compiling it to speed up the first page response. The site is running on a second virtual website in IIS.
...