本文介绍了Newb - localhost有效,但已部署的应用程序不会产生任何数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ADO.NET数据服务的工作方式类似于Visual Studio 2008的gem,它内置于webserver(localhost)。

我创建了一个虚拟目录,配置了IIS6(激活了.svc扩展名) ,主机标题)。

我可以点击端点并获得实体的XML列表,但我可以深入钻探。

示例:

(localhost从Visual Studio 2008运行)

http:// localhost:1054 / EpicorQueryTest / EpicorDataService.svc / ----------->>> 实体列表 - 完美地工作
http:// localhost:1054 / EpicorQueryTest / EpicorDataService.svc / apinvhed ----------->>>完美地工作
http:// localhost:1054 / EpicorQueryTest / EpicorDataService.svc / apinvhed(322L)----------->>>工作完美

ADO.NET Data Services works like a gem off of Visual Studio 2008 and it's built in webserver (localhost).

I've created a virtual directory, configured IIS6 (activated the .svc extension, host header).

I can get hit the endpoint and get an XML list of the Entities, but I can drill any deeper.

Example:

(localhost run from Visual Studio 2008)

http://localhost:1054/EpicorQueryTest/EpicorDataService.svc/ ----------->>> List of Entities - Works perfectly
http://localhost:1054/EpicorQueryTest/EpicorDataService.svc/apinvhed ----------->>> Works perfectly
http://localhost:1054/EpicorQueryTest/EpicorDataService.svc/apinvhed(322L) ----------->>> Works perfectly

(已部署 - IIS6中带有主机头的端口80)

http://My.Domain.com/EpicorQueryTest/EpicorDataService.svc/ ----------->>> 500错误
http://my.Domain.com/EpicorQueryTest/EpicorDataService.svc/apinvhed ----------->>> 500错误
http://my.Domain.com/EpicorQueryTest/EpicorDataService.svc/apinvhed(322L)----------->>> 500错误



(Deployed - port 80 from IIS6 with host headers)

http://My.Domain.com/EpicorQueryTest/EpicorDataService.svc/ ----------->>> 500 error
http://My.Domain.com/EpicorQueryTest/EpicorDataService.svc/apinvhed ----------->>> 500 error
http://My.Domain.com/EpicorQueryTest/EpicorDataService.svc/apinvhed(322L)  ----------->>> 500 error

http://My.Domain.com/TheService.svc ----> >> 实体列表 - 完美运作
http://hy.Domain.com/TheService.svc/apinvhed ---->>> 500错误

任何想法可能会发生这种情况?

谢谢,
Robert

推荐答案


这篇关于Newb - localhost有效,但已部署的应用程序不会产生任何数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 18:16