RE: writing to file from web service



Hi,

Not sure whether you were talking about a legacy ASP.NET web service or a
WCF web service. But the code just looks fine to me and it should work.

In addition, there are other choices, if you're interested:

You can also use the .NET built in Trace class to log messages to a text
file together with TextWriterTraceListener class. As stated in the MSDN
document, the Trace class is thread safe. The potential advantage of using
Trace class over your own is, it is configurable without changing the code.
More flexible when you want to change the log format (like txt to xml).

Windows Event logging is another option. The logs will be easier to
manage/analyze for admins.

If you have any futher questions, please don't hesitate to let me know.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • Problem solved
    ... am not using a beta of WSE 3; the file does already exist in my web service. ... I have no problems when I do this on a new simple web service project. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: ASP.Net timeouts
    ... There's no managed call stack on the thread that throws this exception. ... Microsoft Online Support ... You can send feedback directly to my manager at: ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Theming not working in DLL
    ... the resource ID for a manifest in a DLL is typically different ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.ui)
  • Re: writing to file from web service
    ... Not sure whether you were talking about a legacy ASP.NET web service or a WCF web service. ... We welcome your comments and suggestions about how we can improve the support we provide to you. ... Please feel free to let my manager know what you think of the level of service provided. ... MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business days is acceptable. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Why does this XPath not work
    ... Regarding on the error "Namespace manager or XsltContext needed." ... components only implemented XPATH 1.0 and XSLT 1.0 function set, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.xml)