473,770 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using Console.Writeln (...) in WebServices or ASP.NET application

Hello!

When you have windows forms you have the same possibility as when you have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony
Aug 16 '06 #1
6 5713
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLi ne in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #2
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln (..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLi ne in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony

--
Happy Coding!
Morten Wennevik [C# MVP]

Aug 16 '06 #3
Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably open
for the user responsible for the application pool running the web service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln (..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
>Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLi ne in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony


--
Happy Coding!
Morten Wennevik [C# MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #4
Hello!

I'm not trying to do anything but if I want to get some trace information I
thought it might be easier to write to
the Console then creating a file and then write to it.

I use localhost and IIS and I have tried to use this Consol.Writeln( ..) but
no Console is created.
So you mean if I use localhost and IIS and create a console from the process
class I will be able to write to a console window.

Or do you think it's impossible to create a Console from the process class
and then write to it like a normal console application
when using localhost and IIS.
//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably open
for the user responsible for the application pool running the web service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln (..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLi ne in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony
<jo************ *****@telia.com >
wrote:

Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony



--
Happy Coding!
Morten Wennevik [C# MVP]

--
Happy Coding!
Morten Wennevik [C# MVP]

Aug 16 '06 #5
Tony,

I'm guessing the Console will be created, but noone will be able to see
it. Stick to writing to a file. In the end, data in the console will
vanish once you close it, but you can still check out the file later on.

[Create Simple Error Log Files using ASP.NET and C#]
http://www.codeproject.com/aspnet/createlogfiles.asp

There are many ways to log information

On Wed, 16 Aug 2006 10:29:32 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

I'm not trying to do anything but if I want to get some trace
information I
thought it might be easier to write to
the Console then creating a file and then write to it.

I use localhost and IIS and I have tried to use this Consol.Writeln( ..)
but
no Console is created.
So you mean if I use localhost and IIS and create a console from the
process
class I will be able to write to a console window.

Or do you think it's impossible to create a Console from the process
class
and then write to it like a normal console application
when using localhost and IIS.
//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
>Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably
open
for the user responsible for the application pool running the web
service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo************ *****@telia.com >
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I
then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln (..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************ @hotmail.comskr ev i meddelandet
news:op******** *******@tr024.b ouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLi ne in any app, but the text will just
vanish
>unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony
<jo************ *****@telia.com >
>wrote:

Hello!

When you have windows forms you have the same possibility as when
you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony

--
Happy Coding!
Morten Wennevik [C# MVP]


--
Happy Coding!
Morten Wennevik [C# MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #6
Hello,

It's possible to get a trace of your application in a Console.

You may be interested by System.Diagnost ics.Debug class :
http://msdn2.microsoft.com/en-us/lib...ics.debug.aspx
http://www.dotnetspider.com/namespac...spx?ClassId=74

If you use Visual Web Developer, you can display this debug console
with :
Debug =Windows =Output

Good Luck !

tony a écrit :
Hello!

When you have windows forms you have the same possibility as when you have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony
Aug 16 '06 #7

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

Similar topics

1
340
by: Henry Chen | last post by:
We have a multi-tier application using .net remoting. In server side, I can use either service and console application to process client request. I sometimes can not find the problem with the service. However, I can use the console to see what's wrong. Can anyone tell me the difference between the service and console application in the serve site (application server)? I mean when to use which and their advantages/disadvantages. Thanks...
3
2144
by: Gionni | last post by:
Hello everyone, I'm have a window application, but it is a console application too. I'll try to explain better: if I call the program without parameters the GUI starts. Otherwise it runs as a console application. In other words, I emulate the "certmgr" behavior. My problem is I cannot display any trace in the console (Someghing like: Pass 1: OK, Pass 2: etc). Console.Write does not work, because the window application has not a console....
7
4390
by: ajikoe | last post by:
Hello All, It is said that : Enabling the console window is easy. From Microsoft Visual Studio®, right-click on the project and choose Properties. Change the output type from Windows Application to Console Application. I use C# Standard Edition and I can't change the output type files from Windows Application to Console Application. I can' t find how tho change it although I follow this procedure: Menu Project -> Properties -> Common...
5
11258
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough to avoid the overhead of writing to the console if it is not visible, eg I am running inside a WinForm application. thanks
3
15030
by: inpreet | last post by:
I am trying to build a console application in C#.Net. This application is suppose to run in background without user interaction. How can I hide console to appear?
8
18658
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window available in the same form for users to enter commands and display outputs if some prefer to use character based user interface. I would like to implement the user interface in vb .net. Now I have menus and toolbars ready, but do not now how to get a...
1
1160
by: Jothi | last post by:
Hi, We are a small application development group. We have about 100 Users who primarily use Microsoft Related Products. Our Application Development was purley based on a CLient Server Model using Visual Basic and SQL Server. We plan to move forward to the .NET environment. We plan to develop applications with ASP.NEt as well as VB.NET. Right now we have some COM components or DLL's that we use. For example we
0
2708
by: suedasszyy | last post by:
Haiiii.... i'm new for VB.net. can someone help me to solve those question? is it possible to draw a graph such as Sin graph using console application? if not, how can i draw a graph ,example sin graph in window form but i must give the commands in console application ?
2
3671
by: SheetalGandhi24 | last post by:
Hi I need to use the System.IO namespace in the Win32 console application. Any clues for doing the same? Basically, I need to load the files of a particular folder in an array. I need to do this in a VC++.NET Win32 console application. I am very new to using VC++. Can anyone please help? Thanks in anticipation,
4
5696
by: federico | last post by:
Hello, I am trying to setup a Visual Basic "Console" application for searching Outlook folders. To this end I am trying to implement a Handler for the Outlook.Application.AdvancedSearchComplete Event. The problem I have is that the application finishes and exits before the AdvanceSearch, so the Event Handler in never called. If I delay the end of the application, for example, by having message box right after the call to AdvancedSearch,...
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9453
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9904
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.