469,610 Members | 1,853 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

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("Microsoft.XmlHttp")
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 5915

"fniles" <fn****@pfmail.com> wrote in message
news:uw**************@TK2MSFTNGP02.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("Microsoft.XmlHttp")
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.ServerXMLHTTP.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*@yadayadayada.com> wrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...
"fniles" <fn****@pfmail.com> wrote in message
news:uw**************@TK2MSFTNGP02.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("Microsoft.XmlHttp")
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.ServerXMLHTTP.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****************@TK2MSFTNGP03.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*@yadayadayada.com> wrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...

"fniles" <fn****@pfmail.com> wrote in message
news:uw**************@TK2MSFTNGP02.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("Microsoft.XmlHttp")
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.ServerXMLHTTP.3.0, XMLHttp is not
thread safe and should not be used with in ASP or COM+.

Anthony.


Apr 11 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by charlie fortune | last post: by
2 posts views Thread by PM Creyghton | last post: by
1 post views Thread by Mark E. Hamilton | last post: by
6 posts views Thread by Andy2500 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.