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> 2 10973
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.
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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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?
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |