0

I have a .NET Core application in C# that creates .pdf file and saves the file in a security shared folder. It works fine on my localhost, but when I publish my app to IIS server, I get an error "username or password incorrect" when it is the username and password as I tested on my local.

Is it because the IIS identity, and if yes - how can I solve the problem?

1

1 Answer 1

2

Your application runs on IIS under an application pool.
The application pool has an identity, which you can configure by specifying the appropriate user account.
This identity must have the necessary permissions to access and save files to the relevant shared folder.

Check out this link regarding application pool identity.

Also, you can check this locally. Run the app under IIS, configure the application pool users identity and check your feature locally.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.