Advertise with us
Control Panel
Forum
Hosting Help
ASP.NET 4.5 & SQL 2012 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
Home
»
Questions & Answers
»
Authentication problem...?
Authentication problem...?
01 May, 12
Author:
john smith
zzzoozzz@hotmail.com
I can't get my asp .net page to work! Please help. I just uploaded a very simple asp test page with only one button (
http://aspspider.info/Stargazer9000
) but it doesn't display! I get this error:
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.
Please try the following:
Contact the Web site administrator if you believe you should be able to view this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 401.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Authentication, Access Control, and About Custom Error Messages.
Answers .............
Author:
Nishanth Mohan
Posted Date: 01 May, 12
check in web.config, whether you are using windows authentication. change to none or forms
Author:
john smith
zzzoozzz@hotmail.com
Posted Date: 01 Jun, 12
My authentication is set to none (see below). But still it doesn't work? I's really like to get it working, any suggestions? thx.
My web config file contains this:
<?xml version=1.0?>
<!
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!
Set compilation debug=false to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict=true to disallow all data type conversions
where data loss can occur.
Set explicit=true to force declaration of all variables.
>
<compilation debug=true strict=false explicit=true/>
<pages>
<namespaces>
<clear/>
<add namespace=System/>
<add namespace=System.Collections/>
<add namespace=System.Collections.Specialized/>
<add namespace=System.Configuration/>
<add namespace=System.Text/>
<add namespace=System.Text.RegularExpressions/>
<add namespace=System.Web/>
<add namespace=System.Web.Caching/>
<add namespace=System.Web.SessionState/>
<add namespace=System.Web.Security/>
<add namespace=System.Web.Profile/>
<add namespace=System.Web.UI/>
<add namespace=System.Web.UI.WebControls/>
<add namespace=System.Web.UI.WebControls.WebParts/>
<add namespace=System.Web.UI.HtmlControls/>
</namespaces>
</pages>
<!
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
>
<authentication mode=None/>
<!
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode=RemoteOnly defaultRedirect=GenericErrorPage.htm>
<error statusCode=403 redirect=NoAccess.htm />
<error statusCode=404 redirect=FileNotFound.htm />
</customErrors>
>
</system.web>
</configuration>
You must
login
to post answer for this question.
Total
members
:
250680
Average new registrations per day (in last 7 days):
7
New Registration:
Open
Register Now
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.