472,145 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

permission denied

I have a v1.1 web app that works on my local computer. However, running it
at the host computer, the following breaks:

when a viewer selects a different country, the State dropdown should
repopulate with the new country's state/proviences.

Running on the host, the dropdown does not repopulate and says 'Permission
Denied', I take this to mean that at the host, a viewer does not have
permission to put new items in the State dropdown.

how do I provide a viewer with the necessary permission?

Thank you
Jun 27 '08 #1
4 2555
Are you sure that it's not a database permission issue?
First - is there any database access when the page first loads?
Second, if not, does the selection of the country, then query the database?
If not - what are you using to populate the states dropdownlist?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"xzzy" <mr********@comcast.netwrote in message
news:-O******************************@comcast.com...
>I have a v1.1 web app that works on my local computer. However, running it
at the host computer, the following breaks:

when a viewer selects a different country, the State dropdown should
repopulate with the new country's state/proviences.

Running on the host, the dropdown does not repopulate and says 'Permission
Denied', I take this to mean that at the host, a viewer does not have
permission to put new items in the State dropdown.

how do I provide a viewer with the necessary permission?

Thank you

Jun 27 '08 #2

here is the code I converted to csharp. it runs fine on this local computer,
permission denied running at the host.
http://www.MyReader.net/rbr/ajax_Asy...OfPageInfo.zip
Are you sure that it's not a database permission issue?
yes
First - is there any database access when the page first loads?
only when the page is rendered for the first time = no problems
Second, if not, does the selection of the country, then query the
database?
yes, again, okay locally, remotely = it's the only part of the app that
doesn't work

<< the following is from my reply to the "RE: Cascading DropDownList" post
in this NG >>

it's in vb.net, you can solve the problem with csharp code not properly
handling quotes by running the page webform2.aspx similar to:

<%@ Page Language="vb" %>
<script language="VB" runat="server">

Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
.......

and let vb.net do it's thing with quotes.

I currently have a permission problem ( the new 'permission denied' post in
this ng ) when running the code on the host ( everything works just fine
running the web app locally )

to see what I am talking about,
- go to www.MyReader.net
- select Create Account
- when changing the country, the contents of the State dropdown should
repopulate but does not because persmission is denied

John Bickmore
www.MyReader.net

"David Wier" <dw@dw.comwrote in message
news:uc**************@TK2MSFTNGP05.phx.gbl...
Are you sure that it's not a database permission issue?
First - is there any database access when the page first loads?
Second, if not, does the selection of the country, then query the
database?
If not - what are you using to populate the states dropdownlist?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
no bloated markup
"xzzy" <mr********@comcast.netwrote in message
news:-O******************************@comcast.com...
>>I have a v1.1 web app that works on my local computer. However, running
it at the host computer, the following breaks:

when a viewer selects a different country, the State dropdown should
repopulate with the new country's state/proviences.

Running on the host, the dropdown does not repopulate and says
'Permission Denied', I take this to mean that at the host, a viewer does
not have permission to put new items in the State dropdown.

how do I provide a viewer with the necessary permission?

Thank you


Jun 27 '08 #3
"xzzy" <mr********@comcast.netwrote in message
news:58******************************@comcast.com. ..
to see what I am talking about,
- go to www.MyReader.net
- select Create Account
- when changing the country, the contents of the State dropdown should
repopulate but does not because persmission is denied


1) You need to fix all the validation errors before you do anything else:
http://validator.w3.org/check?verbos...untCreate.aspx

2) You have a mixture of http and https resources on the page which will pop
the "This page contains secure and nonsecure items" dialog in most browsers

3) The line which throws the "Permission denied" exception is the
xmlhttp.open line in the following JavaScript method:

function xmlhttp_get(xmlhttp,url)
{
xmlhttp.open('GET',url,true);
xmlhttp.send(null);
}

A quick inspection of the url variable shows it to be:
"http://localhost/myReader/browser/CountryState.aspx?q=GB"

That's almost certainly your problem... Have you hard-coded 'localhost'
somewhere instead of using relative addressing...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
That's almost certainly your problem... Have you hard-coded 'localhost'
somewhere instead of using relative addressing...?

thank you for your help, yes I did have localhost hard coded. I think I'm
tired and was looking right at it, but could not see it.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OL****************@TK2MSFTNGP05.phx.gbl...
"xzzy" <mr********@comcast.netwrote in message
news:58******************************@comcast.com. ..
>to see what I am talking about,
- go to www.MyReader.net
- select Create Account
- when changing the country, the contents of the State dropdown should
repopulate but does not because persmission is denied

1) You need to fix all the validation errors before you do anything else:
http://validator.w3.org/check?verbos...untCreate.aspx

2) You have a mixture of http and https resources on the page which will
pop the "This page contains secure and nonsecure items" dialog in most
browsers

3) The line which throws the "Permission denied" exception is the
xmlhttp.open line in the following JavaScript method:

function xmlhttp_get(xmlhttp,url)
{
xmlhttp.open('GET',url,true);
xmlhttp.send(null);
}

A quick inspection of the url variable shows it to be:
"http://localhost/myReader/browser/CountryState.aspx?q=GB"

That's almost certainly your problem... Have you hard-coded 'localhost'
somewhere instead of using relative addressing...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Jon Montana | last post: by
1 post views Thread by Mark E. Hamilton | last post: by
2 posts views Thread by Taishi | last post: by
reply views Thread by private.anders | last post: by
reply views Thread by private.anders | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.