简体   繁体   English

如何在Visual Studio 2010 Pro中创建.NET 4.0 Web服务项目?

[英]How can I create a .NET 4.0 web service project in Visual Studio 2010 Pro?

The Web Services template isn't in the .NET 4.0 projects list--only .NET 3.5, but my service needs to depend on a .NET 4.0 assembly with my model/database functions. Web服务模板不在.NET 4.0项目列表中,仅在.NET 3.5中,但是我的服务需要依赖具有模型/数据库功能的.NET 4.0程序集。 That assembly depends on 4.0, because of the data provider required (dotConnect for MySQL) 该组装依赖于4.0,因为需要数据提供程序(适用于MySQL的dotConnect)

The web service will need a reference to this business logic assembly so it can pass its arguments to said assembly and blindly return. Web服务将需要对该业务逻辑程序集的引用,以便可以将其参数传递给所述程序集并盲目返回。 But, can I run the web services project in a .NET 4.0 application pool without any problems with the data provider? 但是,我可以在.NET 4.0应用程序池中运行Web服务项目,而数据提供程序没有任何问题吗?

I have Visual Studio 2010 Professional, not Ultimate (which I've read has the template)--is there any way around this? 我使用的是Visual Studio 2010 Professional,而不是Ultimate(我读过的具有模板),是否可以解决此问题?

In 4.0 you have the WCF framework. 在4.0中,您具有WCF框架。 Try this one. 试试这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM