RIA Web 服务包括部署后不工作
我有一个 RIA Webservices 调用,在我的开发机器上运行良好。
var results = repositoryFactory.For<RE059>().AsQueryable()
.Where(
r =>
r.Bk_Term == TerminalName &&
(r.Ld_Unld_Act == "DH" || r.Ld_Unld_Act == "DS" || r.Ld_Unld_Act == "DR")
&& r.Bk_Term != "Domestic")
.Include("RE059Note");
return results;
如果我删除 .include ,部署的版本工作正常。当我添加它时,SQL Profiler 不显示任何数据库调用,显然没有数据显示,我的跟踪日志显示异常,但没有消息或本机错误代码。仅 System.ServiceModel.FaultException 的异常类型。
SQL 探查器显示生产版本和开发版本使用相同的 SQL 用户。我检查了 SQL 权限,Profiler 显示的开发版本 SQL 在 SQL Mgmt Studio 中使用相应的 SQL 用户运行良好。
什么样的事情可能是错误的?
I have a RIA Webservices call that works fine on my dev machine.
var results = repositoryFactory.For<RE059>().AsQueryable()
.Where(
r =>
r.Bk_Term == TerminalName &&
(r.Ld_Unld_Act == "DH" || r.Ld_Unld_Act == "DS" || r.Ld_Unld_Act == "DR")
&& r.Bk_Term != "Domestic")
.Include("RE059Note");
return results;
If I remove the .Include the deployed version works fine. When I add it SQL Profiler doesn't show any database call, obviously no data shows up and my trace log shows an exception but there is no Message or Native Error Code. Only an Exception Type of System.ServiceModel.FaultException.
SQL profiler shows the same SQL user is used for the production and dev version. I checked SQL rights and the SQL that Profiler shows for the dev version runs fine in SQL Mgmt Studio with the respective SQL user.
What kind of things might be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要安装 Microsoft Code First 预览版。它有 .include 作为扩展方法。
ADO.Net 实体框架代码首次预览 < /a>
I needed to install the Microsoft Code First Preview. It has .Include as an extension method.
ADO.Net Entity Framework Code First Preview