Questions tagged [aspnet-compiler]
165 questions
0
votes
1 answer
Error Visual Studio Publish
When I try to publish my site that I'm logged into, on my company's server, this error message appears:
"Error 2 Could not load the file or assembly 'Newtonsoft.Json, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed' or one…
0
votes
3 answers
Compilation Error - The compiler failed with error code 1 - asp.net error after publishing
After publishing my asp.net MVC 5 website to the hosting environment, I got the following error message
Compilation Error - The compiler failed with error code 1
Nothing else besides the compiler-call itself is shown.

HCL
- 36,053
- 27
- 163
- 213
0
votes
0 answers
Simpler way to find compiler errors in cshtml files
I'm aware of the MvcBuildViews option but it doesn't with my project (one error not related to my view leads to another and after several hours and errors later I'm done with it, it just won't work for us). There has to be a simpler way to check for…

evanmcdonnal
- 46,131
- 16
- 104
- 115
0
votes
2 answers
Team Build error : ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path. Any suggestion?
I am trying to build Web Application solution built using VS 2008 and facing the following error.
ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path.
I have absolutely no clue how and why is is occurring? Is it related…

Steve Johnson
- 3,054
- 7
- 46
- 71
0
votes
1 answer
ASP.NET Web Site publish with Visual Studio 2013 in .NET 4.5.2
I migrated an asp.net web site application from Visual Studio 2010 in .NET 4.0 to Visual Studio 2013 with .NET 4.5.2.
When the website is published in Visual Studio 2013, it is not generating any application dll or compiled file in bin folder, but…

Amit
- 113
- 1
- 9
0
votes
1 answer
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) file, is outside of the context…

Øyvind Berg
- 66
- 2
- 7
0
votes
1 answer
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 machine to get up and running with Asp.NET…

Conan
- 31
- 5
0
votes
2 answers
Add the Date Filter SharePoint webpart to an ASP.Net page
How do I add the out-of-the-box SharePoint date filter webpart to an ASP.Net web page?
I want to do it either in an ASPX...
<%@ Register Assembly="" Namespace="?>" TagPrefix="DP" %>
<...>

Stephen Hosking
- 1,405
- 16
- 34
0
votes
1 answer
aspnet_compiler -fixednames does not work?
I am unable to get the -fixednames switch to create dlls for the cs code behind files. The files in the bin folder are compiled aspx pages, but the code behind files are all compiled into one large websitename.dll file.
Here is my command with…

Terrence
- 43
- 7
0
votes
1 answer
Install AppFabric throught Windows installer xml WIX
Does anyone know if AppFabric can be installed through WIX (windows installer xml)
We have an enterprise application we deploy to clients through installer using WIX (windows installer xml) and this application use AppFabric 1.1 and we need to make…

vargashj
- 33
- 6
0
votes
1 answer
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.
Calling the site on the local machine it runs at…

u07ch
- 13,324
- 5
- 42
- 48
0
votes
1 answer
How to precompile ASP.Net MVC4 website in VS 2010 during Publishing?
How do I precompile an ASP.Net MVC4 website in Visual Studio 2010 at the time of Publishing?
I didn't find any option in Visual Studio project / solution settings. I checked the Package/Publish Setting by right clicking on the project but didn't…

Kabeer
- 4,138
- 7
- 40
- 62
0
votes
1 answer
Aspnet compiler in-place compilation cannot load assemblies
I would like to do an in-place compilation of my website. When I start aspnet compiler it gives me an error:
Could not load file or assembly 'MyLibraryDll, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=2ac5f5f5484c304c' or one of its
…

Santhos
- 3,348
- 5
- 30
- 48
0
votes
2 answers
AspNetCompiler task in SharePoint project
I would like to know how to compile aspx files after build in a sharepoint solution to see the run-time errors, e.g. missing resource (when translating thep page using resources).
When I add the AspNetCompiler task into my csproj like this (only…

Santhos
- 3,348
- 5
- 30
- 48
0
votes
1 answer
Where do pages and user controls end up when you precompile but not merge?
When publishing a website you have several precompile options. For this example, let's assume it's a .ascx user control (though page behavior is similar) and "Allow precompiled site to be updatable" is not checked. These are some of the options…

Nelson Rothermel
- 9,436
- 8
- 62
- 81