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

Asked By Jay Chan
14-Oct-08 03: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
Visual Studio
(1)
WebBrowser.Navigate
(1)
WebBrowser
(1)
VB
(1)
Config
(1)
Navigate
(1)
Disable
(1)
Windows
(1)
  Jay Chan replied...
17-Oct-08 07: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
Create New Account
help
Forms.WebBrowser: Vista vs XP .NET Framework I have a C# Winforms app developed with Visual Studio Express Edition that uses a WebBrowser control to POST data to an external website. Here parm1 = hello"; postStr + = "&parm2 = world"; byte[] postBytes = Encoding.UTF8.GetBytes(postStr); WebBrowser webBrowser = new WebBrowser(); webBrowser.Navigate("http: / / www.mydomain.com / post_here", + " \ n" + " \ r"); This works just fine when the app runs Discussions XP (1) WebBrowser (1) POST (1) Vista (1) WebRequest (1) GetBytes (1) Encoding (1) Visual (1) In article <1173330298.838714.90080@p10g2000cwp.googlegroups.com> , jeff@kalikstein.com says. . . I would by having my program create a .html file embedded with javascript POSTing code and then WebBrowser.Navigate-ing to the html file. -jeff jeff@kalikstein.com says. . . Ahhh. I see. Yeah, if Windows.Forms.WebBrowser:, Vista, vs, XP description: I have a C# Winforms app developed with Visual Studio Express Edition that uses a WebBrowser control to POST data to an external website
Nothing wb.Navigate(New Uri("file: / / / my documents / myapp / temp1.htm")) End Sub Regards, Rob Visual Studio .NET Discussions WebBrowser (1) Compact Framework (1) DocumentText (1) IO (1) HTML (1) TempFile (1 but the WebBrowser displays the temp file immediately. 1. Create a new PDA application using Visual Studio 2008; 2. Drag a TabControl on to the form; 3. Drag a Panel control onto works everytime). Not sure why I can't use WebBrowser.Document.Text for everything or WebBrowser.Navigate() for everything, I thought it might have been a device issue but I've tried would display an exception within WEBVIEW.DLL. I found that converting the WebBrowser.DocumentText to WebBrowser.Navigate(), and creating a temporary HTML file containing the 'offending' HTML code, worked. original code: wb
net framework. You may have to create that by yourself. I think you can use WebBrowser navigate to the target website, and get graphic. For parsing XML file, you can pass it confers no rights. Sorry for the delay in getting back to you. Here is a visual example of graphically representing a website: http: / / www.positionmasters.com / website-design / website-worksheet.html I am working on an ASP.NET website, using visual studio 2008 prof. Thanks for the link (on navigation without the treeview control). It does provide
Is Visual Studio self-hosting ? .NET Framework Does Microsoft use Visual Studio IDE, Visual Studio Debugger, Visual Studio Linker and Visual Studio compiler for developing Visual Studio ? Or is Visual Studio not good