If that does not work or you get an error stating permission issues with AgControl.AgControl, then try this:

1. Run regedit (start->run->regedit)

2. Navigate to HKEY_CLASSES_ROOTAgControl.AgControl (if you get a message that says “AgControl.AgControl cannot be opened. An error is preventing this key from being opened. Details: Access is denied.” proceed to the “Taking ownership
of the key” section)

3. Right click and choose “Permissions”

4. Click “Add”

5. Either add your windows username or your network username in the the “Enter the object names to select” and click “Check Names”. Your name should take the proper format. If it does not try clicking “Advanced” and searching for your
username. My windows username was the one I used.

6. Click OK

7. Select your new username in the top pane and in the lower pane (Permissions for ) check the Allow box next to Read.

8. Click OK

Check Silverlight installation in IE by going to http://www.silverlight.net/

Taking ownership of the key (If you’re getting access denied errors while trying to set permissions)

Could not find default endpoint element that references contract
‘SilverlightApplication.srLogon.IwcfLogonService’ in the ServiceModel
client configuration section. This might be because no configuration file was
found for your application, or because no endpoint element matching this
contract could be found in the client element.

+++++

According to a Silverlight Forum discussion
(http://silverlight.net/forums/t/18006.aspx) the solution is to fully qualify
the ‘contract’ in the <client/endpoint> section of the
ServiceReferences.ClientConfig file with the Silverlight project name.

As noted this is using the html page rather than the aspx page as the startup. Make sure that you are testing with a xap that is large enough to display the splash screen. You can add a large file and set it to Embedded Resource. The xap and splashscreen.xaml have to be in the same folder. Put the following Java Script in the aspx page.

This is an example of the &ltdiv used to display the splash screen. Note the items in Red.
<div style="height:100%;">
<asp:Silverlight ID="Xaml1? runat="server" Source=>"~/SplashScreenSource.xap"
</span>
MinimumVersion="2.0.30523? Width="100%" Height="100%"
OnPluginError="onSilverlightError" SplashScreenSource="~/SplashScreen.xaml"
OnPluginSourceDownloadProgressChanged="onSourceDownloadProgressChanged"
</div>

You can use the xaml from the example on the forum to test this. Remember to copy the xap to the same folder as the SplashScreen.xaml. The ~/ means I had it in the same folder as the aspx page. I did find that when you are testing this you have to clear out the browser history/cache to get it to display.

Need to find a simple way of passing data from the Web Client portion of your solution to your initial Silverlight control? By using the InitParameters inside the main *.aspx document of the Web Client, you can.

Here is an example piece of vbscript for passing the IpAddress to Silverlight:

Using the ‘Canvas.RenderTransform’ in your base Silverlight XAML, along with some resizing logic in the base Silverlight .vb class, the controls within your browser will resize as you change the size of the browser.

In this scenario, the App.xaml Application_Startup event passes control to the first displayable Silverlight xaml called, ‘host’, which contains the resizing logic. As long as I don’t remove ‘host’, the resizing logic is not needed in any other xaml.

Example:

In the MyApplication Application, the following flow occurs:

App.xaml executes the following statement that loads the first Silverlight Control:

me.RootVisual = New host(IPAddress)

‘host’ then adds the logon.xaml on top of the ‘host’ with the following statement:

ucLogon = New Logon(mIPAddress)

When the logon is successful, ‘logon’ is removed from host and the main.xaml is then added.

LayoutRoot.Children.Remove(ucLogon)
LayoutRoot.Children.Add(ucMain)

Going forward, all Messages, which are xaml files, are simply added and removed from ‘main’. As long as ‘host’ is never unloaded, resizing the browser will continue to raise the ‘resize’ event logic in the host.xaml.vb class.

The Textbox in Silverlight currently does not support masking the text when entering for an example a password. This may be supported in the future, but for now a work around was needed. By using a couple event handlers in the the Silverlight control, along with a few public methods in a separate class, it can be done.

The following code needs to be in the Silverlight control that hosts your textbox that needs to be masked.