VS 2008 上的 WSE 2.0 SP2 (WSE 2.0 SP2 on VS 2008)


問題描述

VS 2008 上的 WSE 2.0 SP2 (WSE 2.0 SP2 on VS 2008)

是否可以在 VS 2008 下使用 WSE 2.0 SP2?

我意識到插件(生成代理類/配置)不兼容,但有解決方法(從 VS 2003 解決方案複製文件)。我們的 Web 服務是相對靜態的,因此不會進行太多更改。

我們可能在未來的某個日期遷移到 WCF,但目前正在採取嬰兒步驟,並希望讓我們現有的服務在所有環境下運行.NET 3.5 的優點。


參考解法

方法 1:

You may want to use WSE 2.0 SP3 instead of SP2. Here is why: if you care about (or pay for) Microsoft support services for your application then SP3 is supported under the .NET 2.0 framework. I think there were some incompatibilities between SP2 & SP3 but the big thing is Microsoft specifically states that SP3 is supported on the .NET 2.0 framework. See the WSE 2.0 SP2 documentation and notice that it doesn't say .NET 2.0 is supported.

It looks like you want to convert/rewrite your app in the .NET 3.5 framework. Both .NET 2.0 & .NET 3.5 run under the same CLR 2.0 (yup, it's very confusing: a big thank you goes out to MS marketing!) so you probably are OK running WSE 2.0 SP3 with a.NET 3.5 app. But again, it not a supported configuration.

方法 2:

I have been able to use WSE2 under VS2005/.NET 2.0 with no problems, but I dont know specifically about 2008. I needed Dime attachments (java web service ‑ ugh.. what a headache) which are only in WSE2.

To get the functionality in VS, I actually installed WSE3 and then just changed the dll referenced in the application to the WebServices2 file and all of the Imports (VB ‑ using c#) statements. After that, it worked like a charm.

方法 3:

I have not had any issues running wse2 with visual studio 2008 as long as your just using it like a library even after I switched to the 3.5 framework. But as you state the addin tools don't work.

(by Colin HardieSixto SaezStingyJackAaron Fischer)

參考文件

  1. WSE 2.0 SP2 on VS 2008 (CC BY‑SA 2.5/3.0/4.0)

#.net-3.5 #wse #visual-studio-2008 #web-services






相關問題

如何在 C# 中搜索 pdf 中的文本(執行匹配) (How to search text (Exect match) in pdf in C#)

String.IsNullOrEmpty() (String.IsNullOrEmpty())

是否有可以綁定的可為空的日期選擇器? (Is there a nullable datepicker that I can bind to?)

具有自動命名屬性的通用組合框 (Generic ComboBox with automatically named properties)

在數據庫未定義的外鍵關係上配置實體框架 (Configuring Entity Framework on a Database Undefined Foreign Key Relationships)

我可以在 4.0 應用程序中引用 .NET 3.5 .DLL 嗎? (Can I reference a .NET 3.5 .DLL in a 4.0 app?)

如何在 ASP.NET、VB.NET 中解決這個會話問題? (How to tackle this session problem in ASP.NET,VB.NET?)

在 ADO.NET 數據服務中添加對查找表的引用 (Adding a reference to a lookup table in ADO.NET Data Services)

如何優化 Linq to Xml 查詢反對屬性? (How do I optimize a Linq to Xml query againist attributes?)

VS2005 和 LINQ (VS2005 and LINQ)

時區信息錯誤? (TimeZoneInfo error?)

與標準 C++ 相比,C++/CLI(以前稱為“託管 C++”)有哪些優勢? (What are the advantages of C++/CLI (formerly "Managed C++") over standard C++?)







留言討論