Change .NET Web Temp folder of the NFA Website from Windows\Microsoft.NET\Framework\v4.30319\Temporary ASP.NET Files to another directory

book

Article ID: 5820

calendar_today

Updated On:

Products

CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

The NFA Console machines "RA" website creates .NET temp files under the directory:

c:\Windows\Microsoft.NET\Framework\v4.30319\Temporary ASP.NET Files

How can these temp files be moved to another location?

 

 

Environment

NFA Console 9.x on Windows

Resolution

Please go to the following directory and back up the web.config file: 

\CA\NFA\REPORTER\NetQoS.ReporterAnalyzer.WebSite 

After making a backup copy of this file, open it up in Notepad and look for a line like this: 
<compilation defaultLanguage="c#" debug="true" targetFramework="4.5"/> 



Edit that line to add a "tempdirectory" parameter to set the new location for the temp files. For example, to set it to c:\temp you can use the following format:

<compilation defaultLanguage="c#" debug="true" targetFramework="4.5" tempDirectory="c:\temp" /> 

 

 

 

Additional Information

https://msdn.microsoft.com/en-us/library/system.web.configuration.compilationsection.tempdirectory.aspx