473,388 Members | 1,286 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,388 software developers and data experts.

How do you get a seperate client process to talk to ASP.NET App

I've logged into an ASP.Net server through my browser. My browser runs
an activex control. The activex control starts an activex EXE that needs
to communicate to the server.

The problem is when the activex EXE tries to talk to the server, the
server redirects the request to the log in page. I'm using basic ASP.NET
authentication on the server.

The question is, how do you get a client process to imposter as the
original browser process so that the server thinks it is logged in? The
client software needs to run outside of .NET.

Thanks,

-Greg Liles

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
3 1333
"Greg Liles" <gr********@neogenesys.us> wrote in message
news:uO*************@TK2MSFTNGP12.phx.gbl...
I've logged into an ASP.Net server through my browser. My browser runs
an activex control. The activex control starts an activex EXE that needs
to communicate to the server.

The problem is when the activex EXE tries to talk to the server, the
server redirects the request to the log in page. I'm using basic ASP.NET
authentication on the server.

The question is, how do you get a client process to imposter as the
original browser process so that the server thinks it is logged in? The
client software needs to run outside of .NET.


If you're using Forms Authentication, then your client will need to send the
same Forms Authentication cookie as the browser would.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2

OK, I tried that. At least I think I tried that.

What I did was add a header sent back to the server that has my
authentication cookie information. The header looks like this:

Cookie: ASP.NET_SessionId=51w0nt55lompdn55sxzf4t45;
login=7BA0D2CD1686AAA9E00E393B709628808572D38131D3 4132838BB2888190B757B3
04451E9C5EFC99EB7A15159F90E02AB16C6C50FD5D6DA54C28 E47A712DBA6BD8A2DF89E2
828150

I verified that the header was indeeed sent back using an HTTP sniffer.

However, the server still denies the new process access. I still get the
login screen.

Am I doing something wrong in sending the cookie?

-Greg Liles
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
"Greg Liles" <gr********@neogenesys.us> wrote in message
news:uy*************@TK2MSFTNGP12.phx.gbl...

OK, I tried that. At least I think I tried that.

What I did was add a header sent back to the server that has my
authentication cookie information. The header looks like this:

Cookie: ASP.NET_SessionId=51w0nt55lompdn55sxzf4t45;
login=7BA0D2CD1686AAA9E00E393B709628808572D38131D3 4132838BB2888190B757B3
04451E9C5EFC99EB7A15159F90E02AB16C6C50FD5D6DA54C28 E47A712DBA6BD8A2DF89E2
828150

I verified that the header was indeeed sent back using an HTTP sniffer.

However, the server still denies the new process access. I still get the
login screen.

Am I doing something wrong in sending the cookie?


Not as far as I can see. I'd add some code to the login page to display the
Cookies collection in order to confirm which cookies get there. And I'd add
a "foo=bar" cookie just to test.

I don't know whether it will be an issue that you're trying to use the same
session ID when you're using a different connection.

I also don't know whether the encryption of the Forms Authentication cookie
is dependant on the session.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #4

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

Similar topics

2
by: mwazir | last post by:
Hi all, I have reposted this question from dotnet.general as I have been advised that this is a more appropriate forum for this question. Apologies for the repost. I have a process thats...
0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
2
by: PogoWolf | last post by:
Hey all, I'm wondering if it's possible to create a program in VB.NET that would be able to 'talk' to a ASP.NET DLL (or website for that matter) in a client-server fashion? Let's say something...
1
by: Mark Harrison | last post by:
We have the situation where it would be convenient if we could support a large number (>1024, possibly in the 2000-3000 range) of client connections. What are our options for this? Many TIA,...
3
by: Geoff | last post by:
I need to keep a few VB6 tcpClients active, but have them talk to a dotNet tcpServer/tcpListener. The "Server"/Listener is running as a Plugin, and needs to respond to "outside requests". The...
2
by: mwazir | last post by:
Hi all, I have a process thats starts in my application and only terminates when my application is terminated. I want to write the output and the errors of this process to a seperate log file....
335
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
2
by: =?Utf-8?B?UG1hX1NoYW5l?= | last post by:
I am wring asp webservices in managed c++ for IIS 5.1 runing on XP SP2. Even though I set the aplication protection to High (Isolated), each service seems to run in the same process. I wrote a...
1
by: Richard | last post by:
How do I determine the current runtime client version on an AIX box? What are the steps for upgrading a DB2 Client on an AIX box from 7 to 8 (or 9)? - do I need to uninstall 7 or just install...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.