Server error in application access is denied

Server Error in '/' Application. Access is denied.

You watching: Server error in application access is denied

Sep 15, 2008 03:57 AM|extinct_pirate|LINK
hi males, i have this task in school and also it should be uploaded on a web organize website.

currently, i have my website uploaded in a web host website.

im making use of classiccomputers.infoNETDB database for the login and put the important connection strings.

but i obtained this sort of error message:

Server Error in "/" Application.

Access is denied.

Description:
An error developed while accessing the resources required to serve this request. The server may not be configured for accessibility to the requested URL.

Error message 401.2.:Unauthorized: Logon failed because of server configuration. Verify that you have actually permission to check out this directory or web page based upon the credentials you gave and the authentication methods permitted on the Web server. Contact the Net server"s administrator for added assistance.

i think there"s a problem through my internet.config,

because i uploaded it on 2 various internet organize site.

and also they are both display this error message after i logon to them.

im hoping for your replies as shortly as possible,thanks


don't simply accept influenceshttp://thedailyarr.tkhttp://www.ftpx.com/index.html
*
rtpHarry

All-Star


39486 Points

8916 Posts


Re: Access Denied after login

Sep 15, 2008 04:16 AM|rtpHarry|LINK
Its not something to carry out via you not having actually a default.classiccomputers.infox file is it?

A lot of servers dont allow directory listings but the cassini server will certainly.


*
extinct_pira...

Member


15 Points

239 Posts


Re: Access Denied after login

Sep 15, 2008 04:23 AM|extinct_pirate|LINK
i carry out have a Default.classiccomputers.infox file.

the error reflects after doing the login.


don't just accept influenceshttp://thedailyarr.tkhttp://www.ftpx.com/index.html
*
Wencui Qian...

All-Star


46442 Points

5765 Posts


Re: Server Error in '/' Application. Access is denied.

Sep 18, 2008 04:05 AM|Wencui Qian - MSFT|LINK
Hi extinct_piprice,

Error message 401.2.: Unauthorized: Logon failed as a result of server configuration. Verify that you have actually permission to watch this magazine or page based upon the credentials you offered and also the authentication methods allowed on the Web server. Contact the Net server"s administrator for extra assistance.

Based on the error message, it might be brought about by the authentication. But we couldn"t number out the specific trouble from the existing case. Please take a look at this write-up first:

http://support.microsoft.com/kb/253667

If this post can"t assist you fix the trouble, please administer us more information about web.config content. Also, you should carry out us both the web page and also source code onwhich pagethe exceptionis thrvery own.

Thanks.


Please note the replies as answers if they assist or unmark if not.If you have any kind of feedago about my replies, please call msdnmg
microsoft.comMicrosoft One Code Framejob-related
*
extinct_pira...

Member


15 Points

239 Posts


Re: Server Error in '/' Application. Access is denied.

Sep 18, 2008 06:48 AM|extinct_pirate|LINK

Wencui Qian - MSFT

Hi extinct_pirate,

Error message 401.2.: Unauthorized: Logon failed as a result of server configuration. Verify that you have actually permission to view this catalog or web page based on the credentials you offered and the authentication techniques allowed on the Internet server. Contact the Net server"s administrator for extra assistance.

Based on the error message, it might be resulted in by the authentication. But we couldn"t figure out the exact problem from the current situation. Please take a look at this post first:

http://support.microsoft.com/kb/253667

If this write-up can"t aid you deal with the difficulty, please carry out us more information around web.config content. Also, you have to administer us both the page and also source code onwhich pagethe exceptionis thrvery own.

Thanks.

hi, many thanks for your pointer.

but in my situation its a webwebsite uploaded on a organize site.

i likewise tried your pointer making use of the IIS and also made my webwebsite as the Default Net Site,

however i must make the uploaded web site accessible cause it a institution task to be passed on college.


don't simply accept influenceshttp://thedailyarr.tkhttp://www.ftpx.com/index.html
*
Matt3.5

Member


Have you checked that the sql server instance is actually offering permission for the application to access it? Usually, the database circumstances will need that netjob-related service t authority be provided permission to accessibility the database. You may likewise have to define what kind of perobjectives to execute the network company user has actually on the database.

If tright here was a syntaxation error in internet.config you would view this in theyellow display of death, make certain debug is collection to true for testing purposes. Ifyour link string was wrong you would certainly most likely have some cluefor this in theerror message. For example if the db name waswrong,youwould certainly have "could not open for user netjob-related service etc", so it seems like a permissions concern to me either at the database or IIS.


*
Wencui Qian...

See more: Windows 10 Upgrade Failed To Validate Product Key

All-Star


Hi extinct_pirate,

i think there"s a trouble with my internet.config,

bereason i uploaded it on 2 various web hold website.

and also they are both display screen this error message after i logon to them.

im hoping for your replies as shortly as feasible,thanks

Based on the present situation, I require you to confirm somepoint. Can you accessibility the login page? Did it redirect to the Default web page after you logon? If yes, can you display us both the web page and resource code of Default page?

Furthermore, please tell me anything you take into consideration important.

Thanks.


*
extinct_pira...

Member


Wencui Qian - MSFT

Based on the present instance, I require you to confirm something. Can you access the login page? Did it redirect to the Default page after you logon? If yes, might you display us both the page and also source code of Default page?

Furthermore, please tell me anything you think about necessary.

Thanks.

hi Wencui Qian,

my login web page is on my Default page so i deserve to accessibility it. my login directs a user depending on his/her role.

you have the right to check out my default page on http://yponline.qsh.es or on http://classiccomputers.infospider.info/projecty/

the code-behind code:

Dim Login1 As Login = LoginView1.FindControl("Login1") If Membership.ValidateUser(Login1.UserName, Login1.Password) Then e.Authenticated = True If Roles.IsUserInRole(Login1.UserName, "administrator") Then Login1.DestinationPageUrl = "secure_admin/AdminMain.classiccomputers.infox" ElseIf Roles.IsUserInRole(Login1.UserName, "staff") Then Login1.DestinationPageUrl = "secure_staff/StaffKey.classiccomputers.infox" ElseIf Roles.IsUserInRole(Login1.UserName, "customerAdmin") Then Login1.DestinationPageUrl = "secure_customer/CustomerMain.classiccomputers.infox" ElseIf Roles.IsUserInRole(Login1.UserName, "customerUser") Then Login1.DestinationPageUrl = "secure_customer/CustomerKey.classiccomputers.infox" Else e.Authenticated = False End If Else e.Authenticated = False End Iftry logging in on http://classiccomputers.infospider.info/projecty/ utilizing "mcdo" as the username and "bigmac!" as the password and also you will gain the "Access denied." error.

*
Wencui Qian...All-Star


*
extinct_pira...

Member


Wencui Qian - MSFT

Hi extinct_piprice,

After testing, I guess the trouble is led to by the perobjectives. Could you display us the web.config in the root and also the one in secure_customer folderif has actually.

Thanks.

======================================================================================

root internet.config:

======================================================================================

======================================================================================

secure_customer web.config:

======================================================================================

configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> mechanism.web> authorization> permit roles="customerAdmin" /> permit roles="customerUser" /> deny users="?" /> deny roles="administrator" /> deny roles="staff" /> authorization> system.web>configuration>
looking at the url being redirect after login ..I was simply wondering if it hregarding execute with your roles...although it looks it is gaining functions information properly on login web page ..however still

To run a quick test can you give permission to the user -"mcdo" in Secure_customer web.config like: enable users="mcdo" />

if this allows then yes...it hregarding do somepoint with roles...

another question..it appears you are utilizing siteMap as well...although not sure if that have the right to create a trouble...however inspect if tbelow is any type of conflicting permission in your sitemap file..


guru_sarkar

looking at the url being redirect after login ..I was just wondering if it has to do with your roles...although it looks it is gaining functions details correctly on login web page ..yet still

To run a quick test deserve to you provide permission to the user -"mcdo" in Secure_customer web.config like: enable users="mcdo" />

if this enables then yes...it hregarding execute somepoint through duties...

one more question..it appears you are making use of siteMap also...although not certain if that deserve to create a problem...yet check if there is any conflicting permission in your sitemap file..

Hi guru_sarkar, i tried your tip.

and also it worked!

you were appropriate.

currently i know the trouble is,its the siteMap!

give thanks to you so much!

but deserve to i ask a question again?

there"s no problem in reflecting the siteMap however i should watch only the links i must see,

e.g if your a customer, you shouldn"t watch a register attach.

according to Scott"s CustomerLoginPortal Tutorial, which is available right here in classiccomputers.info.net classiccomputers.info, you include this code inside your siteMap code:

securityTrimmingEnabled="true"

i made sure it is had in my siteMap code in the internet.config

but still i deserve to check out the register web page even if im a customer.

any aid will be appreciated.

anymeans thanks again!


guru_sarkar

looking at the url being redirect after login ..I was simply wondering if it hregarding do through your functions...although it looks it is getting duties information effectively on login page ..but still

To run a quick test deserve to you provide permission to the user -"mcdo" in Secure_customer web.config like: enable users="mcdo" />

if this allows then yes...it has to perform something via duties...

one more question..it appears you are using siteMap as well...although not certain if that have the right to create a trouble...however check if tright here is any type of conflicting permission in your sitemap file..

hi guru_sarkar, i tried your tip,

and also it worked! give thanks to you exceptionally much!

you were right!

in classiccomputers.infospider organize website i forobtained to include the siteMap code

and it worked! in quantasoft, i will certainly try later on, reason this time its uneasily accessible.

can ask a question again?

as i shelp, the login is now working,about the sitemap,

when ur a customer, u must not check out the register attach, for example.

See more: Any Installer That Uses Windows Installer Preparing To Remove

but i still watch it also if the securityTrimmingEnabled is set to true,

according to Scott"s Customer Login Portal Tutorial, which is accessible in this classiccomputers.info, its the code that hides/mirrors what a user have to view.