Getting Startedhttp://forums.silverlight.net//14.aspx/1?Getting+StartedThe perfect forum for asking the basic questions. No question too simple!Mon, 01 Jan 0001 00:00:00 -05001410987http://forums.silverlight.net//p/3767/10987.aspx/1?Server+isn+t+seeing+my+xaml+fileServer isn't seeing my xaml file <p>I'm just trying to do those sample circles.&nbsp; When I run debug on visual studio, it works fine, but when I put the files on my server, I just get a blank canvas.&nbsp; This is the same way it acts if I misspell the xaml file.&nbsp; The xaml file is there.</p> <font color="#0000ff" size="2"><font color="#000000">Here is my create script.</font></font><font color="#0000ff" size="2">function</font><font size="2"> createMySilverlightPlugin()</font><font size="2"> <p>{ </p> <p>Silverlight.createObject(</p> <p></font><font color="#800000" size="2">&quot;testx.xaml&quot;</font><font size="2">, </font> <font color="#008000" size="2">// Source property value.</p> </font><font size="2"> <p>parentElement, </font><font color="#008000" size="2">// DOM reference to hosting DIV tag.</p> </font><font size="2"> <p></font><font color="#800000" size="2">&quot;mySilverlightPlugin&quot;</font><font size="2">, </font><font color="#008000" size="2">// Unique plugin ID value.</p> </font><font size="2"> <p>{ </font><font color="#008000" size="2">// Per-instance properties.</p> </font><font size="2"> <p>width:</font><font color="#800000" size="2">'1200'</font><font size="2">, </font> <font color="#008000" size="2">// Width of rectangular region of </p> </font><font size="2"> <p></font><font color="#008000" size="2">// plugin area in pixels.</p> </font><font size="2"> <p>height:</font><font color="#800000" size="2">'1200'</font><font size="2">, </font> <font color="#008000" size="2">// Height of rectangular region of </p> </font><font size="2"> <p></font><font color="#008000" size="2">// plugin area in pixels.</p> </font><font size="2"> <p>inplaceInstallPrompt:</font><font color="#0000ff" size="2">false</font><font size="2">, </font><font color="#008000" size="2">// Determines whether to display </p> </font><font size="2"> <p></font><font color="#008000" size="2">// in-place install prompt if </p> </font><font size="2"> <p></font><font color="#008000" size="2">// invalid version detected.</p> </font><font size="2"> <p>background:</font><font color="#800000" size="2">'#D6D6D6'</font><font size="2">, </font><font color="#008000" size="2">// Background color of plugin.</p> </font><font size="2"> <p>isWindowless:</font><font color="#800000" size="2">'false'</font><font size="2">, </font><font color="#008000" size="2">// Determines whether to display plugin </p> </font><font size="2"> <p></font><font color="#008000" size="2">// in Windowless mode.</p> </font><font size="2"> <p>framerate:</font><font color="#800000" size="2">'24'</font><font size="2">, </font> <font color="#008000" size="2">// MaxFrameRate property value.</p> </font><font size="2"> <p>version:</font><font color="#800000" size="2">'1.0'</font><font size="2"> </font> <font color="#008000" size="2">// Silverlight version to use.</p> </font><font size="2"> <p>},</p> <p>{</p> <p>onError:</font><font color="#0000ff" size="2">null</font><font size="2">, </font> <font color="#008000" size="2">// OnError property value -- </p> </font><font size="2"> <p></font><font color="#008000" size="2">// event handler function name.</p> </font><font size="2"> <p>onLoad:</font><font color="#0000ff" size="2">null</font><font size="2"> </font> <font color="#008000" size="2">// OnLoad property value -- </p> </font><font size="2"> <p></font><font color="#008000" size="2">// event handler function name.</p> </font><font size="2"> <p>},</p> <p></font><font color="#0000ff" size="2">null</font><font size="2">); </font><font color="#008000" size="2">// Context value -- event handler function name.</p> </font><font size="2"> <p>}</p> </font> 2007-08-18T00:24:46-04:0010988http://forums.silverlight.net//p/3767/10988.aspx/1?Re+Server+isn+t+seeing+my+xaml+fileRe: Server isn't seeing my xaml file <p>I had this problem before. It is probably because MIME type for XAML is not registered on your server. Until you get it registered you can change the file extension from .xaml to .xml and this should work.</p> 2007-08-18T01:21:33-04:0011026http://forums.silverlight.net//p/3767/11026.aspx/1?Re+Server+isn+t+seeing+my+xaml+fileRe: Server isn't seeing my xaml file <p>Can I ask you to try this:</p> <p>&nbsp;1. Download the template for Visual Studio and place it in the C# templates</p> <p>2. Generate a new project </p> <p>3. Does it recognize the xaml?</p> <p>&nbsp;If so, my guess is you'll be happier following the create method shown in the VS template (which uses CreateObjectEx). </p> <p>&nbsp;I recognize that this answer doesn't get to the heart of the question, but it may get you up and running quickly.</p> <p>&nbsp;</p> <p>-jesse</p> 2007-08-18T17:36:45-04:0011225http://forums.silverlight.net//p/3767/11225.aspx/1?Re+Re+Server+isn+t+seeing+my+xaml+fileRe: Re: Server isn't seeing my xaml file <p>Didn't work for me.&nbsp; Tried registering it, and tried making it an xml file.&nbsp; Still see a blank canvas</p> 2007-08-20T20:26:13-04:0011240http://forums.silverlight.net//p/3767/11240.aspx/1?Re+Re+Server+isn+t+seeing+my+xaml+fileRe: Re: Server isn't seeing my xaml file <p>Can you send a link to the site?</p> <p>I supposed an obvious question is the typecase of the xaml file being the same as what's called out, and that it is in the same folder as the file calling it...</p> <p>-Dave</p> 2007-08-20T22:38:57-04:0011241http://forums.silverlight.net//p/3767/11241.aspx/1?Re+Re+Server+isn+t+seeing+my+xaml+fileRe: Re: Server isn't seeing my xaml file <p><a href="http://reports.musicreg.net/report_proj/">http://reports.musicreg.net/report_proj/</a>&nbsp;</p> <p>Here's a link to it.</p> <p>&nbsp;typecase is good.&nbsp; it gives a javascript error if the file is wrong.</p> <p>&nbsp;</p> 2007-08-20T22:45:17-04:0011245http://forums.silverlight.net//p/3767/11245.aspx/1?Re+Re+Re+Server+isn+t+seeing+my+xaml+fileRe: Re: Re: Server isn't seeing my xaml file <p>I recompiled and it worked now.&nbsp; I did have the wrong ID name in my parent element, but i'm not sure why it then worked on debug mode and not anything else.</p> <p>&nbsp;</p> <font size="2"> <p>Silverlight.createObject(</p> <p></font><font color="#800000" size="2">&quot;myxaml.xml&quot;</font><font size="2">, </font> <font color="#008000" size="2">// Source property value.</p> </font><font size="2"> <p>parentElement, </font><font color="#008000" size="2">// DOM reference to hosting DIV tag.</p> </font><font size="2"> <p></font><font color="#800000" size="2">&quot;mySilverlightPluginHost&quot;</font><font size="2">, </font><font color="#008000" size="2">// Unique plugin ID value.</p> </font> 2007-08-20T23:19:35-04:00