Click here to Skip to main content
15,169,285 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two Project

1 is ASP.Net Winform Project (aspx with VB)
2 is MVC Project (cshtml with c#)

I would combine these two into one, I have few Options,

i).Run these Two Projects in Same Localhost Port,
ii).Run Different Port for these 2 Application, but Share Session Storage or cache storage
iii).Pass Parameters between these two host

Finally I want output like, Run a Program whatever but manage the Session Variables Common.

Please Help me Guys..!

What I have tried:

I Tried to Run into Same Host and Share the Variable Via Session Storage, but its not Working
Updated 11-Nov-21 21:54pm

1 solution

No, the two processes are independent and do not share common memory - you really, really wouldn't want that in practice as it leads to all sorts of problems with apps interfereing with each other by accident!

Instead, use the Socket Class (System.Net.Sockets) | Microsoft Docs[^] to communicate directly between the two processes and pass information that way.
Google will find you loads of examples of client / server Socket coms and VB and C# will interact very easily.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900