datagrid deployment

Dec 2, 2008 at 8:29 PM
I've created a new WPFbrowser application with only the datagrid.  I can publish and run the application from my machine, but I haven't been able to deploy to anyone.

Is there any special instructions for deploying a WPF application with the WPFtoolkit?  I've had a couple of other software engineers try to deploy, and they didn't have any luck either.  Below is the error message I'm getting:

Startup URI: \\z98237\share\Test\WpfBrowserApplication1.xbap
Application Identity: file://z98237/share/Test/WpfBrowserApplication1.xbap#WpfBrowserApplication1.xbap, Version=1.0.0.6, Culture=neutral, PublicKeyToken=a5aad8c6f017a20d, processorArchitecture=msil/WpfBrowserApplication1.exe, Version=1.0.0.6, Culture=neutral, PublicKeyToken=a5aad8c6f017a20d, processorArchitecture=msil, type=win32

System.Windows.Markup.XamlParseException:  Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.  Error in markup file 'WpfBrowserApplication1;component/page1.xaml'. ---> System.TypeLoadException: Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at WpfBrowserApplication1.Page1.System_Windows_Markup_IComponentConnector_Connect(Int32 connectionId, Object target)
   at System.Windows.Markup.BamlRecordReader.ElementInitialize(Object element, String name)
   at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
   at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
   at System.Windows.Markup.BamlRecordReader.ThrowException(String message, Exception innerException)
   at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
   at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
   at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
   at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
   at System.Windows.Markup.TreeBuilder.Parse()
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState)
   at System.Windows.Navigation.NavigationService.DoNavigate(Uri source, NavigationMode f, Object navState)
   at System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, 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)
   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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, 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)
   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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

-----------------------

