Access is denied in asp.net - asp.net

when i login through any account and click on fiancne documents then it show me this error
Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve
this request. The server may not be configured for access to the requested
URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration.
Verify that you have permission to view this directory or page
based on the credentials you supplied and the authentication methods
enabled on the Web server. Contact the Web server's administrator for additional
assistance.
Version Information: Microsoft .NET Framework Version:2.0.50727.4984; ASP.NET
Version:2.0.50727.4971

Sounds like your documents are in a protected folder that can't be served up to the user that you are using, or possibly to any users. Check the security on the folder where your finance documents are stored.
If you aren't on the development team, then I would suggest contacting your website administrator to have them co-ordinate to determine what the issue is.

Related

ASP.net Web Application uploaded to the hostgator through ftp does not allow to view them. It throws 403 error

I was able to successfully upload my ASP.net web application to hostgator server through FTP. But I cannot access it by URL. It throws 403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
I checked the permissions. Permissions are given to ALL.
Is there any other setting I need to be checked on... ?
If you receive forbidden error message, it means that you haven't setup your own default page correctly. Please refer to this post https://windowswebhostingreview.com/troubleshoot-403-error-when-publishing-asp-net-core/

Publish profile error

When I download publish profile, there is an error. In azure, app service.
Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. This may have been caused by an incorrect user name and/or password.
Error message 401.1: Logon credentials were not recognized. Make sure you are providing the correct user name and password. Otherwise, contact the Web server's administrator for help.

Permissions necessary to web deploy to IIS site

What permissions are necessary for a user to use web deploy to IIS running on a different server?
When I try to deploy from VS 2010 using that users credentials, I get the below error.
Error 36 Web deployment task failed.(Remote agent (URL https://server:8172/msdeploy.axd?site=site.name.com) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)
Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator.
Error details:
Remote agent (URL https://server:8172/msdeploy.axd?site=site.name.com) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
The remote server returned an error: (401) Unauthorized. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets
I am able to use web deploy when I use my domain account (e.g. domain\user) with the following publish arguments.
My domain account is an administrator on the destination server, but granting the service account full admin privileges is not an option.
The user must have the following permissions.
Read/Write permissions on the site folder directory
WDeployConfigWriter and WDeployAdmin must be configured to have their password never expire and user cannot change password like the below screenshot
The account that runs the build should be enabled under IIS Manager Users
The account that the build runs under must have permissions to the site under IIS Manager Permissions
Configure Management Service
Configure Management Service Delegation like the below
Useful reference
Web Deploy 3.0 infuriating 401 error on publish
The user that the account runs under should be a Power User and must have full control permissions to the folder that the destination iis site is running from.

Error message 401.2: Unauthorized: Logon failed due to server configuration

i'm trying to deploy my asp.net web app into company server but i don't know which type of permission choose as the image follow.
My web.config authentication section is set to "None"
What i have to do to view my website ?
Thanks

"Access is Denied" accessing a subpage in ASP.net (hosting with IIS)

I'm getting the current error when trying to go to any page other than the index:
Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
There is no login system for my site. Only one small database.
Does anybody have any ideas?
Thanks if you can!
If you can hit the root page but not the others I'd be concerned about NTFS permissions. Check out the tip for the anon user as p.campbell is suggesting. I THINK you'll find that you're ok for anonymous at the IIS level, but you probably only granted appropriate file permissions to your "index" page and need to propagate those permissions to the rest of the files/directories in question.
Edit: Here's a link that goes through some basics for NTFS permissions. It boils down to your worker identity needing read access at least. By default, that identity is either ASPNET or NETWORK SERVICE, depending on OS. YOu can configure your application pool to be something else if you want though:
http://support.microsoft.com/kb/815153
Does your host and its control panel support the enabling/disabling of Anonymous access?
It sounds as if 'Anonymous' is disabled.
http://forums.iis.net/t/1152085.aspx

Resources