472,989 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

System.IO.FileNotFoundException: The specified module could not be

I have a remoting application that was developed on a Windows XP SP2 machine
with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it
works great. Problem is, when I install the msi on a W23 server SP2, I get
the following error:

System.Runtime.Remoting.RemotingException: Remoting configuration failed
with the exception 'System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. --->
System.IO.FileNotFoundException: The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at
Ems.Cloud.Common.Security.SecurityClientChannelSin kProvider..ctor(IDictionary
properties, ICollection providerData)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args,
SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args,
SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at
System.Runtime.Remoting.RemotingConfigHandler.Crea teChannelSinkProvider(SinkProviderEntry entry, Boolean bServer)
at
System.Runtime.Remoting.RemotingConfigHandler.Crea teClientChannelSinkProviderChain(ArrayList entries)
at
System.Runtime.Remoting.RemotingConfigHandler.Crea teChannelFromConfigEntry(ChannelEntry entry)
at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfigHandler.DoCo nfiguration(String
filename, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfiguration.Conf igure(String
filename, Boolean ensureSecurity)
at Ems.Cloud.LoggingServer.RegisterRemoteObjects()
at Ems.Cloud.RemotingServer.DoStart()

The application is deployed into C:\Program Files\Ems\Cloud. This is where
the Ems.Cloud.Server.exe, Ems.Cloud.Server.exe.config, & Ems.Cloud.Common.dll
files are stored, but the error states that Ems.Cloud.Common.dll is NotFound,
and only on Windows Server 2003... Why? I'm out of ideas. Here is my config
file...

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="protectedSettings"
type="Ems.Cloud.Configuration.ProtectedSettings, Ems.Cloud.Configuration,
Version=1.0.0.0,Culture=neutral, PublicKeyToken=bd1505632153fa83" />
</configSections>
<system.diagnostics>
<trace autoflush="true" indentsize="2">
<listeners>
<remove name="Default"/>
<add name="EventLogListener"
type="System.Diagnostics.EventLogTraceListener"
initializeData="EmsCloudDebugging" traceOutputOptions="DateTime" />
</listeners>
</trace>
<switches>
<add name="DebugMode" value="1" />
</switches>
</system.diagnostics>
<system.runtime.remoting>
<customErrors mode="off" />
<!--Application Domain provided for EMS Remote Objects, only one
application node allowed-->
<application name="EmsCloudServer">
<service>
<!--Remote-Objects provided within this Application Domain-->
<!--type="Namespace + ClassName, ProjectAssemblyName"-->
<wellknown mode="SingleCall" type="Ems.Cloud.DefaultBase,
Ems.Cloud.Logging" objectUri="LoggingClient" />
</service>
<service>
<wellknown mode="SingleCall" type="Ems.Cloud.PciData,
Ems.Cloud.PciData" objectUri="PciData" />
</service>
<channels>
<!--tcp Channel Provided for access to Remote-Objects-->
<channel ref="tcp" port="5010">
<clientProviders>
<!--When acting as a client, the formatter nodes MUST be listed
before the provider node-->
<!--The formatter must be set to 'typeFilterLevel="Full"' or
you'll get Security Exceptions when passing objects-->
<formatter ref="binary" typeFilterLevel="Full" />
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<!--securityPackage(NTLM, kerberos, negotiate)
impersonationLevel(identify, impersonate, delegate)-->
<!--authenticationLevel(call-nothing, packetIntegrity-signing,
packetPrivacy-encryption-->
<provider
type="Ems.Cloud.Common.Security.SecurityClientChan nelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security.A uthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
</clientProviders>
<serverProviders>
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<!--securityPackage(NTLM, kerberos, negotiate)
impersonationLevel(identify, impersonate, delegate)-->
<!--authenticationLevel(call-nothing, packetIntegrity-signing,
packetPrivacy-encryption-->
<provider
type="Ems.Cloud.Common.Security.SecurityServerChan nelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security.A uthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
<!--On the server-side formatter nodes MUST be listed after the
provider node-->
<!--The formatter must be set to 'typeFilterLevel="Full"' or
you'll get Security Exceptions when passing objects-->
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
<!--http channel provided for Web/ASP based applications-->
<channel ref="http" port="6010">
<clientProviders>
<!--On the server-side formatter nodes MUST be listed after the
provider node-->
<formatter ref="binary" typeFilterLevel="Full" />
<formatter ref="soap" typeFilterLevel="Full" />
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<provider
type="Ems.Cloud.Common.Security.SecurityClientChan nelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security.A uthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
</clientProviders>
<serverProviders>
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<provider
type="Ems.Cloud.Common.Security.SecurityServerChan nelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security.A uthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
<!--On the server-side formatter nodes MUST be listed after the
provider node-->
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Interfaces;Business Logic" />
</assemblyBinding>
</runtime>
</configuration>
Oct 23 '07 #1
2 10924
SOLVED: msvcr71.dll was missing from System32.

I realized that it's not that it can't find Ems.Cloud.Common, it is
Ems.Cloud.Common that can't find a file that IT needs. It happened to be
msvcr71.dll at the point where I was injecting unmanaged code into my C#
project.
Oct 23 '07 #2
Hello,

From your description, I got that you have a remoting application which
encounter some "FileNotFound" exception when deployed on a windows 2k3 box,
correct?

Based on the error callstack, I haven't got the exact file's name, how did
you get "Ems.Cloud.Common.dll is NotFound" is not found? Anyway, for
assembly not founding error, it is recommended to use FusLogVw.exe tool to
trace the assembly binding/locating failures:

#Assembly Binding Log Viewer (Fuslogvw.exe)
http://msdn2.microsoft.com/en-us/lib...c4(VS.71).aspx

By default, it will log all the failed assembly binding/locating and you
can get how the runtime try to locate the certain assembly. In addition, I
found that in the config file, you have the following setting:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Interfaces;Business Logic" />
</assemblyBinding>
</runtime>

maybe the runtime will try probing those sub directory instead of the base
directory(if the strong-named assemblies are not in GAC). For testing, in
addition to using Fuslogvw.exe, you can also try putting the assembly in
GAC or those sub directory(in probing path) to see whether it helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day 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 or complex
project analysis and dump analysis issues. 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/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?c2FtMDFt?= <sa****@newsgroups.nospam>
Subject: System.IO.FileNotFoundException: The specified module could not be
Date: Mon, 22 Oct 2007 18:21:01 -0700
I have a remoting application that was developed on a Windows XP SP2
machine
>with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it
works great. Problem is, when I install the msi on a W23 server SP2, I get
the following error:

System.Runtime.Remoting.RemotingException: Remoting configuration failed
with the exception 'System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. --->
System.IO.FileNotFoundException: The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at
Ems.Cloud.Common.Security.SecurityClientChannelSi nkProvider..ctor(IDictiona
ry
>properties, ICollection providerData)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args,
SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args,
SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder
>binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at
System.Runtime.Remoting.RemotingConfigHandler.Cre ateChannelSinkProvider(Sin
kProviderEntry entry, Boolean bServer)
at
System.Runtime.Remoting.RemotingConfigHandler.Cre ateClientChannelSinkProvid
erChain(ArrayList entries)
at
System.Runtime.Remoting.RemotingConfigHandler.Cre ateChannelFromConfigEntry(
ChannelEntry entry)
at
System.Runtime.Remoting.RemotingConfigHandler.Con figureChannels(RemotingXml
ConfigFileData configData, Boolean ensureSecurity)
at
System.Runtime.Remoting.RemotingConfigHandler.Con figureRemoting(RemotingXml
ConfigFileData configData, Boolean ensureSecurity)'.
at
System.Runtime.Remoting.RemotingConfigHandler.Con figureRemoting(RemotingXml
ConfigFileData configData, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfigHandler.DoCo nfiguration(String
filename, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfiguration.Conf igure(String
filename, Boolean ensureSecurity)
at Ems.Cloud.LoggingServer.RegisterRemoteObjects()
at Ems.Cloud.RemotingServer.DoStart()

The application is deployed into C:\Program Files\Ems\Cloud. This is where
the Ems.Cloud.Server.exe, Ems.Cloud.Server.exe.config, &
Ems.Cloud.Common.dll
>files are stored, but the error states that Ems.Cloud.Common.dll is
NotFound,
>and only on Windows Server 2003... Why? I'm out of ideas. Here is my
config
>file...

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="protectedSettings"
type="Ems.Cloud.Configuration.ProtectedSettings , Ems.Cloud.Configuration,
Version=1.0.0.0,Culture=neutral, PublicKeyToken=bd1505632153fa83" />
</configSections>
<system.diagnostics>
<trace autoflush="true" indentsize="2">
<listeners>
<remove name="Default"/>
<add name="EventLogListener"
type="System.Diagnostics.EventLogTraceListener"
initializeData="EmsCloudDebugging" traceOutputOptions="DateTime" />
</listeners>
</trace>
<switches>
<add name="DebugMode" value="1" />
</switches>
</system.diagnostics>
<system.runtime.remoting>
<customErrors mode="off" />
<!--Application Domain provided for EMS Remote Objects, only one
application node allowed-->
<application name="EmsCloudServer">
<service>
<!--Remote-Objects provided within this Application Domain-->
<!--type="Namespace + ClassName, ProjectAssemblyName"-->
<wellknown mode="SingleCall" type="Ems.Cloud.DefaultBase,
Ems.Cloud.Logging" objectUri="LoggingClient" />
</service>
<service>
<wellknown mode="SingleCall" type="Ems.Cloud.PciData,
Ems.Cloud.PciData" objectUri="PciData" />
</service>
<channels>
<!--tcp Channel Provided for access to Remote-Objects-->
<channel ref="tcp" port="5010">
<clientProviders>
<!--When acting as a client, the formatter nodes MUST be
listed
>before the provider node-->
<!--The formatter must be set to 'typeFilterLevel="Full"' or
you'll get Security Exceptions when passing objects-->
<formatter ref="binary" typeFilterLevel="Full" />
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<!--securityPackage(NTLM, kerberos, negotiate)
impersonationLevel(identify, impersonate, delegate)-->
<!--authenticationLevel(call-nothing, packetIntegrity-signing,
packetPrivacy-encryption-->
<provider
type="Ems.Cloud.Common.Security.SecurityClientCha nnelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security. AuthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
</clientProviders>
<serverProviders>
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<!--securityPackage(NTLM, kerberos, negotiate)
impersonationLevel(identify, impersonate, delegate)-->
<!--authenticationLevel(call-nothing, packetIntegrity-signing,
packetPrivacy-encryption-->
<provider
type="Ems.Cloud.Common.Security.SecurityServerCha nnelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security. AuthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
<!--On the server-side formatter nodes MUST be listed after
the
>provider node-->
<!--The formatter must be set to 'typeFilterLevel="Full"' or
you'll get Security Exceptions when passing objects-->
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
<!--http channel provided for Web/ASP based applications-->
<channel ref="http" port="6010">
<clientProviders>
<!--On the server-side formatter nodes MUST be listed after
the
>provider node-->
<formatter ref="binary" typeFilterLevel="Full" />
<formatter ref="soap" typeFilterLevel="Full" />
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<provider
type="Ems.Cloud.Common.Security.SecurityClientCha nnelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security. AuthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
</clientProviders>
<serverProviders>
<!--Custom EMS Channel Sink that provides integrated AD
Security-->
<provider
type="Ems.Cloud.Common.Security.SecurityServerCha nnelSinkProvider,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" securityPackage="negotiate"
impersonationLevel="delegate" authenticationLevel="packetPrivacy"
authenticationHandler="Ems.Cloud.Common.Security. AuthenticationHandler,
Ems.Cloud.Common, Version=1.0.1.5, Culture=neutral,
PublicKeyToken=bd1505632153fa83" />
<!--On the server-side formatter nodes MUST be listed after
the
>provider node-->
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Interfaces;Business Logic" />
</assemblyBinding>
</runtime>
</configuration>
Oct 24 '07 #3

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

Similar topics

2
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All...
1
by: Shemesh | last post by:
Is anyone can help me to find out why im getting an error: ******** An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: File or...
1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
4
by: Ram | last post by:
Hey, I have a Com+ application (Inherits ServicedComponent). In this application, I needed to use one of the ADSI's COM Object, \ So I used the - TlbImp.exe. After I created the Tlb dll, I gave...
3
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
2
by: Dave Johnston | last post by:
Hey, I'm trying to get SmtpMail to work. Problem is, each time I call SmtpMail.Send(msg) it throws this exception: The specified module could not be found. Description: An unhandled exception...
1
by: Olav Tollefsen | last post by:
I get the included error message when trying to run my ASP.NET application under Windows Server 2003 (with all updates installed). How can I troubleshoot this? Olav File or assembly name...
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.