how to publish web service in v.s 2012 on local machine - asp.net

1- I've publish web service in v.s.2012 and automatically creates the .zip file.
2- but in IIS , after clicking 'browse' option the i got "HTTP Error 401.3 - Unauthorized. You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server."

Make sure the IUSR account has enough permission on the wwwroot folder. It is the default user for anonymous authentication. (Rightclick on wwwroot -> properties -> security -> select IUSR)
EDIT:
Also found this post with the same Problem, also explaining the above posible solution and others, maybe this helps:
ASP pages in IIS using Localhost 401.3 Error do not have permission

Related

Unauthorized error on control F5

I have hosted single html page in IIS. When I open it using url (http:myipaddress/test.html) it works fine but when I press Ctrl + F5 it gives me error.
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of
the access control list (ACL) configuration or encryption settings for
this resource on the Web server.
also it doesn't open in other PCs in domain server. I have given read/write permission to few users in network and added IIS_IUSRS user as well.
My issue was around the identity used in the app pool. I changed the site's Authentication to "Application pool identity" as well as giving the directory the appropriate permissions.
Copied from here

Cannot get Orchard CMS site to load on Network Solutions Windows Hosting

I get the following .NET error when trying to load my Orchard CMS website:
Access to the path '\\.........\www\App_Data\Dependencies\Lucene.dll' is denied.
Exception Details: System.UnauthorizedAccessException: Access to the path '\\WDP\DFS\30\7\4\5\3024678547\user\sites\5481517.site\www\App_Data\Dependencies\Lucene.dll' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
How do I actually go about granting access rights? I've googled and found I should go into the server and right-click on the directory and edit the properties. BUT, I am in a shared hosting plan and don't think I can do that.
Am I pretty much at a dead end?
Things I've tried:
Setting file permissions through FTP, but I get a:
500 'SITE CHMOD 777...command not understood
I've downloaded and installed IIS Manager and successfully connected to my site, but still did not find any options to set permissions in there.
I've also called Network Solutions, but all I was told was to try to do the file permissions settings (as I mentioned above).
Thanks in advance.

CSS not referring after hosting in iis

I m using vs2010 and iis 7
i hosted my web app in iis 7
like http://localhost/TestUI/login.aspx
But the css file not referring..!
I opened the developer options and tried to see the css file
like http://localhost/TestUI/css/style1.css
It throwing error like
401.3 - unathorized - You do not have permission to view this directory or page because of the access control list (ACL)
configuration or encryption settings for this resource on the Web
server.
I have tried many ways to solve it..
Gave access to IUSR to wwwroot folder in properties -> security
Changed Anonymous Authentication to Application pool identity
Used (~) in the css url in aspx page
But don't know how to solve it ! what to do !!
As per MSDN
This problem occurs when permissions for the file that the user is trying to access are denied to that user. This error message differs from a standard 401 error message, in that, the user has been logged on to the server, but the resource that the user is trying to access is restricted. For example, if only Administrators and LocalSystem have access to a file on the server and a user, who is a member of the Users group, tries to access it, the user receives a 401.3 (provided they can log on to the server).
The resolution states to check the NTFS permission on that file. Make sure users can access the same.
I found a thread that could help you with the solving the same. As per the thread,
IIS 7 also creates "IUSR" as default user to access files via IIS. So make user IUSR has read access to files/folders.
How to check if IUSR has read Access? Right Click -> Folder -> Properties -> Security Tab See if IUSR is in Group or user names list, If No.
Click Edit -> Add -> Advanced -> Find Now -> Select IUSR and click OK four times

HTTP Error 500.19 - Internal Server Error while attempt to browse web application

On my attempt to access my site from IIS, i am getting following error.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module: IIS Web Core
Notification: Unknown
Handler: Not yet determinedError Code
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Logon Method:Not yet determined
Logon User:Not yet determined
I am not sure what to do. I have already given full control to mycomputerName\ISS_IUSRS for applicationHost file in C:\Windows\System32\inetsrv\config. Also, I have given full control to mycomputerName\ISS_IUSRS for applicationHost file to my solution folder and web.config file. However, when I click on my application from IIS and attempt to browse it by clicking on manage Application\browse, I am still getting this error.
If anyone could help me, that would greatly be appreciated,
Thanks
This problem mostly occurs when the IIS application don't have the permission to the read the application configuration files. IIS application uses the IIS_IUSRS user to read the Web application.
The IIS_IUSRS user will have default read and execute access for the folder C:\inetpub\wwwroot\ once when you install the IIS. Kindly copy your Web Application folder to the above mentioned directory and give the read access or full control(if the IIS_IUSRS don't have the read and execute permission) for the IIS_IUSRS to your application folder.

IIS - adding a website : HTTP Error 401.3 - Unauthorized access

I have added a website on my IIS manager and assigned the port 90 to it in the Binding section. When I try to access it on a browser, I get the following error
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
I have added a new user IIS_IUSRS to the web.config file, the folder containing the files as well as the the site on the IIS manager and given it all permissions.
However, this error does not go away.
Any suggestions?
Give access to network service account on your app folder

Resources