Skip to main content

Microsoft Silverlight

Unanswered Question blank browser screen after SL3 installRSS Feed

(0)

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

blank browser screen after SL3 install

Hi ...

1. Have installed VS2008 SP1

2. Have installed SL plugins/toolkit/SDK etc of SL3

trying my first SL application, opting for install as web app (and no other changes except an addition of a TextBlock into the user control) 

SL comes up with a blank browser screen and a popup asking me if I want to install SL. Looking at the solution explorer, I also have a testpage (html) and a testpage (aspx), where it is stated when you create the app, and opt for website, no testpages are created.

Any Idea what is wrong ?? Using XP professional SP3, and the browser which comes along with that.

 

thx ... Steve  

 

Pravinkumar R. D.
Pravinku...

Contributor

Contributor

4300 points

708 Posts

Re: blank browser screen after SL3 install

Hi,

Check this link-

http://silverlight.net/getstarted/

Check the installation steps here. If you are already working on Silverlight 3 and wants to upgrade to Silverlight 3 then check the below link-

http://www.dotnetcurry.com/ShowArticle.aspx?ID=293

http://blogs.msdn.com/jamlew/archive/2009/07/11/upgrading-to-silverlight-3-tools-for-vs2008-rtw.aspx

Thanks,

Pravin

"Please mark as answered, if this answers your question"

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

Re: blank browser screen after SL3 install

Hi .. took all download steps as indicated in your response  ... no problems in install  ...

Started on the "helloworld sl app."  Result is the same: blank screen, and a SL image inviting me to install SL. Checked the HTML, why is the img in the code ???  code below ...

<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>SilverlightApplication3</title>

<style type="text/css">

html, body {

height: 100%;

overflow: auto;

}

body {

padding: 0;

margin: 0;

}

#silverlightControlHost {

height: 100%;

text-align:center;

}

</style>

<script type="text/javascript" src="Silverlight.js"></script>

<script type="text/javascript">

function onSilverlightError(sender, args) {

var appSource = "";

if (sender != null && sender != 0) {

appSource = sender.getHost().Source;

}

 

var errorType = args.ErrorType;

var iErrorCode = args.ErrorCode;

if (errorType == "ImageError" || errorType == "MediaError") {return;

}

var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;

errMsg += "Code: "+ iErrorCode + " \n";

errMsg += "Category: " + errorType + " \n";

errMsg += "Message: " + args.ErrorMessage + " \n";

if (errorType == "ParserError") {

errMsg += "File: " + args.xamlFile + " \n";

errMsg += "Line: " + args.lineNumber + " \n";

errMsg += "Position: " + args.charPosition + " \n";

}

else if (errorType == "RuntimeError") {

if (args.lineNumber != 0) {

errMsg += "Line: " + args.lineNumber + " \n";errMsg += "Position: " + args.charPosition + " \n";

}

errMsg +=
"MethodName: " + args.methodName + " \n";

}

throw new Error(errMsg);

}

</script>

</head>

<body>

<form id="form1" runat="server" style="height:100%">

<div id="silverlightControlHost">

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">

<param name="source" value="ClientBin/SilverlightApplication3.xap"/>

<param name="onError" value="onSilverlightError" />

<param name="background" value="white" />

<param name="minRuntimeVersion" value="3.0.40624.0" />

<param name="autoUpgrade" value="true" />

<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">

<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>

</a>

</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>

</form>

</body>

</html>

 

Wilfred Pinto
Wilfred ...

Participant

Participant

1318 points

258 Posts

Re: blank browser screen after SL3 install

Steve,

Try debugging your application in Visual Studio. That way you will know if the application is getting executed or not.

Wilfred Pinto
http://projectsilverlight.blogspot.com


Please remember to mark the replies as answers if they help answer your question.

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

Re: blank browser screen after SL3 install

There isn't really a lot to debug. I put a breakpoint on the Initializecomponent() statement, and it does not hit, but I am at a bit of a loss on next steps ... for me, the install looks ok, and in solution explorer, all the necssary files seem to be there ...

 

Still wondering why there is an img/link in the code inviting to install SL  ... still wondering why there is a aspx test page AND an html testpage ... 

Mog Liang - MSFT
Mog Lian...

All-Star

All-Star

15884 points

1,541 Posts

Re: blank browser screen after SL3 install

Hi,

Is it possible the silverlight plugin is disabled by browser? Could you see the silverlight application at http://silverlight.net/?

If you could see the silverlight on otherweb site, then i may be some problem on your silverlight project. Could you upload the sample project to SkyDrive and paste link here?

Thanks,

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.

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

Re: blank browser screen after SL3 install

Hi Mog,,

Website is visible for me. Tried SkyDrive for the first time. Couldnt find an option to upload directories, so I have uploaded 16 separate files of my test project. No changes made to project par addition of a button.

Link --- >

http://cid-e8e9373005f6b7e5.skydrive.live.com/browse.aspx/SL%20Test%20App 

 

Is accessible for everyone. If you really need all files uploaded in their respective directories, tell me how to do it with SjyDrive and I'll reattempt an upload .... thx ... Steve

 

PS one burning question: are there any restrictions on using Silverlight on windows mobile phones ????  

  

 

Mog Liang - MSFT
Mog Lian...

All-Star

All-Star

15884 points

1,541 Posts

Re: blank browser screen after SL3 install

Hi,

I still cannot reproduce the problem, here is the project with your provided code file.

http://cid-8d29fb569d8d732f.skydrive.live.com/self.aspx/.Public/test%5E_project.zip

Please try create a new silverlight project and test if problem still exist. You could upload the entire project by compressing to one zip file.

Thanks,

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.

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

Re: blank browser screen after SL3 install

Hi Mog,

 

Re-uploaded project using PkZip ....

 

Link --->

 

http://cid-e8e9373005f6b7e5.skydrive.live.com/browse.aspx/SL%20App%201

 

thx .. Steve

Maud
Maud

Contributor

Contributor

3286 points

453 Posts

Re: blank browser screen after SL3 install

Hi,

Your sample project run correctly on my machine. There is something wrong with silverlight runtime or silverlight tool.

You could clean up the silverlight runtime and reinstall, then check if it solve the problem.

http://blogs.msdn.com/rpomeroy/archive/2008/06/10/how-to-manually-clean-up-a-bad-silverlight-installation.aspx

If problem still exist, try reinstall silverlight tool.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9442b0f2-7465-417a-88f3-5e7b5409e9dd

Thanks,

Maud

StevieWright
StevieWr...

Member

Member

0 points

55 Posts

Re: blank browser screen after SL3 install

Hi Mog, thx for that. I'll do a reinstall on a different, clean machine, and see what happens ...

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities