主机 SilverLight / WCF

发布于 2024-07-14 04:50:18 字数 333 浏览 3 评论 0原文

我已经创建了我的第一个 silverlight 应用程序:-)

它有一个基本页面并连接到数据库以填充列表。 连接是使用 wcf 完成的,因此我的 silverlight 连接到执行此操作的 ServiceReference。 当我从 VisualStudio 运行时,这一切都工作正常。

我的问题是我不知道如何托管这个应用程序。 我在 assppider 上创建了一个帐户,上传了我的 default.html、zap 文件(我将其重命名为 zip)和数据库。 在需要连接到数据库之前,这个工作正常。 我需要上传什么才能使数据库连接正常工作?

谢谢 :-) 马丁

I have created my first silverlight app :-)

It has a basic page and connects to a db to populate a list. the connection is done using wcf, so my silverlight connects to a ServiceReference that does the stuff.
This all works fine when i run from VisualStudio.

My problem is that i am not sure how to host this app.
I created an account on aspspider uploaded my default.html, zap file(which i renamed to zip), and Database. this work fine until it needs to connect to the db.
What do i need to upload to get the database connection working ?

Thanks :-)
Martin

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

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

发布评论

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

评论(2

仙气飘飘 2024-07-21 04:50:18

您可以通过浏览器或Fiddler连接到您的WCF服务吗? 尝试将 Silverlight 排除在外,并确保从 WCF 获取数据。

此外,我注意到在您的问题中,您没有提到任何有关使用 assppider 托管 WCF 服务的内容。 您在哪里托管 WCF 服务? 当您进行第一个项目时,您应该在与 silverlight 应用程序相同的域中设置 WCF 服务。 否则,您将必须开始使用 Silverlight 跨域策略,有 silverlight.net 上的视频< /a>

Can you connect to your WCF service through the browser or Fiddler? Try taking Silverlight out of the equation and make sure your getting data from WCF.

In addition I noticed in your question that you don't mention anything about hosting your WCF service with aspspider. Where are you hosting your WCF service? As you first project you should setup the WCF service on the same domain as the silverlight app. Otherwise you will have to get into using Silverlight Cross Domain policies theres a video on silverlight.net

凡尘雨 2024-07-21 04:50:18

我听起来可能比我在第一篇文章中更有知识:-)
我不知道如何托管 wcf,或者即使它是真正的 wcf。
我会尽力解释我在做什么,如果您能提供帮助,我将非常感激!

在我的解决方案中,我有一个 silverlight 项目,当我创建该项目时,系统提示我添加一个网络服务器,我这样做了。 当谈到添加数据库连接时,我通过添加“linq To sql 类”和 Web 服务来做到这一点。 所以现在在我的网络服务器项目中我有一个 Iservice1.cs Service1.svc LinqToSql.dbml。
然后我在 silverlight 中添加了一个引用。

我有什么想法如何托管这项服务吗?

非常感谢
马丁

I possibly sounded more knowledgeable than i am in my first post :-)
I don’t know how to host the wcf or even if it is truly wcf.
I will try to explain where i am up to and would be really grateful if you could help!

In my solution i have a silverlight project which when i created i was prompted to add a webserver, which i did. when it came to adding db connection i did this by adding a "linq To sql classes" and a Webservice. So now in my webserver project i have a Iservice1.cs Service1.svc LinqToSql.dbml.
I then added a reference in the silverlight.

Any ideas how i go about hosting this service ??

Thanks so much
Martin

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