Skip to main content

Microsoft Silverlight

Unanswered Question Silverlight 3 Deployment issue.RSS Feed

(0)

RogerGu
RogerGu

Participant

Participant

883 points

258 Posts

Silverlight 3 Deployment issue.

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: 453
Char: 17
Code: 0
URI: 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?

davidezordan
davidezo...

Contributor

Contributor

5690 points

875 Posts

Silverlight MVP

Re: Silverlight 3 Deployment issue.

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?

Thanks, Davide

Silverlight MVP

Blog Twitter Silverlight Experts

RogerGu
RogerGu

Participant

Participant

883 points

258 Posts

Re: Silverlight 3 Deployment issue.

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 Liang - MSFT
Mog Lian...

All-Star

All-Star

15960 points

1,551 Posts

Re: Silverlight 3 Deployment issue.

Do you fix the problem now? from the exception message, it seems that error occurs when create ChildWindow instance.

 

Mog Liang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

bbakermai
bbakermai

Member

Member

230 points

151 Posts

Re: Silverlight 3 Deployment issue.

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).

If this has answered your question, please hit the Mark as Answered link. Thanks!

Bob Baker
MicroApplications, Inc.
Orlando .Net Users' Group

RogerGu
RogerGu

Participant

Participant

883 points

258 Posts

Re: Silverlight 3 Deployment issue.

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
ejstembler

Member

Member

13 points

15 Posts

Re: Re: Silverlight 3 Deployment issue.

I have the same issue. I cannot show any ChildWindow without getting that 4004 error.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities