1.    02 Jun 2009 #1
    Adam Guest

    System.net tracing


    Hi,

    I have been using system.net tracing with powershell v2 without issue on my
    Vista desktop without issue.

    However, when I try it on w2k3 server sp2 and powershell v1 I get no file
    created and nothing in dbgview. I have tried several servers with different
    builds. Does anyone know if there are issues using system.net tracing with
    powershell v1 on w2k3 sp2?

    I am using the powershell.exe.config file below

    Thanks.

    <configuration>
    <system.diagnostics>
    <sources>
    <source name="System.Net" tracemode="includehex"
    maxdatasize="1024">
    <listeners>
    <add name="System.Net"/>
    </listeners>
    </source>
    <source name="System.Net.Sockets">
    <listeners>
    <add name="System.Net"/>
    </listeners>
    </source>
    <source name="System.Net.Cache">
    <listeners>
    <add name="System.Net"/>
    </listeners>
    </source>
    </sources>
    <switches>
    <add name="System.Net" value="Verbose"/>
    <add name="System.Net.Sockets" value="Verbose"/>
    <add name="System.Net.Cache" value="Verbose"/>
    </switches>
    <sharedListeners>
    <add name="System.Net"
    type="System.Diagnostics.TextWriterTraceListener"
    initializeData="network.log"
    />
    </sharedListeners>
    <trace autoflush="true"/>
    </system.diagnostics>
    </configuration>

      My System SpecsSystem Spec

  2.    05 Jun 2009 #2
    RichS [MVP] Guest

    RE: System.net tracing


    Check that you have the same versions of .NET on Vista and Win 2003
    --
    Richard Siddaway
    All scripts are supplied "as is" and with no warranty
    PowerShell MVP
    Blog: http://richardsiddaway.spaces.live.com/
    PowerShell User Group: http://www.get-psuguk.org.uk


    "Adam" wrote:

    > Hi,
    >
    > I have been using system.net tracing with powershell v2 without issue on my
    > Vista desktop without issue.
    >
    > However, when I try it on w2k3 server sp2 and powershell v1 I get no file
    > created and nothing in dbgview. I have tried several servers with different
    > builds. Does anyone know if there are issues using system.net tracing with
    > powershell v1 on w2k3 sp2?
    >
    > I am using the powershell.exe.config file below
    >
    > Thanks.
    >
    > <configuration>
    > <system.diagnostics>
    > <sources>
    > <source name="System.Net" tracemode="includehex"
    > maxdatasize="1024">
    > <listeners>
    > <add name="System.Net"/>
    > </listeners>
    > </source>
    > <source name="System.Net.Sockets">
    > <listeners>
    > <add name="System.Net"/>
    > </listeners>
    > </source>
    > <source name="System.Net.Cache">
    > <listeners>
    > <add name="System.Net"/>
    > </listeners>
    > </source>
    > </sources>
    > <switches>
    > <add name="System.Net" value="Verbose"/>
    > <add name="System.Net.Sockets" value="Verbose"/>
    > <add name="System.Net.Cache" value="Verbose"/>
    > </switches>
    > <sharedListeners>
    > <add name="System.Net"
    > type="System.Diagnostics.TextWriterTraceListener"
    > initializeData="network.log"
    > />
    > </sharedListeners>
    > <trace autoflush="true"/>
    > </system.diagnostics>
    > </configuration>
    >
      My System SpecsSystem Spec

  3.    06 Jun 2009 #3
    Adam Guest

    Re: System.net tracing


    Hi Richard,

    both versions have .Net 2 and I did run filemon and saw it accessing the
    version 2 .net dll's. This functionality was supposedly introduced in .net
    framework v2 and so I would have thought it should work both v1 and v2 of
    powershell as they are both built on top of v2. I thought there might have
    been something I was missing on the server side but I haven't found
    anything. I think I will park this one until I have more time to build some
    test environments.

    Cheers,

    Adam.

    "RichS [MVP]" <RichSMVP@xxxxxx> wrote in message
    news:F6B5F729-182D-4F88-B27E-0FAF7A351116@xxxxxx

    > Check that you have the same versions of .NET on Vista and Win 2003
    > --
    > Richard Siddaway
    > All scripts are supplied "as is" and with no warranty
    > PowerShell MVP
    > Blog: http://richardsiddaway.spaces.live.com/
    > PowerShell User Group: http://www.get-psuguk.org.uk
    >
    >
    > "Adam" wrote:
    >

    >> Hi,
    >>
    >> I have been using system.net tracing with powershell v2 without issue on
    >> my
    >> Vista desktop without issue.
    >>
    >> However, when I try it on w2k3 server sp2 and powershell v1 I get no file
    >> created and nothing in dbgview. I have tried several servers with
    >> different
    >> builds. Does anyone know if there are issues using system.net tracing
    >> with
    >> powershell v1 on w2k3 sp2?
    >>
    >> I am using the powershell.exe.config file below
    >>
    >> Thanks.
    >>
    >> <configuration>
    >> <system.diagnostics>
    >> <sources>
    >> <source name="System.Net" tracemode="includehex"
    >> maxdatasize="1024">
    >> <listeners>
    >> <add name="System.Net"/>
    >> </listeners>
    >> </source>
    >> <source name="System.Net.Sockets">
    >> <listeners>
    >> <add name="System.Net"/>
    >> </listeners>
    >> </source>
    >> <source name="System.Net.Cache">
    >> <listeners>
    >> <add name="System.Net"/>
    >> </listeners>
    >> </source>
    >> </sources>
    >> <switches>
    >> <add name="System.Net" value="Verbose"/>
    >> <add name="System.Net.Sockets" value="Verbose"/>
    >> <add name="System.Net.Cache" value="Verbose"/>
    >> </switches>
    >> <sharedListeners>
    >> <add name="System.Net"
    >> type="System.Diagnostics.TextWriterTraceListener"
    >> initializeData="network.log"
    >> />
    >> </sharedListeners>
    >> <trace autoflush="true"/>
    >> </system.diagnostics>
    >> </configuration>
    >>
      My System SpecsSystem Spec


Similar Threads
Thread Forum
Tracing where emails have been sent from?
I suspect something dodgy and think I am being targeted for retaliation in emails, Can you find out if 2 seperate emails, with different email...
Vista mail
tracing printed documents
Hi, i have a project to deploy active directory in a network of 8000 users, they are to print some shared files, i need to: 1- be able to...
.NET General
.NET Network tracing in powershell?
Just came across this while reading up on Net.Webclient. Can I do this in Powershell? http://msdn2.microsoft.com/en-us/library/hyb3xww8.aspx ...
PowerShell
Tracing Cmdlets and providers
Is there a way to hook into the Set-TraceSource/Trace-Command infrastructure so that our Cmdlets and Providers can output trace information?
PowerShell
Looking for a network tracing plugin
I've looked at nSoftware's NetCmdlets, and those are cool. I'm in need of a network tracing library that can actually decode packets and all. I...
PowerShell
tracing
could some one tell me the correct command line for turning on tracing for network adaptor i was told this but wont work netsh lan set trac * en...
Vista General
Tracing Helpfile resolution?
Anyone have a quick command trace scheme that lets me see how help file resolution is done?
PowerShell

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 03:26.
    .