Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 666997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:52:48+00:00 2026-05-13T23:52:48+00:00

I created a silverlight app (without website) named TestApp , with one TextBox: <UserControl

  • 0

I created a silverlight app (without website) named TestApp, with one TextBox:

<UserControl x:Class="TestApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <TextBlock Text="this is a test"/>
  </Grid>
</UserControl>

I press F5 and see “this is a test” in my browser (firefox).

I select File | Export Template | name it TestAppTemplate and save it.

I create a new silverlight app based on the above template.

The MainPage.xaml has the exact same XAML as above.

I press F5 and see a blank screen in my browser.

I look at the HTML source of both of these and they are identical.

Everything I have compared in both projects is identical.

What do I have to do so that a Silverlight application which is created from my exported template does not show a blank screen?

(creating a WPF application from an exported template like this works fine)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:52:49+00:00Added an answer on May 13, 2026 at 11:52 pm

    The Export Template tool does not understand the <XapFilename> and <SilverlightAppEntry> project properties. Hence when creating a template it does not place a replacement marker in either of these properties.

    If you look in the bin\debug folder of the project you created from the template you will see that the Xap file has the same name as the source project from which you created the template not the name of the new project you created. That in itself isn’t so much of a problem however inside you will find that the application entry point also uses the original namespace for the template source project. Yet the actual app entry point is correctly placed in the namespace of the new project. The entry point cannot be found when the test page loads the Xap into the plugin. In IE with debugging turned on you get an error dialog, in Firefox I suspect there is something in the error console if you open it up.

    How to fix

    First of all when creating the template don’t let VS automatically import it (its only only a file copy anyway).

    Once the template is created find the template zip file in “Documents\Visual Studio 2008\My Exported Templates” folder. Extract the .csproj file.

    Modify the <XapFilename> property to:-

    <XapFilename>$safeprojectname$.xap</XapFilename>
    

    and the <SilverlightAppEntry> property to:-

    <SilverlightAppEntry>$safeprojectname$.App</SilverlightAppEntry>
    

    put the .csproj back in the Zip file.

    Now you can copy the Zip file to a “Documents\Visual Studio 2008\Templates\Project Templates\Visual C#\Silverlight” folder.

    The template should appear when you select Visual C#\Silverlight in the new project dialog.

    Create a project and it should run correctly with F5.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 382k
  • Answers 382k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, there are quite a few minor Mac-specific issues in… May 14, 2026 at 10:34 pm
  • Editorial Team
    Editorial Team added an answer Assuming you have initialized the custom UIView, you need to… May 14, 2026 at 10:34 pm
  • Editorial Team
    Editorial Team added an answer This is not possible. This will never be possible. May 14, 2026 at 10:34 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.