473,325 Members | 2,816 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,325 software developers and data experts.

How to get HttpApplication from Windows Form

Hi,

Any one know "How to get HttpApplication from Windows Form" by using C# on
Windows 2003 server?

Thank for the help!
Nov 9 '07 #1
4 3275
Hi,

Any one know "How to get HttpApplication from Windows Form" by using C# on
Windows 2003 server?

There are a lot of Website applications running on the server. I want write
Windows application running at backend to get some information in Web
appication at runtime.

Thank for the help!
Nov 9 '07 #2
Zhangming,

What exactly are you trying to do? It doesn't make sense to access the
HttpApplication class from a Windows Forms application since the
HttpApplication class is used in ASP.NET apps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Zhangming Su" <su**@ExportTradingNetwork.comwrote in message
news:fh***********@cti36.citenet.net...
Hi,

Any one know "How to get HttpApplication from Windows Form" by using C# on
Windows 2003 server?

Thank for the help!
Nov 9 '07 #3
That's not going to be possible, at least, getting details about the
application from the HttpApplication variable.

Depending on what kind of information you are looking to get, it might
be possible though. Can you elaborate on the information you are trying to
get?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Zhangming Su" <su**@ExportTradingNetwork.comwrote in message
news:fh***********@cti36.citenet.net...
Hi,

Any one know "How to get HttpApplication from Windows Form" by using C# on
Windows 2003 server?

There are a lot of Website applications running on the server. I want
write Windows application running at backend to get some information in
Web appication at runtime.

Thank for the help!

Nov 9 '07 #4
Hi Nicholas Paldino,

Thank you very much for your post.

I have a server whick contains multiple websites (95-100). I want to check
how many active users on the server (whole websites) without saving the data
into database since sometimes I get SQL connection errors as:

SQL:Error Message =;Index #0
Message: An error has occurred while establishing a connection to the
server. When connecting to SQL Server 2005, this failure may be caused by
the fact that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server);LineNumber: 0;Source: .Net SqlClient Data
Provider;Procedure

These kinds of errors I get as 0 to 6 per day so far. I want to want how
many connections have been used when the server get the error.
We have 3 servers contains 230 websites and one SQL server.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:84**********************************@microsof t.com...
Zhangming,

What exactly are you trying to do? It doesn't make sense to access the
HttpApplication class from a Windows Forms application since the
HttpApplication class is used in ASP.NET apps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Zhangming Su" <su**@ExportTradingNetwork.comwrote in message
news:fh***********@cti36.citenet.net...
>Hi,

Any one know "How to get HttpApplication from Windows Form" by using C#
on Windows 2003 server?

Thank for the help!

Nov 12 '07 #5

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

Similar topics

3
by: AinO | last post by:
Hi, - I've created a webservice in VS2003/c# wich relies heavily on cache. It has a cache manager wich loads resources (triggered by requests) and wich has also a built in timer wich triggers...
4
by: Halcyon Woodward | last post by:
I have an odd problem... We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003...
7
by: [Gauthier] | last post by:
Hello, I've a simple question: On a server that run multiple asp.net HttpApplication, is there any way with the asp.net framework to exchange data between different application? I basically...
4
by: sikander khan via .NET 247 | last post by:
hello all ! i know that there exists one to one relationship between HttpApplication instance and a request. My doubt is that instance associated with that request until session times out. i mean...
6
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
1
by: Fernando Arámburu | last post by:
Hy everybody, I´m working on an ASP.NET framework and and I need to extend System.Web.HttpApplication. I mean, I need to put some intermediate class between System.Web.HttpApplication and Global...
5
by: miha.valencic | last post by:
Hi! A while ago, I noticed that there are usually two instances of HttpApplication created within IIS (observed on WinXPPro). Why is that? Especially, since Application_Start handler is called...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
4
by: Urs | last post by:
Two questions: 1) What possibly causes HttpApplication from being unloaded or recycled? 2) How can I prevent HttpApplication from being unloaded or recycled (to prevent loss of session state...)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.