我正在嘗試創建一個System.EnterpriseServices.ServicedComponent以參與分佈式事務。我的主要方法看起來是這樣的: public void DoSomething()
{
try
{
// do something useful
// vote for commit
if (ContextUtil.I
我得到了一個調用COM +組件的ASP.net webservice。 COM +組件中的類引發我想要處理的異常。但是ApplicationException被webbservice捕獲,而不是真正的異常。 這是爲什麼? 編輯:異常詳細 System.ApplicationException: Error in the application.
at System.Runtime.Int
讓我們假設我有兩個ServiceComponent類,我用這樣的: using (var outer = new MyComponent1())
{
string data;
using (var inner = new MyComponent2())
{
data = inner.GetFromQueue();
}
outer.P
我將數據作爲UTF8(我確定它是UTF8)存儲在我的MSSQL中,並使用visual studio調試工具,字符串作爲UTF8(因爲某些字符只在UTF8中退出,而不是在big5中),但是在我使用PHP通過IIS fastCGI顯示我的數據之後,結果是big5 !. 我構建了一個簡單的類來測試它。你可以嘗試一下。 using System.EnterpriseServices;
using Sys