Page view counter
aspx file not displaying the last .xap build Subscribe to this thread
Last post 05-30-2008 10:19 AM by larsjo. 6 replies.
Sort Posts:
05-12-2008 11:58 AM
aspx file not displaying the last .xap build

I have a Silverlight project, which is hosted in .aspx web page.

Making some update on the Silverlight project and recompiling it, doesn't seem to affect the content displayed on the .aspx file when i run the project.

By testing on my 'SilverlightProject/ClientBin/TestPage.html' i can see that the changes are in fact done...

Every time i rebuild the solution, the .xap files, the one in "SilverlightProject\ClientBin\MyXapFile.xap" and "WebProject\ClientBin\MyXapFile.xap", seem to be update, since i can see that the modification data gets updated.

Anyone knows why my .aspx page doesn't display my last build?

weird thing is, if i deploy it, and access it via http, it gets the last build...

nmpgaspar

Loading...
Joined on 03-03-2008
Posts 109
05-12-2008 6:19 PM
Re: aspx file not displaying the last .xap build

I'm not sure how you are running the project.  Are the aspx pages hosted through IIS?  You might try doing a Clean Solution before building and see if that updates it.

James

James Osborne

Loading...
Joined on 05-12-2008
Redmond, WA
Posts 23
05-12-2008 7:50 PM
Re: aspx file not displaying the last .xap build

Nope, i have them on Visual Studio too.

If i add manually the .xap file, to the project and refer to him on some random .aspx file then it works, but only for the first build. I have to manually had the .xap file to the project everytime i make an update on the Silverlight project...

nmpgaspar

Loading...
Joined on 03-03-2008
Posts 109
05-12-2008 8:58 PM
Marked as Answer
Re: aspx file not displaying the last .xap build

nmpgaspar:

Every time i rebuild the solution, the .xap files, the one in "SilverlightProject\ClientBin\MyXapFile.xap" and "WebProject\ClientBin\MyXapFile.xap", seem to be update, since i can see that the modification data gets updated.

Anyone knows why my .aspx page doesn't display my last build?

weird thing is, if i deploy it, and access it via http, it gets the last build...

 

Are you using "Cache"  in your aspx? Since "WebProject\ClientBin\MyXapFile.xap" get updated, you should able to get the updated version from aspx page too. btw, Are you pointing to the correct xap path from aspx?

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Microsoft WPF & Silverlight Insider
Blog : http://michaelsync.net


mchlSync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,478
05-13-2008 3:53 AM
Marked as Answer
Re: aspx file not displaying the last .xap build

It seems that browser caches .xap. You can try the following:
 - install Internet Explorer Developer Toolbar;
 - Check: "Cache -> Always Refresh from Server" in IE Dev Toolbar
 - Refresh your page;

or simply clear browser cache...

I've had same problem recently, and mentioned solution works for me..


 

---------------------------------------------------
We don't possess what we don't understand

FLUID

Loading...
Joined on 02-12-2007
Ukriane
Posts 10
05-13-2008 5:42 AM
Re: aspx file not displaying the last .xap build

mchlsync:
btw, Are you pointing to the correct xap path from aspx?

 

:)

Yup, but then again, if that was the mistake, i wouldn't probably say it :D

 

Fluid, that solved the problem! :)

Thank you both.

nmpgaspar

Loading...
Joined on 03-03-2008
Posts 109
05-30-2008 10:19 AM
Re: aspx file not displaying the last .xap build

Remove the MyXapFile.xap from your browser cache Smile

Lars

larsjo

Loading...
Joined on 05-30-2008
Posts 2
Microsoft Communities