search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
.NET Framework GroupsView
Deployment Server
.NET Distributed_Apps
.NET
.NET ADO.NET
.NET ASP.NET
.NET ASP.NET Security
.NET ASP.NET Webcontrols
.NET ASP.NET Web Services
.NET Clr
.NET Compact Framework
.NET Drawing
.NET Interop
.NET Micro Porting
.NET Performance
.NET Web Services
.NET Windows Forms
.NET Windows Forms Controls
.NET General
.NET Csharp
.NET Visual Basic
.NET Vc
.NET Security
.NET Xml
Scripting Jscript
Scripting Visual Basicscript
Scripting Wsh
Smartphone Developer
Visual Basic Com
Visual Basic Controls
Visual Basic Crystal
Visual Basic Database Ado
Visual Basic Syntax
Visual Basic Vista Compatibility
Visual Basic Winapi
Vc Atl
Vc Debugger
Vc Language
Vc Mfc
Vc Stl
Visio Developer Visual Basica
Vsnet Debugging
Windows Powershell
Windowsce Embedded Vc
Xml
Xsl

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft NET Csharp Posts  Ask A New Question 

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

Tuesday, October 14, 2008 3:51 AM

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
reply
 

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

Friday, October 17, 2008 7:57 AM

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
reply

Previous Microsoft NET Csharp conversation.