找不到组装'Microsoft.Practices.ServiceLocation'



我已经在IIS 7上部署了使用PrismMEFWPF browser application。但是在IE下载完应用程序文件后,我遇到了以下错误。在我忘记之前,我应该提到它在调试模式下工作得很好,当我通过IE浏览xbap文件时也是如此。我在一台Windows 7 sp1的机器上使用VS2010 sp1

下面是详细的错误:

System.Runtime.Serialization.SerializationException: Unable to find assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at System.AppDomain.nCreateInstance(String friendlyName, AppDomainSetup setup, Evidence providedSecurityInfo, Evidence creatorsSecurityInfo, IntPtr parentSecurityDescriptor)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstanceHelper(AppDomainSetup adSetup)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
   at System.Windows.Interop.PresentationApplicationActivator.CreateInstance(ActivationContext actCtx)
   at System.Activator.CreateInstance(ActivationContext activationContext)
   at System.Deployment.Application.DeploymentManager.ExecuteNewDomain()
   at System.Deployment.Application.InPlaceHostingManager.Execute()
   at MS.Internal.AppModel.XappLauncherApp.ExecuteDownloadedApplication()
   at System.Windows.Interop.DocObjHost.RunApplication(ApplicationRunner runner)
   at MS.Internal.AppModel.XappLauncherApp.XappLauncherApp_Exit(Object sender, ExitEventArgs e)
   at System.Windows.Application.OnExit(ExitEventArgs e)
   at System.Windows.Application.DoShutdown()
   at System.Windows.Application.ShutdownImpl()
   at System.Windows.Application.ShutdownCallback(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.StartDispatcherInBrowser(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

PresentationHost.exe v3.0.6920.4902 built by: NetFXw7 - C:WindowsSystem32PresentationHost.exe
ntdll.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSYSTEM32ntdll.dll
kernel32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32kernel32.dll
KERNELBASE.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32KERNELBASE.dll
ADVAPI32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32ADVAPI32.dll
msvcrt.dll v7.0.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32msvcrt.dll
sechost.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSYSTEM32sechost.dll
RPCRT4.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32RPCRT4.dll
USER32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32USER32.dll
GDI32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32GDI32.dll
LPK.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32LPK.dll
USP10.dll v1.0626.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32USP10.dll
ole32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32ole32.dll
OLEAUT32.dll v6.1.7600.16385 - C:Windowssystem32OLEAUT32.dll
mscoree.dll v4.0.31106.0 (Main.031106-0000) - C:WindowsSystem32mscoree.dll
SHLWAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32SHLWAPI.dll
WININET.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32WININET.dll
Normaliz.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32Normaliz.dll
urlmon.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32urlmon.dll
CRYPT32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32CRYPT32.dll
MSASN1.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32MSASN1.dll
iertutil.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32iertutil.dll
SHELL32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32SHELL32.dll
IMM32.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32IMM32.DLL
MSCTF.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32MSCTF.dll
PresentationHost_v0400.dll v4.0.30319.1 built by: RTMRel -C:WindowsMicrosoft.NETFrameworkv4.0.30319WPFPresentationHost_v0400.dll
MSVCR100_CLR0400.dll v10.00.30319.1 - C:WindowsSystem32MSVCR100_CLR0400.dll
VERSION.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32VERSION.dll
PSAPI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32PSAPI.DLL
CRYPTBASE.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32CRYPTBASE.dll
uxtheme.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32uxtheme.dll
CBTLaunch.dll v3.7.0.32 - C:Program FilesRed GateSQL Prompt 4CBTLaunch.dll
CLBCatQ.DLL v2001.12.8530.16385 (win7_rtm.090713-1255) - C:Windowssystem32CLBCatQ.DLL
CRYPTSP.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32CRYPTSP.dll
rsaenh.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32rsaenh.dll
RpcRtRemote.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32RpcRtRemote.dll
dwmapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32dwmapi.dll
comctl32.dll v6.10 (win7_rtm.090713-1255) - C:WindowsWinSxSx86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfccomctl32.dll
SspiCli.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32SspiCli.dll
profapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32profapi.dll
ws2_32.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32ws2_32.DLL
NSI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32NSI.dll
dnsapi.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32dnsapi.DLL
iphlpapi.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32iphlpapi.DLL
WINNSI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32WINNSI.DLL
RASAPI32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32RASAPI32.dll
rasman.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32rasman.dll
rtutils.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32rtutils.dll
sensapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32sensapi.dll
peerdist.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32peerdist.dll
USERENV.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32USERENV.dll
AUTHZ.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32AUTHZ.dll

mswsock.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32mswsock.dll
wshtcpip.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32wshtcpip.dll
NLAapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32NLAapi.dll
rasadhlp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32rasadhlp.dll
dfshim.dll v4.0.31106.0 (Main.031106-0000) - C:WindowsSystem32dfshim.dll
mscoreei.dll v4.0.30319.1 (RTMRel.030319-0100) - C:WindowsMicrosoft.NETFrameworkv4.0.30319mscoreei.dll
clr.dll v4.0.30319.225 (RTMGDR.030319-2200) - C:WindowsMicrosoft.NETFrameworkv4.0.30319clr.dll
wship6.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32wship6.dll
fwpuclnt.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32fwpuclnt.dll
msxml3.dll v8.110.7600.16385 - C:WindowsSystem32msxml3.dll
ieproxy.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:Program FilesInternetExplorerieproxy.dll
SXS.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32SXS.DLL
PresentationHostProxy.dll v4.0.31106.0 built by: Main - C:WindowsSystem32PresentationHostProxy.dll
mshtml.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32mshtml.dll
msls31.dll v3.10.349.0 - C:WindowsSystem32msls31.dll
mlang.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32mlang.dll
msimtf.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32msimtf.dll
IEFRAME.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32IEFRAME.dll
OLEACC.dll v7.0.0.0 (win7_rtm.090713-1255) - C:WindowsSystem32OLEACC.dll
jscript.dll v5.8.7600.16385 - C:WindowsSystem32jscript.dll
ImgUtil.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32ImgUtil.dll
pngfilt.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32pngfilt.dll
mscorlib.ni.dll v4.0.30319.225 (RTMGDR.030319-2200) - C:WindowsassemblyNativeImages_v4.0.30319_32mscorlibeb4e1e70734f6efb9c7de7ec5f452c9emscorlib.ni.dll
nlssorting.dll v4.0.30319.225 (RTMGDR.030319-2200) - C:WindowsMicrosoft.NETFrameworkv4.0.30319nlssorting.dll
System.ni.dll v4.0.30319.225 built by: RTMGDR - C:WindowsassemblyNativeImages_v4.0.30319_32System4d67e7b436c61b8141d19f99f7d2c75eSystem.ni.dll
WindowsBase.ni.dll v4.0.30319.225 built by: RTMGDR - C:WindowsassemblyNativeImages_v4.0.30319_32WindowsBasebde920dbf9e20e926b60106042e16d64WindowsBase.ni.dll
PresentationCore.ni.dll v4.0.30319.225 built by: RTMGDR - C:WindowsassemblyNativeImages_v4.0.30319_32PresentationCore887688af9665ecb951b418d5982a3c5dPresentationCore.ni.dll
PresentationFramework.ni.dll v4.0.30319.225 - C:WindowsassemblyNativeImages_v4.0.30319_32PresentationFramewo#5f8ab715f37b56cc76c8a130dbc6e74bPresentationFramework.ni.dll
dwrite.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32dwrite.dll
wpfgfx_v0400.dll v4.0.30319.225 built by: RTMGDR - C:WindowsMicrosoft.NETFrameworkv4.0.30319WPFwpfgfx_v0400.dll
PresentationNative_v0400.dll v4.0.30319.1 built by: RTMRel - C:WindowsMicrosoft.NETFrameworkv4.0.30319WPFPresentationNative_v0400.dll
msimg32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32msimg32.dll
System.Xaml.ni.dll v4.0.30319.1 built by: RTMRel - C:WindowsassemblyNativeImages_v4.0.30319_32System.Xamlc8167f224c2ac6fdba796bd53cdd338System.Xaml.ni.dll
System.Deployment.ni.dll v4.0.30319.1 (RTMRel.030319-0100) - C:WindowsassemblyNativeImages_v4.0.30319_32System.Deploymentf2aa6fd240cb912568c2b6811b101726System.Deployment.ni.dll
shfolder.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32shfolder.dll
System.Configuration.ni.dll v4.0.30319.1 (RTMRel.030319-0100) - C:WindowsassemblyNativeImages_v4.0.30319_32System.Configuration9ea5f775ad6b7af3e326a08e26ff06a3System.Configuration.ni.dll
System.Xml.ni.dll v4.0.30319.225 built by: RTMGDR - C:WindowsassemblyNativeImages_v4.0.30319_32System.Xmlc27f2137e0e6185d243251544f9ec0c9System.Xml.ni.dll
winhttp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32winhttp.dll
webio.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32webio.dll
credssp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32credssp.dll
dhcpcsvc6.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32dhcpcsvc6.DLL
dhcpcsvc.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32dhcpcsvc.DLL
System.Security.ni.dll v4.0.30319.1 (RTMRel.030319-0100) - C:WindowsassemblyNativeImages_v4.0.30319_32System.Security31b164d1230fb8b86e10858ba96e6cd5System.Security.ni.dll
cryptnet.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32cryptnet.dll
WLDAP32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32WLDAP32.dll
dsrole.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32dsrole.dll
clrjit.dll v4.0.30319.225 (RTMGDR.030319-2200) - C:WindowsMicrosoft.NETFrameworkv4.0.30319clrjit.dll
System.Drawing.ni.dll v4.0.30319.1 built by: RTMRel - C:WindowsassemblyNativeImages_v4.0.30319_32System.Drawingc751ad524dc3ec593de1883b9f0ad0aeSystem.Drawing.ni.dll
System.Windows.Forms.ni.dll v4.0.30319.1 built by: RTMRel - C:WindowsassemblyNativeImages_v4.0.30319_32System.Windows.Formsd43f6750bf5e42fd2183991957147df1System.Windows.Forms.ni.dll
GPAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32GPAPI.dll
Cabinet.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32Cabinet.dll
DEVRTL.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32DEVRTL.dll
ncrypt.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32ncrypt.dll
bcrypt.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32bcrypt.dll
bcryptprimitives.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:Windowssystem32bcryptprimitives.dll
gdiplus.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsWinSxSx86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16385_none_72fc7cbf861225cagdiplus.dll
WindowsCodecs.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:WindowsSystem32WindowsCodecs.dll
System.Core.ni.dll v4.0.30319.225 built by: RTMGDR - C:WindowsassemblyNativeImages_v4.0.30319_32System.Core58cbae39cc6370050c776b0ffeffcab3System.Core.ni.dll
diasymreader.dll v10.0.30319.1 built by: RTMRel - C:WindowsMicrosoft.NETFrameworkv4.0.30319diasymreader.dll

也许您应该将此接口的程序集添加到已部署的程序集中?Prism不是。net框架的一部分,因此需要与应用程序一起安装/部署。

您可以从https://servicelocation.codeplex.com/

下载Microsoft.Practices.ServiceLocation.dll文件

相关内容

  • 没有找到相关文章

最新更新