473,386 Members | 1,757 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,386 software developers and data experts.

CreateApplicationHost & Session State, etc.

SDS
If you host an ASP.NET application within a Win32 assembly using
CreateApplicationHost(), does the ASP.NET code running within that host
still have access to HTTP-related members such as the Session object,
Request object, HttpContext, Form object, etc.?

I'm wondering how "1:1" the port is of an ASP.NET app running under IIS
using things like session & view state to an app hosted under
CreateApplicationHost().

Thanks!

Nov 19 '05 #1
1 1326
All of those things are the same and are created and managed by ASP.NET.
The big thing that's different when building your own hosting application
for ASP.NET is implementing the HttpWorkerRequest; this is the class were
you have to provide all of the information about the HTTP request. If you
use HttpListener then it's a lot easier since it does the HTTP parsing and
provides APIs to get at all that information. Your HttpWorkerRequest class
then is a simple pass-thru to the HttpListener implementation (still a lot
of pass-thrus though).

-Brock
DevelopMentor
http://staff.develop.com/ballen
If you host an ASP.NET application within a Win32 assembly using
CreateApplicationHost(), does the ASP.NET code running within that
host still have access to HTTP-related members such as the Session
object, Request object, HttpContext, Form object, etc.?

I'm wondering how "1:1" the port is of an ASP.NET app running under
IIS using things like session & view state to an app hosted under
CreateApplicationHost().

Thanks!


Nov 19 '05 #2

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

Similar topics

1
by: Nikander Bruggeman | last post by:
I keep losing session state when I store UIPAB state in the SessionStateObject. The asp.net session state object itself stores it's state in SQL server, I'm using cookieless session state. This...
6
by: Jason Shohet | last post by:
2 questions for anyone who can answer: 1. in class declarations, I realize you have to use the NEW keyword if you want to declare & instantiate some class at the same time. Whats an advantage...
3
by: Jeremy | last post by:
I am relativly new to ASP.NET, and my question is this: Is it better to create a wrapper class that contains all the running settings for the application and then load that into the app state, or...
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
1
by: - Steve - | last post by:
I use forms based authentication and I've been putting the username in Session State (Session). Then when a user posts I check that Session != null else I Session.Abandon() and...
0
by: Jeremy Chapman | last post by:
How can I use ApplicationHost.CreateApplicationHost without having to make a copy of the assembled file (the .EXE) to the "bin" subdirectory? Is this possible?
2
by: Dave | last post by:
I have an application running on a 3 server webfarm running Windows 2003 with SQLServer Session state. After running for several hours, I started getting the following error. When I access each...
2
by: glenn | last post by:
Hi folks, I must be missing something here. I have an ASP page that I create a Session variable in as follows. Session ("name")="Joe" In an ASP.NET page in the same project and the same...
1
by: Vlad Hrybok | last post by:
Hi, I noticed that releasing the reference ot the returned by CreateApplicationHost() is not enough to free memory taken by AppDomain created by CreateApplicationHost(). I have to created and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.