aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Access to the path '<user>\AppData' is denied. #142

Closed khoait closed 6 years ago

khoait commented 7 years ago

I am using SQL Storage for my web api. I set the MS_SqlStoreConnectionString connection string in the web.config file. It's working as expected on my dev machine. But when deployed to IIS, I got this exception when register a new web hook.

Access to the path '<user>\AppData' is denied.

I tried setting write permission for NETWORK SERVICE but it didn't work.

Please help.

khoait commented 7 years ago

I got a different exception when I set write permission for IIS_IUSER:

General error during 'Insert' operation: 'The system cannot find the file specified.

Not sure what file it's trying to access during insert when I am using sql storage.

dougbu commented 6 years ago

Closing as the configuration question seems to be about IIS or SQL and is not WebHooks-related.

FYI one suggestion: Use a more-full-featured SQL server or include login information in your configured connection string.