Questions tagged [temporary-asp.net-files]
10 questions
9
votes
10 answers
IIS 6.0 and ASP.NET - Could not write to output file ... The directory name is invalid
I'm running IIS 6.0 on Windows 2003 and started getting this error:
Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET…

Daniel Schaffer
- 56,753
- 31
- 116
- 165
7
votes
2 answers
How to determine the \Temporary ASP.NET Files\root\{site hash} with PowerShell?
ASP.NET makes use of a temporary files directory to store files for Shadow Copying and Dynamic Compilation. A typical path will look like this. Note the hash on the end of the path.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET…

Daniel Little
- 16,975
- 12
- 69
- 93
5
votes
2 answers
Compiler error CS0433 - The type exists in both GAC and Temporary ASP.NET files
I have a situation where I get a runtime error when running ASP.NET MVC4. I recently migrated to MVC4 from MVC3.
Upon starting the debugger, I instantly get faced with this error message:
The type 'System.Web.Mvc.WebViewPage' exists in both
…

Jim Aho
- 9,932
- 15
- 56
- 87
2
votes
1 answer
Creating a text file on the fly and have it download/save on client side
In our ASP.NET Core 1.1, EF Core 1.1 app we have populated a string with some data from SQL Server and would like to have a text file created out of it on the fly and have a user save/download from the client side.
In old days we used to do it as…

nam
- 21,967
- 37
- 158
- 332
2
votes
3 answers
Compile asp.net web site and certain references are not being copied to Temporary ASP.NET Files Folder
Scenerio: I have an asp.net website that I am compiling successfully but keep getting an error in the browser saying that it can not find a referenced dll in the solution. I checked the directory in the Temporary ASP.NET File location and all of my…

TampaRich
- 793
- 2
- 9
- 22
1
vote
1 answer
mvc 5 read and display text file content
I am trying to read a text file and display it on plage. This is what I did. But I am getting error
The process cannot access the file
'D:\wwwroot\TestProject\Logs\TestLog.log' because it is being used by
another process.
Controller Code
…

ary
- 939
- 2
- 13
- 32
0
votes
0 answers
Stop recompiling usercontrols without code behind
I have a CMS created in asp.net FrameWork 4.72. hosted on an IIS 8.5
The content is rendered by loading Usercontrols without Codebehind(example below) so I without updating bin files can make changes to content
My Issue is that when I make a change…

user2435866
- 51
- 9
0
votes
0 answers
How to do FileUpload in ASP.NET Core 6 and return file Url
I am going to save image local file and return image url:
namespace img_cleaner.Controllers;
public class HomeController : Controller
{
private readonly ILogger _logger;
public HomeController(ILogger…

Shoxrux
- 1
- 4
0
votes
0 answers
file upload work localhost but doesn't work on server in asp.net core
I can add localde when uploading files. But when I try it on the server, I get a 404 not found error.
Normally, when redirecting url in my project, I do it as "url:" @ ViewBag.UrlPath / api / AddDocument / GetTechDocCode / ",".
While uploading the…

jiyanyasli
- 53
- 5
0
votes
1 answer
Why is IIS7 Loading Wrong WCF Service Assembly for Endpoint?
I am attempting to host two versions of the same WCF service on the same server. The two service assemblies in question have the same version number, and differ only in content. However, they are located at two different physical locations pointed…

Daniel Arant
- 483
- 1
- 4
- 16