Skip to main content
Home Forums General Silverlight New Features in Silverlight 3 Silverlight 3 Deployment issue.
6 replies. Latest Post by ejstembler on November 29, 2009.
(0)
RogerGu
Participant
883 points
258 Posts
06-10-2009 11:07 AM |
I can run it on my dev machine, but I cannot run it when deployed to a Win2003 server:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM 8)Timestamp: Wed, 10 Jun 2009 15:02:33 UTC
Message: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Silverlight1': System.TypeLoadException: Could not load type 'System.Windows.Controls.ChildWindow' from assembly 'System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. at Prophet2.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e) at MS.Internal.Error.CallApplicationUEHandler(Exception e) at MS.Internal.Error.GetXresultForUserException(Exception ex)Line: 453Char: 17Code: 0URI: http://x.x.x.x/ScriptResource.axd?d=vYli1Nwje05mrOoHrj0Ojg0cmWsvip1xvKgiEg7z5l8pLO4uLEZcsaeRrkpliV6ViM9oej9-mFO6VYarb-_Iyw2&t=3bb1633f
Please note that I have performed these steps (thanks mdstephens):
http://silverlight.net/themes/silverlight/forums/thread.aspx?ThreadID=20831&AspxAutoDetectCookieSupport=1
-- update --
any chance this is related to the Silverlight Toolkit?
http://www.codeplex.com/Silverlight
It is not required to install that on the deployement box, corrrect?
Twitter
davidezo...
Contributor
5690 points
875 Posts
06-12-2009 11:50 AM |
Hi Roger,
I'm unable to reproduce this issue, It shouldn't be a toolkit problem, have you tried to deploy a simple "Hello world" app on the target machine to see if IIS is properly working and configured?
06-12-2009 12:16 PM |
Good point. I created a Silverlight 3 app from the Business Application template, and successfully deployed it. I then added controls from the toolkit, and successfully deployed that. So it appears this is my application, not the server I am deploying to.
Mog Lian...
All-Star
15960 points
1,551 Posts
06-17-2009 12:11 AM |
Do you fix the problem now? from the exception message, it seems that error occurs when create ChildWindow instance.
bbakermai
Member
230 points
151 Posts
06-17-2009 11:05 AM |
I just xcopy. The only deployment issues I had were 1) when I used the new RIA Silverlight.Application tag in the hosting page -- that worked in dev but not server; and, 2) had to manually deploy Crystal Reports dlls until I built my msi (and had to manually add them there as well, even though they were marked as Copy Always).
06-17-2009 12:14 PM |
I believe I have this isolated to a caching issue with IE only.
I cannot recreate it on any other browser (they all open the site just fine). The settings in IIS for instant expiration do not seem to make a difference, nor do the 'every time I visit the page' setting for temporary internet files. I am forced to manually remove cache when I deploy. Very frustrating. Especially since my product owner cannot seem to clear the cache at all. He is forced to use Safari to view each new iteration of the project.
ejstembler
13 points
15 Posts
11-29-2009 1:36 PM |
I have the same issue. I cannot show any ChildWindow without getting that 4004 error.