我有一个小问题,以一个大话题结束。是否有可能 - 是的,如何 - 在 SharePoint 2013 托管应用程序中使用 C# 代码?
我试图在我的项目中有一个 .asmx 文件。然后我得到这个错误。
@"Error 1
CorrelationId: 9c1ea930-a131-4f5b-bff5-8a1a61fe34d9
ErrorDetail: There was a problem with activating the app web definition.
ErrorType: App
ErrorTypeName: App Related
ExceptionMessage: Microsoft.SharePoint.SPException: Exception from HRESULT: 0x81070964 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x81070964
然后我尝试了一些教程,比如......
http://chuvash.eu/2012/02/13/custom-httphandler-in-sharepoint-for-getting-dynamic-javascript-code/
http://blogs.msdn.com/b/kaevans/archive/2010/08/04/deploying-an-asp-net-httphandler-to-sharepoint-2010.aspx
http://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wcf-rest-service-hosted-in-sharepoint-and-deployed-in-a-wsp.aspx
但有时我没有正确理解,或者有时我在编译所有内容时遇到其他问题。我在获取程序集 ID/名称时也遇到了问题。因为项目没有编译好的 DDL 文件。
我一般想要什么?带有 SP 托管应用程序(适用于 SP 2013)的 .app 文件,其中包括用于 SP 客户端对象模型的 Web 服务。
所以我考虑在 CodeBehind 中使用“default.aspx”。所以我可以在 aspx 的“后面”执行脚本。但是后来它找不到程序集......或者还有别的东西。
有人可以帮我吗?如果你有一些想法,你可以!拜托!提供给我。谢谢!