我们正在使用共享点事件接收器,如下所示:
public override void ItemUpdated(SPItemEventProperties properties)
{
if (properties.ListItemId > 0 && properties.ListId != Guid.Empty)
{
string id, url, operation;
url = properties.AfterUrl;
operation = "Update";
id = properties.ListItemId.ToString();
//id=properties.ListId.ToString();
JavaSendAlert.AlertWebServiceService jsa = new JavaSendAlert.AlertWebServiceService();
jsa.sendAlert(id,url,operation);
}
JavaSendAlert 是一个使用 Java 制作并在 32 位系统上发布的 WSDL。
我们在这一行遇到异常: JavaSendAlert.AlertWebServiceService jsa = new JavaSendAlert.AlertWebServiceService();
异常(exception)是:
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Users\461167\AppData\Local\Temp\OICE_FEF98CDC-FC33-4071-B497-DC6B21E9E725.0\w1tuwwu5.cmdline"
我们可以用这个异常做什么。
<小时/>谢谢回复
您分享的页面上的错误不是我的。
我的错误路径是 C:\Users\myname\AppData\Local\Temp\OICE_FEF98CDC-FC33-4071-B497-DC6B21E9E725.0\w1tuwwu5.cmdline
在你分享的页面上是@"D:\WINNT\TEMP\eyrpuhyg.cmdline,在互联网上很常见。
我仍然无法解决问题,但是,人们在安装 SQL Server 时遇到了同样的问题 http://social.technet.microsoft.com/Forums/en/sqlsetupandupgrade/thread/480562d9-d5db-4ce6-848a-a334c40dc3b9
谢谢 莫希特·里卡
最佳答案
有了这些信息,我只能猜测...我想说这是一个权限/身份验证问题 - 查看 this知识库。
关于java - 从 sharepoint 2010 事件接收器调用 java webservice,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7501043/