473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 2648
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Klunk | last post by:
Hi, last week I moved the folder of my Intranet application to another disk of the same server. After this change all the ASP page return this error: Microsoft VBScript runtime error...
6
by: Jon Montana | last post by:
CDONTS was working well until I installed Exchange 2000. I thought it might be a relay problem, but I allowed the server IP address to relay. Thanks for anything you can offer. here's the...
1
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's...
10
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
0
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: private.anders | last post by:
Really need your assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.