Question

I am currently doing a Silverlight project on esri map and also doing a website on aspx for me to display the map within the website.

I am using C# for both but had encountered a problem merging both projects together. I understand that when a Silverlight project runs, it would produce a xap page in the Silverlight project client bin folder. So, for me to display the map within the website, I created a client bin folder in aspx project and dragged the xap from my Silverlight project into the folder.

However, the xap page in my aspx website does not update whenever changes are made to my Silverlight project's database. Is this because I have to merge both projects together so that they use the same database? I have copied the app data from the website application to the silverlight's app data folder too.

Why cant it update?

aspx contains soundsensor c# project, the main website with a app data folder sliverlight contains silverlight application and silverlightapplication.web with a app data.

Était-ce utile?

La solution

If you are doing it right, you don't need to create the ClientBin folder yourself. By doing this yourself, that means the XAP file does not get updated when you hit Build.

  • Go to your web project.

  • Delete your ClientBin folder you created.

  • Right click on your web project and select Properties, then go to the Silverlight Applications tab and add your Silverlight project to it.

That should do the trick.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top