简体   繁体   English

C#内部服务器错误

[英]C# Internal Server Error

I wrote a C# WCF server and I am trying to get it up in IIS but everything I try to go to my endpoint I get this error: 我写了一个C#WCF服务器,我试图在IIS中启动它,但是我尝试转到端点的所有操作都出现此错误: 在此处输入图片说明

I checked the Permissions on the site and I have Authenticated Users others: 我在网站上检查了“权限”,并获得了“身份验证用户”的其他权限: 在此处输入图片说明

so I am not sure what to do now... 所以我不确定现在该怎么办...

I imagine that the root of the problem is that you are trying to create an application on the server that points to files on your own computer using a Remote Desktop Connection drive share. 我想问题的根源在于您试图在服务器上创建一个应用程序,该应用程序使用远程桌面连接驱动器共享指向您自己计算机上的文件。 The \\\\?\\UNC\\tsclient\\C\\... path is a dead giveaway. \\\\?\\UNC\\tsclient\\C\\...路径是无效的赠品。

This is a definite no. 这是肯定的。 You cannot run a web service this way. 您不能以这种方式运行Web服务。 The tsclient path is specific to your individual connection and will not work from any other context. tsclient路径特定于您的单个连接,在任何其他上下文中均不起作用。 Any other user account - including the service account that the IIS instance is running from - will not be able to access those files. 任何其他用户帐户-包括运行IIS实例的服务帐户-将无法访问这些文件。

To resolve this issue you need to copy the files from your machine to a location on the server and recreate the IIS application entry, referencing the location on the server. 要解决此问题,您需要将文件从计算机复制到服务器上的某个位置,然后重新创建IIS应用程序条目,并引用服务器上的位置。 You might still need to monkey with the security on the server-local folder. 您可能仍然需要仔细研究服务器本地文件夹上的安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM