How to get HttpApplication from Windows Form

  • Thread starter Thread starter Zhangming Su
  • Start date Start date
Z

Zhangming Su

Hi,

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

Thank for the help!
 
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!
 
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.
 
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?
 
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 said:
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]
- (e-mail address removed)

Zhangming Su said:
Hi,

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

Thank for the help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top