4

I will host my site on ixwebhosting. I tested my site several time. On my local server, 'System.ComponentModel.Win32Exception (0x80004005): Access is denied' error doesn't occur. but On ixwebhosting, it occurs. I don't know why does this error occur. Definitely File is in exactly path.

Do I have to set options?? It's first time manage site on ixwebhosting.

Thank you.

Peter JU
  • 85
  • 2
  • 2
  • 6
  • Following URL would be helpful to you...... http://forums.asp.net/t/1982501.aspx?System+ComponentModel+Win32Exception+The+system+cannot+find+the+file+specified ........If not, contact your web hosting provider and make sure you have correct permission on your wwwroot folder. – AccuWebHosting.Com Jul 24 '15 at 08:11
  • Thank you for advice, I contacted. but they can't give permission to me. – Peter JU Jul 30 '15 at 21:51

4 Answers4

8

Simply remove/comment the codedom section from the Web.config, this solves the problem.

CageE
  • 419
  • 4
  • 13
5

Your application runs under admin account locally, when you deploy it to web server, it will be running under the IIS user. Hence, assigning necessary permissions to IIS user is essential to make your application running on web server. Also, make sure that Application pool identity of your application is Network service. Following threads will be helpful to you.

System.ComponentModel.Win32Exception: Access is denied..... Error

System.ComponentModel.Win32Exception: Access is denied Error

Community
  • 1
  • 1
AccuWebHosting.Com
  • 1,159
  • 1
  • 7
  • 17
1

Peter, I had a very similar problem and nothing was working for me. I fixed it by changing the .NET framework version to 4.5 instead of 4.5.2.

I wrote a short article about it which shows you how to change the framework version and includes other solutions to try that might fix the error for your. Hopefully this helps!

Brendan L
  • 1,436
  • 14
  • 13
  • Thank you for your good information. but ixweb customer serivce said that I can't use exe file because of security. – Peter JU Sep 29 '15 at 18:31
0

Just to increase answer base, I solved this by running my webApi from Visual Studio. Basically, this error comes when there's a malfunctioning api connection.