開發WCF程式時 常常會使用WcfSvcHost.exe來幫我們測試一下程式是否正確可是當OS為64bit環境時WcfSvcHost.exe會開不起來這個問題的原因是在於WcfSvcHost會依照OS是32bit or 64bit的不同 去讀取不同的library所以當你的WCF Service必須呼叫x86的library時 我們必須強迫讓WcfSvcHost.exe允許32bitStep1 : IF OS是WINDOWS7 記得要用系統管理員身分去執行Visual Studio Tools -> Visual Studio Command Prompt(2010)Step2 : 切換位置到WcfSvcHost.exe的路徑下...
2011-01-24
解決WCF Services無法在64bit IIS7下使用
我的PC OS是 Windows7 64bit環境因為某個元件是32bit環境下開發的 所以我將專案環境都改成x86 publish之後 利用IIS7 建置成服務結果發生了這個錯誤 Could not load file or assembly 'RusoLiteService' or one of its dependencies. 試圖載入格式錯誤的程式。趕緊Google一下WCF 3.5 error: Could not load file or assembly 'IBSCore' or one of its dependencies. An attempt was made...
2011-01-04
101 LINQ Samples
最近才在研究 LINQ的資訊 從網路上查到了 101 個 LINQ的Sample記錄一下 有機會可以查查http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx&nb...