WCF服务和Silverlight应用程序 [英] WCF services and silverlight application

查看:84
本文介绍了WCF服务和Silverlight应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用silverlight托管Web应用程序.
到目前为止,我已经设计了网页并在项目中添加了Linq- Sql数据库.
我在网页上得到的是几个文本框和提交按钮.我正在做的是当有人按下提交"按钮时,它存储了来自文本框的数据.如果我从托管的同一台计算机上运行网站,一切似乎都可以正常工作.

现在,我想做的是我在局域网上有一台计算机,我可以打开相同的网站(因为我正在使用IIS托管),我可以看到网站,但是我按提交"按钮时,它对数据库没有任何作用(数据库未更新).我还添加了服务参考和clientaccesspolicy.


如果有人知道我在做什么错?还是我应该怎么做?请回复谢谢

问候,
Mohit

I am trying to Host a web application using silverlight.
So far i have designed webpage and added Linq- Sql database in the project.
what i have got on webpage is few textbox and submit button. what i am doing is when someone press submit it stores data from textbox .everything seems to be working fine if i am running website from the same computer i have hosted.

Now, What i want to do is i have another computer over LAN i can open same website ( since i am hosting is using IIS) i can see website i can access it but when i press submit button it doesnot do anything on database( database is not being updated). i have also added service reference and clientaccesspolicy.


if anyone have idea what i am doing wrong? or what i should do ? please reply thank you

Regards,
Mohit

推荐答案

将代码放入try/catch块,然后使用freakin''调试器.
Put the code into a try/catch block, and use the freakin'' debugger.


这篇关于WCF服务和Silverlight应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