What causes this error in this context "ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND"?

T

trint

Here is the "catch exception" message:
"The requested lookup key was not found in any active activation
context"

Here is where it happens:
public void DoRead(IAsyncResult ar)
{
int BytesRead;
string strMessage;

try
{
// Finish asynchronous read into readBuffer and return number of
bytes read.
BytesRead = client.GetStream().EndRead(ar);
if (BytesRead < 1)
{
// if no bytes were read server has close. Disable input window.
MarkAsDisconnected();
return;
}
// Convert the byte array the message was saved into, minus two for
the
// Chr(13) and Chr(10)
strMessage = Encoding.ASCII.GetString(readBuffer, 0, BytesRead -
2);
ProcessCommands(strMessage);
///
System.Diagnostics.Process.Start(@"http://www.microsoft.com");
<--HERE
///
// Start a new asynchronous read into readBuffer.
client.GetStream().BeginRead(readBuffer, 0, READ_BUFFER_SIZE, new
AsyncCallback(DoRead), null);
}
catch( Exception e)
{
MarkAsDisconnected();
}
}

It is not something with "System.Diagnostics.Process.Start", I don't
think. Because, I can replace it with this and get the same error:
TestNotifyWindow.NotifyWindow nw;
TestNotifyWindow.Class1.notifyReceiveString = "Your Account has been
UpDated";
nw = new TestNotifyWindow.NotifyWindow
(TestNotifyWindow.Class1.notifyReceiveString);
nw.TextClicked += new System.EventHandler (textClick);
nw.Notify();

I am trying to add any kind of a function call to the Socket Client
Sample read area, so that when the Socket Server sends a notification,
it will execute the code I choose to use.
Any help is appreciated.
Thanks,
Trint
 
W

Win2003InstallIssues

Trint,

I have the same problem. Did you find any solution ?

Thanks
Ravi
 
T

Trint Smith

No, but it is strange you just now respond because I am working on that
right now. I know that If you try to execute anyting on the
"ProcessCommands(string strMessage)" from the servers "send", it fails.
I'm still trying though...
Trint

.Net programmer
(e-mail address removed)
 
W

Win2003InstallIssues

Trint,

found this piece of code on one of the google groups and it worked for
me. All I needed was to open a web page. on a linklabel click.
string theUrl = "http://www.microsoft.com"
ProcessStartInfo startInfo = new ProcessStartInfo( "IExplore.exe" );
startInfo.Arguments = theUrl;
System.Diagnostics.Process.Start(startInfo);

Ravi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top