Skip to main content

Microsoft Silverlight

Answered Question Silverlight content can not be seen on IISRSS Feed

(0)

PrisonBreak
PrisonBreak

Member

Member

31 points

61 Posts

Silverlight content can not be seen on IIS

 Hi,

 I developed a silverlight application and then deployed on IIS on our test server. When I run the application everything is OK in local machine it is working. When it is deployed on IIS the page that hosts silverlight content prompts me  to download the latest version of the plugin but the latest version of plugin is already installed on my computer and also on the server. (Version="2.0.31005.0").

 Before silverlight 2 RTM was released the application was running without a problem on the IIS on the same machine (application was developed using beta 2 first).

I also checked from other computers, too. At some computers I saw when you view the page that hosts silverlight content a message window saying like "This web page contains a more recent version of silverlight" showed up. At some of them this message did not showed up but as I said before the silverlight runtime install logo appeared. I again tried to reinstall the plugin but nothing changed, it still asks you to install.

 All the mime types are configured by the way. Why it hosted beta 2 application fine and not 2 RTM? Do I need to make some configuration on IIS to host the RTM apps?

 

Now waiting for help to release the application...

Thank you.

preishuber
preishuber

Contributor

Contributor

3570 points

655 Posts

Re: Silverlight content can not be seen on IIS

you changed also you host aspx or html (remove -b2)?

-Hannes

http://www.preishuber.net http://weblogs.asp.net/hpreishuber

PrisonBreak
PrisonBreak

Member

Member

31 points

61 Posts

Re: Silverlight content can not be seen on IIS

 

preishuber:

you changed also you host aspx or html (remove -b2)?

 

I am hosting SL content on aspx page as follows:

 

                         <asp:Silverlight ID="HedefKart" InitParameters="ControlId=HedefKart"
                                          runat="server" MinimumVersion="2.0.31005.0"
                                          Source ="~/ClientBin/SilverlightHedefGosterge.xap"  
                                          style="height:540px; width:100% "/> 
 
If there was a mistake about that I guess it would not work on my local machine, too but application is running fine on local. 
  

 

 

preishuber
preishuber

Contributor

Contributor

3570 points

655 Posts

Re: Silverlight content can not be seen on IIS

ok. NET 3.5 SP1 installed on server?

older version of system.web.silverlight.dll?

-Hannes

http://www.preishuber.net http://weblogs.asp.net/hpreishuber

PrisonBreak
PrisonBreak

Member

Member

31 points

61 Posts

Answered Question

Re: Silverlight content can not be seen on IIS

 

preishuber:

ok. NET 3.5 SP1 installed on server?

older version of system.web.silverlight.dll?



Sorry for writing so late, I was sick since thursday I could not check the topic.

 Thanks for your answer, I guess too, the problem is the older version as you suggested.  When I clicked "view source" on the page that hosts silverlight (on IIS) I detected the following line:

 Sys.UI.Silverlight.Control.createObject('Xaml1_parent', '\u003cobject type="application/x-silverlight-2-b-2" id="Xaml1" .....................

But in localhost when I view source of the page I detected the following line:

Sys.UI.Silverlight.Control.createObject('Xaml1_parent', '\u003cobject type="application/x-silverlight-2" id="Xaml1" ........................

 

see the difference between ---type="application/x-silverlight-2-b-2"----  and  ---type="application/x-silverlight-2"---

 

So I came to a conclusion that the dll on the IIS should be an older version. I searched to find the System.Web.Silverlight.dll on IIS machine but I could not find it. I think this is the dll that should be replaced isn't it? By the way I informed the system group to install the .net 3.5 sp 1 on the IIS machine, too. Now waiting for the result. 

 

By the way I found a workaround for my problem: I used <object> tag to host the silverlight control instead of using <aspx> tag. So I guess the application does not need the dll anymore on the server. Now my application is working without a problem, but I still searching answers why it does not work when using <aspx> server tag, where is the dll, etc. Any suggestions, solutions, comments are welcome.

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities