Web site is hosted on localhost on IIS 10.0 but throwing error while loading.
Asked
Active
Viewed 100 times
-2
-
Which OS are you using? If it is 32bit, you need to enable 32bit application in application pool. – INDIA IT TECH Mar 30 '16 at 11:05
-
Can you read the error and do a web search for it? – CodeCaster Mar 30 '16 at 11:05
-
@PiyushKhatri, I'm using window 10 64bit. – Kaishu Mar 30 '16 at 11:06
-
Possible duplicate of [Cannot read configuration file due to insufficient permissions](http://stackoverflow.com/questions/5615296/cannot-read-configuration-file-due-to-insufficient-permissions) – CodeCaster Mar 30 '16 at 11:06
-
Try to solve it as per given link, please let me know if you can't figure it out. – INDIA IT TECH Mar 30 '16 at 11:09
-
@PiyushKhatri, I have check security tab for web.config file but not found for IIS_IUSRS. As I found solution to allow read permission for IIS_IUSRS. How to add this for web.config? – Kaishu Mar 30 '16 at 11:15
-
@Kaishu for now try to add permission for everyone user and lets see if you can run application. – INDIA IT TECH Mar 30 '16 at 11:16
-
@PiyushKhatri, In file explorer it is allowed to all user but I don't know what to do with IIS setting?? – Kaishu Mar 30 '16 at 11:22
-
@Kaishu If you have given permission from explorer, it should work. – INDIA IT TECH Mar 30 '16 at 11:23
-
@PiyushKhatri, It was working before but suddenly make some changes to IIS and from then it is not working. I don't understand what is going wrong? – Kaishu Mar 30 '16 at 11:26
-
Can you just check whether your IIS is working fine or not? Just write http://localhost/ and check what you get? – INDIA IT TECH Mar 30 '16 at 11:31
-
@PiyushKhatri, I'm getting the same error..! – Kaishu Mar 30 '16 at 11:33
-
@Kaishu So I thought that your IIS is corrupted. Please reinstall it and check again. – INDIA IT TECH Mar 30 '16 at 11:34
-
@PiyushKhatri, but other web site hosted on IIS works fine, just problem with this one... – Kaishu Mar 30 '16 at 11:38
-
@Kaishu Ohh, you just told me before that when you browse localhost it gives you an error. So it should not gives you an error. Please try again and make sure what you get when you try to browse, localhost. – INDIA IT TECH Mar 30 '16 at 12:31
-
@PiyushKhatri, try to reset IIS still the same error! – Kaishu Mar 30 '16 at 13:14
-
Ohh... can you post your web.config here? – INDIA IT TECH Mar 30 '16 at 15:17
-
@PiyushKhatri, I have added web.config here please let me know is there any error. [web.confg](http://s000.tinyupload.com/index.php?file_id=36291887131184516633) – Kaishu Mar 31 '16 at 05:48
-
@PiyushKhatri, but it was working before, so how error could be in web.config?? – Kaishu Mar 31 '16 at 05:48
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/107809/discussion-between-kaishu-and-piyush-khatri). – Kaishu Mar 31 '16 at 05:58
1 Answers
0
Here are the steps which solved my problem:
- Created
IIS_IUSRS
and allowed access to folder containing application. - Also created
IUSR
and allowed access to folder containing application. - Restart
IIS
.

Kaishu
- 377
- 1
- 7
- 21