all groups > visual studio .net enterprise tools > november 2004 >
You're in the

visual studio .net enterprise tools

group:

Trouble installing EIF. Service fails to start


Trouble installing EIF. Service fails to start nagesh
11/9/2004 9:03:06 AM
visual studio .net enterprise tools: Hello,

I have installed the EIF on a Winndows 2000 Server SP4 with .Net FW Ver 1.1
Service Does not staart and I get the Following error in Application log.

Event Type: Error
Event Source: Windows Trace Session Manager
Event Category: None
Event ID: 0
Date: 11/9/2004
Time: 9:53:56 AM
User: N/A
Computer: NSOMASUNDARAMWS
Description:
The Windows Trace Session Manager service could not be started. If the
error details below indicate a File Mapping exception, please review the
Enterprise Instrumentation readme for a description of this known issue and
steps to resolve or workaround it. The error returned was:

System.InvalidOperationException: Cannot create file mapping.
at System.Diagnostics.FileMapping.Initialize()
at System.Diagnostics.FileMapping..ctor()
at System.Diagnostics.SharedPerformanceCounter.get_FileView()
at System.Diagnostics.SharedPerformanceCounter.ResolveOffset(Int32 offset)
at System.Diagnostics.SharedPerformanceCounter.GetCounter(String
categoryName, String counterName, String instanceName)
at System.Diagnostics.SharedPerformanceCounter..ctor(String categoryName,
String counterName, String instanceName)
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName,
String counterName, String instanceName, Boolean readOnly)
at
Microsoft.EnterpriseInstrumentation.TraceSessions.TraceSessionManager..ctor()
at
Microsoft.EnterpriseInstrumentation.TraceSessions.TraceSessionManager.Main(String[] arg)

In the System log the error shows up as

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 11/9/2004
Time: 10:08:23 AM
User: N/A
Computer: NSOMASUNDARAMWS
Description:
The Windows Trace Session Manager service failed to start due to the
following error:
The service did not respond to the start or control request in a timely
fashion.


Any help is appreciated.

Thank you.

--
Nagesh T S
RE: Trouble installing EIF. Service fails to start mikehayt_ NO[at]SPAM online.microsoft.com
11/17/2004 5:44:03 PM
If you have a read of the readme.htm file that comes with EIF - it lists
this issue and action to resolve the problem.

I'll paste it into this posting


Installing .NET Framework 1.0 and 1.1 on a single machine can cause setup
failure or break existing applications

There is a known issue with using Performance Counters via the
System.Diagnostics namespace in the .NET Framework, on a machine which has
versions 1.0 and 1.1 installed. This has been identified as a problem in
the .NET Framework 1.0, and may result in a setup failure when installing
Enterprise Instrumentation. If impacted by this issue, please contact
Product Support Services to request a hotfix which can be referenced by
article ID 813350.

If a .NET Framework 1.1 application reads or writes performance counter
information via the PerformanceCounter class, any subsequent attempt to
read or write performance counter information by a .NET Framework 1.0
application will fail with an exception. This can occur even if the
applications are referencing completely unrelated performance counters.
However, if a .NET Framework 1.0 application reads or writes performance
counter information first, all subsequent attempts by .NET Framework 1.1
applications will succeed.

On a machine which has both versions of the .NET Framework installed,
Enterprise Instrumentation configures the Trace Session Manager Windows
Service to use the .NET Framework 1.0 when loading. If another application
or service which runs on the .NET Framework 1.1 (and which reads or writes
performance counters) is executed before the Trace Session Manager service,
it might result in the Trace Session Manager being unable to start. The
following error usually indicates that the Trace Session Manager or other
.NET Framework 1.0 application is being affected by this issue:

System.InvalidOperationException: Cannot create file mapping.

at System.Diagnostics.FileMapping.Initialize() at
System.Diagnostics.FileMapping..ctor()

at System.Diagnostics.SharedPerformanceCounter.get_FileView()

at System.Diagnostics.SharedPerformanceCounter.ResolveOffset(Int32 offset)

