I have an MVC project. I have created this project on my work pc. I can build and run it there. But when I copy and paste the project to my personal pc, it doesn't work anymore!
It gives 401 error. I have tried for other projects and they were running without problem. But this project gives me that error and I couldn't find a solution , I'm almost getting crazy..!
I have given all permissions to the project root folder. There is no authentication for the porject right now. config is like this;
But when I copy and paste the project to my personal pc, it doesn't work anymore!
Please check if you have installed the same IIS features in your personal pc as the work pc.
Then you can try the following steps to solve your issue.
Open IIS Manager, navigate to your website or application folder where the site is deployed to.
Open Advanced Settings (it's on the right hand Actions pane).
Note down the Application Pool name then close this window
Double click on the Authentication icon to open the authentication settings
Disable Windows Authentication
Right click on Anonymous Authentication and click Edit
Choose the Application pool identity radio button the click OK
Select the Application Pools node from IIS manager tree on left and select the Application Pool name you noted down in step 3
Right click and select Advanced Settings
Expand the Process Model settings and choose ApplicationPoolIdentityfrom the
"Built-in account" drop down list then click OK.
Click OK again to save and dismiss the Application Pool advanced settings page
Open an Administrator command line (right click on the CMD icon and select "Run As Administrator". It'll be somewhere on your start menu, probably under Accessories.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
I supposed to run the project by simply running from visual studio but it doesn't...
Do you mean that you copied the project source code and paste it into your personal pc and run the project using Visual Studio?
I thought you are using the IIS to host your application.
Please try run the Visual Studio as administrator to see if issue still occurs.
Best Regards,
Jean
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
2 Posts
HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page
May 21, 2017 03:52 PM|kubimvc|LINK
I have an MVC project. I have created this project on my work pc. I can build and run it there. But when I copy and paste the project to my personal pc, it doesn't work anymore!
It gives 401 error. I have tried for other projects and they were running without problem. But this project gives me that error and I couldn't find a solution , I'm almost getting crazy..!
I have given all permissions to the project root folder. There is no authentication for the porject right now. config is like this;
I'm stuck, waiting for your suggestions.
Contributor
6490 Points
2525 Posts
Re: HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page
May 22, 2017 06:49 AM|Jean Sun|LINK
Hi kubimvc,
Please check if you have installed the same IIS features in your personal pc as the work pc.
Then you can try the following steps to solve your issue.
Open IIS Manager, navigate to your website or application folder where the site is deployed to.
Best Regards,
Jean
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
2 Posts
Re: HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page
May 22, 2017 10:40 AM|kubimvc|LINK
It didn't work.
I dont understand.
I supposed to run the project by simply running from visual studio but it doesn't...
Contributor
6490 Points
2525 Posts
Re: HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page
May 24, 2017 08:25 AM|Jean Sun|LINK
Hi kubimvc,
Do you mean that you copied the project source code and paste it into your personal pc and run the project using Visual Studio?
I thought you are using the IIS to host your application.
Please try run the Visual Studio as administrator to see if issue still occurs.
Best Regards,
Jean
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.