Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight 4 Out of Browser: "Unable to determine the URL to the Xap file from web"

For some reason, whenever I now try and run my SL4 application out-of-browser, when I run it I get the following message:

"Unable to determine the URL to the Xap file from web "

refers to an old name of my web project, and it has now been renamed. I've gone through all references of said project name and can't find any more; clearly it's getting it from somewhere though!

Googled but found nothing (aside from a link to an SO question which is now removed!).

Any help gratefully received...

like image 903
Isaac Abraham Avatar asked May 25 '11 13:05

Isaac Abraham


2 Answers

The issue comes from a misconfiguration of the project's user file. VS can't find which XAP file it should use during the debugging experience.

In the myproject.csproj.user file, change

<OutOfBrowserProjectToDebug>OldName</OutOfBrowserProjectToDebug>

to

<OutOfBrowserProjectToDebug>NewName</OutOfBrowserProjectToDebug>
like image 130
Eilistraee Avatar answered Nov 13 '22 19:11

Eilistraee


In Silverlight 5 and Visual Studio 2012:

  • go to silverlight project settings, open Debug tab and click on combobox, then select existing value. Usually there will be only one item (already selected), but it's important to click on it.

ScreenShot

like image 24
opewix Avatar answered Nov 13 '22 18:11

opewix