at System.Diagnostics.SharedPerformanceCounter.GetCounter(String
categoryName, String counterName, String instanceName)

at System.Diagnostics.SharedPerformanceCounter..ctor(String categoryName,
String counterName, String instanceName)

at System.Diagnostics.PerformanceCounter.Initialize()

at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String
counterName, String instanceName, Boolean readOnly)

...

If a .NET Framework 1.1 application is running and publishing performance
counters when Enterprise Instrumentation is installed, it may result in a
setup failure due to the Trace Session Manager being unable to start as
part of the initial setup. In this case, the error described above will be
written to the Application Event Log, indicating that the Trace Session
Manager service was unable to start. In this scenario, Enterprise
Instrumentation setup will not roll-back, and has been completed with the
exception of starting this service. There are a number of ways to
workaround this issue:

After the installation completes (indicating failure), ensure that the
Trace Session Manager service is configured to start before any .NET
Framework 1.1 application or service which use performance counters, and
reboot the machine. Confirm that the Trace Session Manager has started
successfully.

Modify the Trace Session Manager configuration file to use the .NET
Framework 1.1 when loading. This must be done only when there is no risk
that a .NET Framework 1.0 application might subsequently run on the same
machine, and publish performance counters. This configuration change
should be made to the TraceSessionManager.exe.config file, which is located
in the \bin\trace service\ subfolder of the Enterprise Instrumentation
installation folder. The two <supportedRuntime ...> elements need to be
reversed, as follows, in order to ensure the Trace Session Manager uses the
.NET Framework 1.1, when both versions are installed:

<supportedRuntime version="v1.1.4322" />

<supportedRuntime version="v1.0.3705" />

In addition to potentially affecting the Trace Session Manager, this issue
could affect instrumented applications running against the .NET Framework
1.0. For instance, when an instrumented assembly is installed using
installutil.exe, Enterprise Instrumentation registers performance counters
for the event sources within the assembly. This will fail if a .NET
Framework 1.1 application is currently running and reading or writing
performance counter information. The following installutil.exe console
output provides an example of this error:

Creating an EnterpriseInstrumentation configuration file for this assembly
and its referenced assemblies...

Unhandled Exception: System.TypeInitializationException: The type
initializer for "Microsoft.EnterpriseInstrumentation.EventSource" threw an
exception. ---> System.TypeInitializationException: The type initializer
for "EventSourceCounters"threw an exception. --->
System.InvalidOperationException: Cannot create file mapping.

at System.Diagnostics.FileMapping.Initialize()

at System.Diagnostics.FileMapping..ctor()

at System.Diagnostics.SharedPerformanceCounter.get_FileView()

at System.Diagnostics.SharedPerformanceCounter.ResolveOffset(Int32 offset)

at System.Diagnostics.SharedPerformanceCounter.GetCounter(String
categoryName, String counterName, String instanceName)

...




--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
| Thread-Topic: Trouble installing EIF. Service fails to start
| thread-index: AcTGfft/VCmofFX4TcyW7PFq9ZUCsg==
| X-WBNR-Posting-Host: 209.243.103.104
| From: =?Utf-8?B?bmFnZXNo?= <nagesh@discussions.microsoft.com>
| Subject: Trouble installing EIF. Service fails to start
| Date: Tue, 9 Nov 2004 09:03:06 -0800
| Lines: 60
| Message-ID: <CBC9C989-387E-4E3F-AF87-D44CB8E50379@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.vsnet.enterprise.tools
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.enterprise.tools:2846
| X-Tomcat-NG: microsoft.public.vsnet.enterprise.tools
|
| Hello,
|
Re: Trouble installing EIF. Service fails to start nagesh T S
11/18/2004 10:29:06 AM
Thanks Mike. I did not realize i had both versions installed on my pc untill
now. I think i'll have to wait for the next release of the .net framework
untill i can make progress on this.

Nagesh

[quoted text, click to view]
AddThis Social Bookmark Button