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

发布于 2024-10-06 10:28:14 字数 316 浏览 1 评论 0原文

Web 服务模板不在 .NET 4.0 项目列表中 - 仅在 .NET 3.5 中,但我的服务需要依赖于具有我的模型/数据库功能的 .NET 4.0 程序集。该程序集依赖于 4.0,因为需要数据提供程序(MySQL 的 dotConnect),

Web 服务将需要对此业务逻辑程序集的引用,以便它可以将其参数传递给所述程序集并盲目返回。但是,我可以在 .NET 4.0 应用程序池中运行 Web 服务项目,而数据提供程序不会出现任何问题吗?

我有 Visual Studio 2010 Professional,而不是 Ultimate(我读过它有模板)——有什么办法解决这个问题吗?

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. That assembly depends on 4.0, because of the data provider required (dotConnect for MySQL)

The web service will need a reference to this business logic assembly so it can pass its arguments to said assembly and blindly return. But, can I run the web services project in a .NET 4.0 application pool without any problems with the data provider?

I have Visual Studio 2010 Professional, not Ultimate (which I've read has the template)--is there any way around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

微暖i 2024-10-13 10:28:14

在 4.0 中,您拥有 WCF 框架。试试这个。

In 4.0 you have the WCF framework. Try this one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文