Skip to main content

Microsoft Silverlight

Unanswered Question Project files as ZIP for demos?RSS Feed

(0)

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Project files as ZIP for demos?

Hi there,

I have some problems in creating the "Getting started" projects. I am sure that I am missing out some changes in the corresponding project files. Would it be possible to offer the demo projects as a collection of the necessayr files zipped?

Thanks & best regards,

Pascal 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Project files as ZIP for demos?

Hi Pascal...which getting started project?

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Re: Project files as ZIP for demos?

Hi, basically they are all without Code, aren't they.

In special, I mean the Demo with Plain XML transfer, see http://silverlight.net/quickstarts/Remote/UsingREST.aspx

Best regards,

 Pascal
 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Project files as ZIP for demos?

I would look at the http://silverlight.net/learn for videos as well as code that demonstrate some of the same features.

 

-th

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Re: Re: Project files as ZIP for demos?

 Hi -th, I did but this did not help me as good as the Getting Started example. It is just a tiny bit that is missing me and I cannot find why I am not able to see any page when I rebuild this example in my VS2008. Maybe I could give you a short explanation what I did and you could check, what I am doing wrong, please?

 Thanks,

Pascal
 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Re: Re: Project files as ZIP for demos?

sure, give me some detail

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Re: Re: Re: Project files as ZIP for demos?

 OK, here you go:

- Created new Silverlight Application with HTML Web Page "ShowPoxQuickStart" 

- Project now looks like this:

My Silverlight Project 

- And now it is getting tricky! I have Source for App.xaml, App.xaml.cs, Page.xaml, Page.xaml.cs but where does the TestPage.html come from? In the Silverlight Application or the WEB Project? Where do I need to add it? What is the ShowPoxQuickStartTestPage.html for? Where do I need to add this?

 

If I just transfer the source for the two xaml and xaml.cs files, I do get this error in the IE windows that pops up when running the app:

 

 

Thanks,

 Pascal
 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Re: Re: Project files as ZIP for demos?

TestPage.html is dynamically generated from the Silverlight application project.  In my opinion it is better to use the test pages provided to you from the Web project hosting the Silverlight application.  When you run the application, what does the address bar say?

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Re: Re: Re: Project files as ZIP for demos?

Hi!

I've put the code from the provided TestPage.HTML in file "SilverlightApplication2TestPage.html" of my project (see project view above). Now I do get an empty page, the URL is: http://localhost:1056/ShowPoxQuickStart/SilverlightApplication2TestPage.aspx. The error is "Sys.InvalidOperationException: Initialize Error #2103 in control 'Xaml1': Invalid or malformed application: Check manifest"....

Why does it choose the aspx file instead of the html? And how do I change that? 

Thanks,

Pascal 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Re: Re: Re: Project files as ZIP for demos?

Visual Studio has that marked as the start page.  just right-click on whatever page you want to run (or you can also just manually type it in) and set as startup page.

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

pascalsv
pascalsv

Member

Member

9 points

32 Posts

Re: Re: Re: Re: Project files as ZIP for demos?

 Hi Tim,

now I do get the error: InitializeError: Could not download Silverlight Application. Please check web server settings. 

Pascal 

heuertk
heuertk

Participant

Participant

1380 points

423 Posts

MicrosoftModerator

Re: Project files as ZIP for demos?

wow, how frustrating :-( -- Pascal -- can you send me your project offline and let me take a look at it?  (timheuer@microsoft.com)

 

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

efredin
efredin

Member

Member

2 points

1 Posts

Re: Project files as ZIP for demos?

I was experiencing the same issue.  Turns out I didn't have a startup object selected in the silverlight application.  (Project properties screen)

roberino
roberino

Member

Member

19 points

19 Posts

Re: Project files as ZIP for demos?

 +1 to efredin's solution. I had renamed my project file but had not set the Stratup object in the Silverlight project.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities