By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

permission denied

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a

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

P: n/a
"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

P: n/a
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.