have some methods(signIn()) in MyService.dll, that I use from my webpage.
SignIn()
{
requestCommand =
(HttpWebRequest)WebRequest.Create( http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403 forbidden"
error.
}
Any idea what is causing that?
The same code works on my box. When I move it to the server, it fails. 5 3826
Sounds like you are behind proxy server. And most likely proxy is using NT
authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true.
WebProxy pr = new WebProxy( http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
"Jay" <Ja*@microsoft.comwrote in message
news:O2**************@TK2MSFTNGP04.phx.gbl...
have some methods(signIn()) in MyService.dll, that I use from my webpage.
SignIn()
{
requestCommand =
(HttpWebRequest)WebRequest.Create(http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403
forbidden"
error.
}
Any idea what is causing that?
The same code works on my box. When I move it to the server, it fails.
Thanks for your response. I tried the following it did NOT work.
This is what I tried.
On my box: I have the proxy server specified in my internet options->LAN
settings. "Proxy.mycompany.com:80"
The app runs on my box - No problem.
When I changed the app to specify the "network credentials" - it did NOT
work on my own box.
On the server: No proxy was specified earlier. I was NOT able to access the
internet.
Now I specified the proxy. I am now able to access internet - which tells me
that the proxy settings are working.
Now I put my on the server:
1. with out network credentials - did NOT work.
2. with Network credentials - did NOT work..
Sounds like we are going on the right track...but something else is
missing..
Please help!
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
Sounds like you are behind proxy server. And most likely proxy is using NT
authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true.
WebProxy pr = new WebProxy(http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
"Jay" <Ja*@microsoft.comwrote in message
news:O2**************@TK2MSFTNGP04.phx.gbl...
>have some methods(signIn()) in MyService.dll, that I use from my webpage.
SignIn() { requestCommand = (HttpWebRequest)WebRequest.Create(http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403 forbidden" error.
}
Any idea what is causing that? The same code works on my box. When I move it to the server, it fails.
My guesses.
1. You specified incorrect domain name. It must be full name.
Go to My Computer/Properties/Computer name and Domain filed must be matching
what you've specified
2. Can you access internet on a server using browser? May be it's closed
off by firewall or something?
3. Your proxy not using NTLM authentication but it's using basic.
Then try to do folowing
string sProxySupport = "Basic " + Convert.ToBase64String(new
System.Text.UTF8Encoding().GetBytes("user:password "));
Request.Headers["Authorization"] = sProxySupport;
George
"Jay" <Ja*@microsoft.comwrote in message
news:uR**************@TK2MSFTNGP04.phx.gbl...
Thanks for your response. I tried the following it did NOT work.
This is what I tried.
On my box: I have the proxy server specified in my internet options->LAN
settings. "Proxy.mycompany.com:80"
The app runs on my box - No problem.
When I changed the app to specify the "network credentials" - it did NOT
work on my own box.
On the server: No proxy was specified earlier. I was NOT able to access
the internet.
Now I specified the proxy. I am now able to access internet - which tells
me that the proxy settings are working.
Now I put my on the server:
1. with out network credentials - did NOT work.
2. with Network credentials - did NOT work..
Sounds like we are going on the right track...but something else is
missing..
Please help!
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
>Sounds like you are behind proxy server. And most likely proxy is using NT authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true. WebProxy pr = new WebProxy(http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
"Jay" <Ja*@microsoft.comwrote in message news:O2**************@TK2MSFTNGP04.phx.gbl...
>>have some methods(signIn()) in MyService.dll, that I use from my webpage.
SignIn() { requestCommand = (HttpWebRequest)WebRequest.Create(http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403 forbidden" error.
}
Any idea what is causing that? The same code works on my box. When I move it to the server, it fails.
1. Did you mean The Domain of the computer or domain of the account that I
am trying to login?
Well, I tried both. They did not work.
2. I can access the intranet and also internet from the server.
3. I tried this one too. did not work.
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
My guesses.
1. You specified incorrect domain name. It must be full name.
Go to My Computer/Properties/Computer name and Domain filed must be
matching what you've specified
2. Can you access internet on a server using browser? May be it's closed
off by firewall or something?
3. Your proxy not using NTLM authentication but it's using basic.
Then try to do folowing
string sProxySupport = "Basic " + Convert.ToBase64String(new
System.Text.UTF8Encoding().GetBytes("user:password "));
Request.Headers["Authorization"] = sProxySupport;
George
"Jay" <Ja*@microsoft.comwrote in message
news:uR**************@TK2MSFTNGP04.phx.gbl...
>Thanks for your response. I tried the following it did NOT work. This is what I tried.
On my box: I have the proxy server specified in my internet options->LAN settings. "Proxy.mycompany.com:80" The app runs on my box - No problem.
When I changed the app to specify the "network credentials" - it did NOT work on my own box.
On the server: No proxy was specified earlier. I was NOT able to access the internet. Now I specified the proxy. I am now able to access internet - which tells me that the proxy settings are working. Now I put my on the server: 1. with out network credentials - did NOT work. 2. with Network credentials - did NOT work..
Sounds like we are going on the right track...but something else is missing.. Please help!
"George Ter-Saakov" <gt****@cardone.comwrote in message news:Ov**************@TK2MSFTNGP02.phx.gbl...
>>Sounds like you are behind proxy server. And most likely proxy is using NT authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true. WebProxy pr = new WebProxy(http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
"Jay" <Ja*@microsoft.comwrote in message news:O2**************@TK2MSFTNGP04.phx.gbl... have some methods(signIn()) in MyService.dll, that I use from my webpage.
SignIn() { requestCommand = (HttpWebRequest)WebRequest.Create(http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403 forbidden" error.
}
Any idea what is causing that? The same code works on my box. When I move it to the server, it fails.
Well, I am out of suggestions :)
George
"Jay" <Ja*@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
1. Did you mean The Domain of the computer or domain of the account that I
am trying to login?
Well, I tried both. They did not work.
2. I can access the intranet and also internet from the server.
3. I tried this one too. did not work.
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
>My guesses.
1. You specified incorrect domain name. It must be full name. Go to My Computer/Properties/Computer name and Domain filed must be matching what you've specified
2. Can you access internet on a server using browser? May be it's closed off by firewall or something?
3. Your proxy not using NTLM authentication but it's using basic. Then try to do folowing
string sProxySupport = "Basic " + Convert.ToBase64String(new System.Text.UTF8Encoding().GetBytes("user:passwor d")); Request.Headers["Authorization"] = sProxySupport;
George
"Jay" <Ja*@microsoft.comwrote in message news:uR**************@TK2MSFTNGP04.phx.gbl...
>>Thanks for your response. I tried the following it did NOT work. This is what I tried.
On my box: I have the proxy server specified in my internet options->LAN settings. "Proxy.mycompany.com:80" The app runs on my box - No problem.
When I changed the app to specify the "network credentials" - it did NOT work on my own box.
On the server: No proxy was specified earlier. I was NOT able to access the internet. Now I specified the proxy. I am now able to access internet - which tells me that the proxy settings are working. Now I put my on the server: 1. with out network credentials - did NOT work. 2. with Network credentials - did NOT work..
Sounds like we are going on the right track...but something else is missing.. Please help!
"George Ter-Saakov" <gt****@cardone.comwrote in message news:Ov**************@TK2MSFTNGP02.phx.gbl... Sounds like you are behind proxy server. And most likely proxy is using NT authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true. WebProxy pr = new WebProxy(http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
"Jay" <Ja*@microsoft.comwrote in message news:O2**************@TK2MSFTNGP04.phx.gbl... have some methods(signIn()) in MyService.dll, that I use from my webpage. > SignIn() { requestCommand = (HttpWebRequest)WebRequest.Create(http://myserver/cwa/MainCommandHandler.ashx); > > requestCommand.GetRequestStream() --This call returns me "403 forbidden" error. > } > > Any idea what is causing that? The same code works on my box. When I move it to the server, it fails. > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Oleg Konovalov |
last post by:
Hi,
I am trying to create 2 separate environments (dev and test) on one powerful
Unix server which has 2 network cards, 2 IP addresses, 2 server names...
Using Apache 2.0.43 and Tomcat...
|
by: Layne L via DotNetMonster.com |
last post by:
Trying to install a .NET application on a Windows 2003 Server ( .NET v1.1)
and for any .
aspx file get the following error:
403.1 Forbidden: Execute Access Forbidden
The application has...
|
by: DotNetter |
last post by:
I have two computers. Both computers have Windows 2003 installed as well
as Visual Studio.Net 2003 installed.
Computer A has active directory set and also has .Net and the webservice
called...
|
by: trinitypete |
last post by:
Hi all
I have a strange problem with IIS windows pass through authentication. Heres the setup
IIS running with Windows Authentication for our intranet site. ACL has been set to everyone for all...
|
by: Ollie |
last post by:
I have wrriten a reverse proxy for a client of mine, this reverse proxy
takes the url takes it attempt to access a *.XXXX and returns the the
contents of an aspx web page from another internal...
|
by: edsuslen |
last post by:
I am migrating working code (HTTPRequest with Authentication) from vb
to vb.net
vb:
Set objXMLHTTPServer = New MSXML2.XMLHTTP30
objXMLHTTPServer.Open strMethod, strGetRequest, False, "UserId",...
|
by: Edward Low |
last post by:
Hi all,
When creating a virtual directory in IIS 5.0 win xp Pro with the name like
"abc.com", an error HTTP 403.1 Forbidden: Execute Access Forbidden will
return when accessing the web page. But,...
|
by: Geoff Murley |
last post by:
I am trying to test a simple Web Service and when I invoke a Web Method
that returns a Dataset I get:
Path 'POST' is forbidden.
Description: An unhandled exception occurred during the...
|
by: PK9 |
last post by:
I am receiving the following error in Visual Studio 2003:
"the web server reported the following error when attempting to create or
open the web project HTTP/1.1 403 Access Forbidden"
I am...
|
by: amitverma60 |
last post by:
Hi Guys
I am getting an error in php.
403 forbidden error when i try to view my picture kept in a folder e.g
www.neuronsoftsols.com/upload/75/johal1.bmp comes an error 403 forbidden?
I cant...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |