Hi All,
I want to download a file from server machine which have a static ip address to on my local machine.
so how i download the file on my local machine..How i pass a that server machine path which having a file on my local machine in code?
for eg
File at server : ***.***.***.***\C:\inetpub\wwwroot\Test.pdf
so how that path i pass on my coding to download that file
RAHUL PATILPosted Jun 29, 2016, 9:58 AM
Server Error in '/Trust_Mediclaim' Application.
Access to the path 'c:\Payment.xlsx' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.UnauthorizedAccessException: Access to the path 'c:\Payment.xlsx' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 79: catch (Exception info) Line 80: { Line 81: throw info; Line 82: } Line 83: finallySource File: e:\Azure\Trust_Mediclaim\FollowUp.aspx.cs Line: 81
Akshay PhadkePosted Jun 29, 2016, 6:22 AM