473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Write to Application or Session Variables from Winform App???

Is there a way to write to IIS' Application or Session variables from a
Winforms application? I am trying to share application state between a web
application and a desktop app.

Remoting would work too but seems to be an overkill - I only want to pass
one value.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #1
3 2305
No, they are separate applications and need to use some sort of remote
procedure call mechanism, like remoting or web services offer.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 08 Nov 2004 19:53:11 GMT, Lucas Tam <RE********@rogers.com>
wrote:
Is there a way to write to IIS' Application or Session variables from a
Winforms application? I am trying to share application state between a web
application and a desktop app.

Remoting would work too but seems to be an overkill - I only want to pass
one value.


Nov 18 '05 #2
no problem. look at the webclient, or webservice. if your webservice is in
the same vdir as the web application then you can share application dta. if
you want your winform app to share session, then just add the session cookie
support in winform app. you could add the session id to webform request.

-- bruce (sqlwork.com)

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
| Is there a way to write to IIS' Application or Session variables from a
| Winforms application? I am trying to share application state between a web
| application and a desktop app.
|
| Remoting would work too but seems to be an overkill - I only want to pass
| one value.
|
| --
| Lucas Tam (RE********@rogers.com)
| Please delete "REMOVE" from the e-mail address when replying.
| http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #3
What you could try is copying your .exe file to your wwwroot of your web
server and then launching your app via a url.
http://localhost/yourapp.exe

This your app will be launched within the contex of your IIS host session.
Then, you probably can user the System.Web.HttpContex (i think thats it) to
write and retreive data from session variables. I have seen this done before;
and they had to do it this way.

"Lucas Tam" wrote:
Is there a way to write to IIS' Application or Session variables from a
Winforms application? I am trying to share application state between a web
application and a desktop app.

Remoting would work too but seems to be an overkill - I only want to pass
one value.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mark4asp | last post by:
What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include that file on every page. This is the best way of...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
1
by: usl2222 | last post by:
Hi, I'm building this web application using asp.net and c# as code behind. Currently I save all my session data in session variables. One of the things that this application must do, is to...
6
by: Just D | last post by:
Hi, How slowly is to work with these objects - Application and Session ? Is it much better to create a huge project or some static library and place all variables/constants there instead of many...
3
by: Terry Holland | last post by:
Ive read that to build scalable web apps it is not recommended that state be stored in session variables. My understanding of this is that, with many users using the application concurrently,...
1
by: pamelafluente | last post by:
Hello I have been asking around about some suggestions about the best way to web enable an existing big Win app (wich includes a magazine page setter). Must say with no much success, as most...
7
by: Victor | last post by:
I've got two domain names sharing the same IP address that use ASP VBScript If I set a session variable with domain 1, it is only available for domain 1 - this is correct? If I set an...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.