PresentationHost.exe v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - c:\WINDOWS\system32\PresentationHost.exe
ntdll.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\ntdll.dll
kernel32.dll v5.1.2600.3119 (xpsp_sp2_gdr.070416-1301) - C:\WINDOWS\system32\kernel32.dll
ADVAPI32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\ADVAPI32.dll
RPCRT4.dll v5.1.2600.3173 (xpsp_sp2_qfe.070709-0052) - C:\WINDOWS\system32\RPCRT4.dll
USER32.dll v5.1.2600.3099 (xpsp_sp2_gdr.070308-0222) - C:\WINDOWS\system32\USER32.dll
GDI32.dll v5.1.2600.3316 (xpsp_sp2_gdr.080219-1316) - C:\WINDOWS\system32\GDI32.dll
msvcrt.dll v7.0.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\msvcrt.dll
ole32.dll v5.1.2600.2726 (xpsp_sp2_gdr.050725-1528) - C:\WINDOWS\system32\ole32.dll
SHELL32.dll v6.00.2900.3241 (xpsp_sp2_qfe.071025-1245) - C:\WINDOWS\system32\SHELL32.dll
SHLWAPI.dll v6.00.2900.3121 (xpsp_sp2_qfe.070418-1302) - C:\WINDOWS\system32\SHLWAPI.dll
urlmon.dll v7.00.6000.16735 (vista_gdr.080820-1506) - C:\WINDOWS\system32\urlmon.dll
OLEAUT32.dll v5.1.2600.3266 - C:\WINDOWS\system32\OLEAUT32.dll
iertutil.dll v7.00.6000.16735 (vista_gdr.080820-1506) - C:\WINDOWS\system32\iertutil.dll
mscoree.dll v2.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\system32\mscoree.dll
WININET.dll v7.00.6000.16735 (vista_gdr.080820-1506) - C:\WINDOWS\system32\WININET.dll
Normaliz.dll v6.0.5441.0 (winmain(wmbla).060628-1735) - C:\WINDOWS\system32\Normaliz.dll
IMM32.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\IMM32.DLL
comctl32.dll v6.0 (xpsp.060825-0040) - C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
uxtheme.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\uxtheme.dll
MSCTF.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\MSCTF.dll
CLBCATQ.DLL v2001.12.4414.308 - c:\WINDOWS\system32\CLBCATQ.DLL
COMRes.dll v2001.12.4414.258 - c:\WINDOWS\system32\COMRes.dll
VERSION.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\VERSION.dll
xpsp2res.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\xpsp2res.dll
Secur32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\Secur32.dll
ws2_32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\ws2_32.dll
WS2HELP.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\WS2HELP.dll
dfshim.dll v2.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\system32\dfshim.dll
MSVCR80.dll v8.00.50727.1433 - C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
mscorwks.dll v2.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
PresentationHostDLL.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - c:\WINDOWS\Microsoft.Net\Framework\v3.0\WPF\PresentationHostDLL.dll
mscorlib.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\32e6f703c114f3a971cbe706586e3655\mscorlib.ni.dll
System.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\ba0e3a22211ba7343e0116b051f2965a\System.ni.dll
WindowsBase.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\WindowsBase\0703021437c2ec71213a6b701771be86\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationCore\011f8e31d197b4ccb6a61c2267a38e5c\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\60421dda88800b14dc101ed9dca422fe\PresentationFramework.ni.dll
msctfime.ime v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\msctfime.ime
msi.dll v3.1.4000.4039 - c:\WINDOWS\system32\msi.dll
actxprxy.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\actxprxy.dll
SXS.DLL v5.1.2600.3019 (xpsp_sp2_gdr.061019-0414) - c:\WINDOWS\system32\SXS.DLL
PresentationHostProxy.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - c:\WINDOWS\system32\PresentationHostProxy.dll
ieproxy.dll v7.00.5730.11 (winmain(wmbla).061017-1135) - C:\Program Files\Internet Explorer\ieproxy.dll
PresentationUI.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationUI\6d2716a55eb8ce6fc4cbf83f3ab329e3\PresentationUI.ni.dll
System.Deployment.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Deployment\c7dea4895e1fa33d65e448c03de48d26\System.Deployment.ni.dll
shfolder.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\shfolder.dll
rsaenh.dll v5.1.2600.2161 (xpsp.040706-1629) - c:\WINDOWS\system32\rsaenh.dll
System.Configuration.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\eee9b48577689e92db5a7b5c5de98d9b\System.Configuration.ni.dll
System.Xml.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Xml\c98cb65a79cfccb44ea727ebe4593ede\System.Xml.ni.dll
MilCore.dll v6.0.6001.17014 (lh_tools_devdiv_wpf.071009-1109) - c:\WINDOWS\system32\MilCore.dll
PSAPI.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\PSAPI.DLL
WINMM.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\WINMM.dll
WindowsCodecs.dll v6.0.5840.16388 (winmain(wmbla).061024-1209) - c:\WINDOWS\system32\WindowsCodecs.dll
System.Security.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Security\2b5994269cc5b996231c9b21afea9a91\System.Security.ni.dll
PresentationFramework.Luna.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\3f18bff5107c9a8accae6c248fdf3c2e\PresentationFramework.Luna.ni.dll
CRYPT32.dll v5.131.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\CRYPT32.dll
MSASN1.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\MSASN1.dll
cryptnet.dll v5.131.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\cryptnet.dll
WLDAP32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WLDAP32.dll
WINHTTP.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\WINHTTP.dll
SensApi.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\SensApi.dll
USERENV.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\USERENV.dll
NETAPI32.dll v5.1.2600.3462 (xpsp_sp2_gdr.081015-1244) - C:\WINDOWS\system32\NETAPI32.dll
mswsock.dll v5.1.2600.3394 (xpsp_sp2_qfe.080620-1259) - C:\WINDOWS\system32\mswsock.dll
hnetcfg.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\hnetcfg.dll
wshtcpip.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\System32\wshtcpip.dll
PresentationNative_v0300.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - c:\WINDOWS\system32\PresentationNative_v0300.dll
NTDSAPI.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\NTDSAPI.DLL
DNSAPI.dll v5.1.2600.3394 (xpsp_sp2_qfe.080620-1259) - c:\WINDOWS\system32\DNSAPI.dll
kerberos.dll v5.1.2600.2698 (xpsp_sp2_gdr.050614-1522) - C:\WINDOWS\system32\kerberos.dll
cryptdll.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\cryptdll.dll
System.Drawing.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Drawing\0e83aac37b2623f1a24c70979f31dd56\System.Drawing.ni.dll
System.Windows.Forms.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Windows.Forms\3d8c79c45aa674e43f075e2e66b8caf5\System.Windows.Forms.ni.dll
Cabinet.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - c:\WINDOWS\system32\Cabinet.dll
mscorjit.dll v2.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
mscorsec.dll v2.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll
WINTRUST.dll v5.131.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WINTRUST.dll
IMAGEHLP.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\IMAGEHLP.dll
WPFToolkit.dll v3.5.31016.1 - C:\Documents and Settings\dvacheron\Local Settings\Apps\2.0\KGGTQVPL.QK5\DNM4TDJJ.CVX\wpfb..xbap_a5aad8c6f017a20d_0001.0000_006de01e609a3cb6\WPFToolkit.dll
diasymreader.dll v8.0.50727.1433 (REDBITS.050727-1400) - c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll

       

Coordinator
Dec 2, 2008 at 8:45 PM
ToolKit has heavy dependency on .Net 3.5 SP1. From the above stack trace it looks like the SP1 is not installed.

Here is the location for 3.5 SP1 http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&DisplayLang=en
Dec 2, 2008 at 8:57 PM
If I look at project properties...publish...prerequistes, the .Net 3.5 SP1 is checked.  Do you know why SP1 didn't install?  Is there something else I need to do to add SP1 to the install?
Dec 3, 2008 at 1:29 PM

I'm trying to convince our architects to use WPF, but they want me to use ASP because of deployment issuses.  None of the architects or myself could get a basic WPF browser application to deploy with the datagrid.  I love WPF and the new datagrid, but if I can't get past the deployment problems they're going to make me build the application in ASP.net. 

Has anyone else had deployment problems?  Is there any special instructions for deploying a WPF application with the WPFtoolkit?