Cannot Pass Session Variables from C# to VB-ASP?

J

Jay Chan

Why session variables in a C#-app cannot be available to a web-based-
VB-app when I run the applications in a debugger?

We have a VB-application that was originally written as a ASP intranet
application. Later on, someone re-wrote it to run it as a desktop
application in order to speed up its performance -- but it is still
running as a ASP. And then it was integrated with a larger application
that is in C#. The C# application calls up the VB-application through
a WebBrowser.Navigate() function call. They both work fine in
production environment. Unfortunately, when I run them in Visual
Studio debugger, I find that session variables that C# application has
prepared are not available in the VB application.

Please note that I was not the one who developed these applications.
They have long gone. And I am not familiar with the ASP-thing.

Please help.

Thanks in advance for any help.

Jay Chan
 
J

Jay Chan

Why session variables in a C#-app cannot be available to a web-based-
VB-app when I run the applications in a debugger?

We have a VB-application that was originally written as a ASP intranet
application. Later on, someone re-wrote it to run it as a desktop
application in order to speed up its performance -- but it is still
running as a ASP. And then it was integrated with a larger application
that is in C#. The C# application calls up the VB-application through
a WebBrowser.Navigate() function call.  They both work fine in
production environment.  Unfortunately, when I run them in Visual
Studio debugger, I find that session variables that C# application has
prepared are not available in the VB application.

Please note that I was not the one who developed these applications.
They have long gone.  And I am not familiar with the ASP-thing.

Please help.

Thanks in advance for any help.

Jay Chan

I have got around with this problem by following suggestions that I
have found in this newsgroup. The suggestions are:
1. Disable anonymous access.
2. Set authentication mode to Windows Authentication (in Web.Config).
3. Set identity-impersonate to true (in Web.Config).

This "workaround" allows me to get access to the User.Identity.Name.
Using the user login name, I can re-create the session variables that
I cannot pass from a C# module to a VB-ASP module.

Still, this is just a workaround. I still haven't fixed the original
problems:
o I still don't know why I cannot pass the session variables from the
C# module to the VB-ASP module.
o I still don't know why this problem only occurs when I run it in
debugging mode in Visual Studio. The production version of the
same program doesn't have this problem even though it has
enabled anonymous access, and has set the identity-impersonate
to false.

Any idea? Thanks.

Jay Chan
 

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