473,599 Members | 3,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTTP.Open - Permission Denied error

In our ASP page, we call XMLHttp to download XML files. When calling our
page using localhost (localhost/myWebSite/myPage.htm), it works, but when
calling using the IP address of the web server
(xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the
HTTP.Open statement.

Set http = CreateObject("M icrosoft.XmlHtt p")
http.open "Get", "http://" & "xx.x.x.xxx " & "/XMLFiles/N-1min.xml",
ALSE --> permission denied error

Why do I get permission denied error on the HTTP.Open, and how to fix it ?

Thanks.

Apr 10 '06 #1
3 6137

"fniles" <fn****@pfmail. com> wrote in message
news:uw******** ******@TK2MSFTN GP02.phx.gbl...
In our ASP page, we call XMLHttp to download XML files. When calling our
page using localhost (localhost/myWebSite/myPage.htm), it works, but when
calling using the IP address of the web server
(xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the
HTTP.Open statement.

Set http = CreateObject("M icrosoft.XmlHtt p")
http.open "Get", "http://" & "xx.x.x.xxx " & "/XMLFiles/N-1min.xml",
ALSE --> permission denied error

Why do I get permission denied error on the HTTP.Open, and how to fix it ?

Thanks.


Is the web server IIS?
Does it have more than one web site?
Are host headers set on the site you are accessing?
Does the site have anonymous access enabled?
Why do you want to hard code an IP address into your web page anyway?
Is the ASP Page running on the same server that you are trying to fetch
from?

BTW on a server you should use MSXML3.ServerXM LHTTP.3.0, XMLHttp is not
thread safe and should not be used with in ASP or COM+.

Anthony.

Apr 11 '06 #2
> Is the web server IIS?
yes
Does it have more than one web site? yes Are host headers set on the site you are accessing? What did you mean by this ? Does the site have anonymous access enabled? yes Why do you want to hard code an IP address into your web page anyway? Did you mean to use the web server name instead of the IP address ?
Is the ASP Page running on the same server that you are trying to fetch
from? The ASP page is on a different machine than the XML file
"Anthony Jones" <An*@yadayadaya da.com> wrote in message
news:eF******** ******@TK2MSFTN GP04.phx.gbl...
"fniles" <fn****@pfmail. com> wrote in message
news:uw******** ******@TK2MSFTN GP02.phx.gbl...
In our ASP page, we call XMLHttp to download XML files. When calling our
page using localhost (localhost/myWebSite/myPage.htm), it works, but when
calling using the IP address of the web server
(xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the
HTTP.Open statement.

Set http = CreateObject("M icrosoft.XmlHtt p")
http.open "Get", "http://" & "xx.x.x.xxx " & "/XMLFiles/N-1min.xml",
ALSE --> permission denied error

Why do I get permission denied error on the HTTP.Open, and how to fix it
?

Thanks.


Is the web server IIS?
Does it have more than one web site?
Are host headers set on the site you are accessing?
Does the site have anonymous access enabled?
Why do you want to hard code an IP address into your web page anyway?
Is the ASP Page running on the same server that you are trying to fetch
from?

BTW on a server you should use MSXML3.ServerXM LHTTP.3.0, XMLHttp is not
thread safe and should not be used with in ASP or COM+.

Anthony.

Apr 11 '06 #3

"fniles" <fn****@pfmail. com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Is the web server IIS? yes
Does it have more than one web site?

yes
Are host headers set on the site you are accessing?

What did you mean by this ?


There are a few different ways that IIS can route requests to the
appropriate web site.

By default there is only one web site which will be listening on port 80 and
can be accessed via any IP address that addresses the server.

When you add a new website you can specify for example that the site is for
one of the IP addresses that the server has. The default web site will stop
responding to that address.

Another more common way is to specify a host header for the site. If you
have DNS entries Site1 and Site2 both pointing to the same server you can
specify which site responds depending on which name was used in the URL to
access the server.

So if you have a site that has the host header 'localhost' and a default web
site then using a straight IP address is likely to route to the default web
site than when you use localhost in the URL.
Does the site have anonymous access enabled?

yes
Why do you want to hard code an IP address into your web page anyway?

Did you mean to use the web server name instead of the IP address ?


Yes that would seem to more sensible.
Is the ASP Page running on the same server that you are trying to fetch
from? The ASP page is on a different machine than the XML file


When you use localhost then it will be accessing your local machine not the
remote site.

"Anthony Jones" <An*@yadayadaya da.com> wrote in message
news:eF******** ******@TK2MSFTN GP04.phx.gbl...

"fniles" <fn****@pfmail. com> wrote in message
news:uw******** ******@TK2MSFTN GP02.phx.gbl...
In our ASP page, we call XMLHttp to download XML files. When calling our page using localhost (localhost/myWebSite/myPage.htm), it works, but when calling using the IP address of the web server
(xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the HTTP.Open statement.

Set http = CreateObject("M icrosoft.XmlHtt p")
http.open "Get", "http://" & "xx.x.x.xxx " & "/XMLFiles/N-1min.xml",
ALSE --> permission denied error

Why do I get permission denied error on the HTTP.Open, and how to fix it ?

Thanks.


Is the web server IIS?
Does it have more than one web site?
Are host headers set on the site you are accessing?
Does the site have anonymous access enabled?
Why do you want to hard code an IP address into your web page anyway?
Is the ASP Page running on the same server that you are trying to fetch
from?

BTW on a server you should use MSXML3.ServerXM LHTTP.3.0, XMLHttp is not
thread safe and should not be used with in ASP or COM+.

Anthony.


Apr 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2295
by: charlie fortune | last post by:
I can't open a dbm in my webspace, the message I get is Warning: dba_open(./subscribers.db): failed to open stream: Permission denied in /home/fhlinux199/f/fortunesgreenradio.co.uk/user/htdocs/scripts/footy_subscribers.php on line 15 Couldn't open database The relevant code is ; <?php
2
2232
by: PM Creyghton | last post by:
I got this error without using frames: First of all, I'm developing an ASP application, and once in a while my activeX components crash or hang, I got page-not-found errors, errors generated by my COM object... Its all in the game of development :).. BUT when some crash occure, and I then try to restart my IIS service or restart my component service, javascript is generating the 'Permission denied error'.
1
4314
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 coming from: sem_trywait: Permission denied sem_wait: Permission denied sem_post: Permission denied
10
4569
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 precisely, it updates that table to change the search_path temporarily). With the postgres 7.3 (and 7.4 too) installed on my debian development system, this worked fine. On redhat 9, however, I get an "pg_settings: permission denied" error when my...
4
9078
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 required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Permission denied" This is what I am doing. we had an app that...
0
3191
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 the destination table(DB2). I get the following error when the package is executed: The execution of the following DTS Package succeeded: Package Name: PEX2-CopyQualDatatoDB2-UAT Package Description: (null) Package ID:...
9
3319
by: Tony Proctor | last post by:
I need to create a process Singleton object for an ASP application, but I'm having some odd issues In my GLOBAL.ASA, I have an <OBJECTelement specifying the relevant ProgID with RUNAT=Server and SCOPE=Application However, although this works fine for some classes, I get a permission denied error for classes from a particular DLL. The error response is:- Active Server Pages error '8002802b'
6
62711
by: Andy2500 | last post by:
Hi, I'd like to upload an image to a folder, then I have 3 diffrents examples but all of them give an error "failed to open stream: Permission denied", althrough the C:\Inetpub\wwwroot is not protected. Any suggestions would be helpful, thank you for your time.
2
2477
by: swethak | last post by:
Hi, when i run my code it gives error as fopen(lib/providers//provider.RVLogic.php): failed to open stream: Permission denied in F:\Facebook\furniture11\Data Mining\public_html\lib\inc\functions.lib.php Line 673 : trigger_error("Failed to open stream to $filename. Permission denied!", E_USER_ERROR); could you plz tell the solution for how to avoid that errors
0
7993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7916
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6729
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5866
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1508
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.