I'm working in a legacy project that still using flash as front end.
But the backend is in c# .net 3.5.
I've created a new functionality that needs a file of the application, to do this I've used:
Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)
But it's showing that error:
'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\sirius2\af2e88a7\10f74a24\assembly\dl3\872c826f\89d0f861_6ef5d001\Images' is denied
The project use IIS and the right path, the path where we can find the folder Images is in the directory mapped in IIS.
Is there a way to obtain that path?