question

GaniTPT avatar image
0 Votes"
GaniTPT asked SamWu-MSFT edited

How to use service account inside the aspx file instead of web.config

I am maintaining asp.net application.

Inside the application, i have employee page with hyperlink.

When end user click the hyperlink, the corresponding file get open and download from the file server path.

I am using the service account to access the file from the file path (file server path).

Here, i don't want to use the service account in web.config file. because, if i use the service account in web.config file then the end user can access all other pre-folder.

To avoid this, Is it possible to use service account inside the aspx page....?

windows-server-iis
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can any one update the thread..?

0 Votes 0 ·

@GaniTPT This seems to be an asp.net issue, not an iis issue, about how to use service account you can refer to this link: How To: Create a Service Account for an ASP.NET 2.0 Application.


0 Votes 0 ·

0 Answers