2012-03-26 84 views
0

我在現有的mvc視圖中託管Silverlight應用程序。我得到臭名昭着的從Silverlight調用時發生域服務錯誤

"remote server returned an error-> notfound"

當我嘗試訪問mvc應用程序中定義的域服務。
在拉琴,我得到這個錯誤:

The IControllerFactory 'DrcMvcWeb.Infrastructure.DrcControllerFactory' did not return a controller for the name 'ClientBin'.

我需要映射到域名服務呼叫的路由?這是我第一次使用Silverlight和RIA服務,迄今爲止的體驗並不好。

回答

0

它看起來像是在服務的路徑中包含ClientBin文件夾(您的SL應用程序所在的位置)。您應該能夠使用相對路徑(從該點)沿着樹走到實際的服務位置。例如:

string urlPath = new Uri(Application.Current.Host.Source, "../Services/MyService").AbsoluteUri; 
相關問題