Asp.net mvc 尝试使用EktronBlogService.BlogSoapClient().AddPost从另一个web应用程序向ektron cms添加帖子时出错

Asp.net mvc 尝试使用EktronBlogService.BlogSoapClient().AddPost从另一个web应用程序向ektron cms添加帖子时出错,asp.net-mvc,soap,ektron,Asp.net Mvc,Soap,Ektron,我正在尝试从另一个web应用程序向ektron cms添加帖子 为此,我首先使用新的myapplication.EktronBlogService.BlogSoapClient().AddBlog()在cms中创建了一个博客文件夹 这是我使用的代码 AuthenticationHeader header= new AuthenticationHeader(); header.Username = "admin"; header.Password =

我正在尝试从另一个web应用程序向ektron cms添加帖子

为此,我首先使用新的myapplication.EktronBlogService.BlogSoapClient().AddBlog()在cms中创建了一个博客文件夹

这是我使用的代码

AuthenticationHeader header= new AuthenticationHeader();
           header.Username = "admin";
            header.Password = "admin";  

RequestInfoParameters rqInfo = new RequestInfoParameters();

string[] categories = new string[] { "technology", "astronomy" };

BlogVisibility Bvisibility= new BlogVisibility();               
BlogRoll bRoll= new BlogRoll();   

rqInfo.ContentLanguage= 1033;

 myapplication.EktronBlogService.BlogSoapClient  obj= new BlogSoapClient();

obj.AddBlog(header, rqInfo, parentFolderId, "Blog-Namehere", "BlogTitleHere", "BlogDescriptionHere", bVisibility, true, true, true, categories, bRoll);  
在完成上述工作后,我成功地在ekton工作区中创建了博客文件夹,或者我提到的父文件夹

现在,我试图通过使用在新创建的博客文件夹中创建一篇文章

ContentData cData= new ContentData();
            cData.Text="Post content";
            cData.Title="Post Title";

//newBlogID=8589936489

   long response= obj.AddPost(header, rqInfo, 8589936489, cData, categories,true, "MyTag", "www.XYZXYZXYZ.com" );
但我有一个例外如下

System.Web.Services.Protocols.SoapException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at Ektron.Services.Blog.AddPost(Int64 blogID, ContentData PostContent, String[] Categories, Boolean Pingback, String Tags, String TrackbackURL)
source error as below

Line 7607: [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] Line 7608: MyApplication.EktronBlogService.AddPostResponse MyApplication.EktronBlogService.BlogSoap.AddPost(MyApplication.EktronBlogService.AddPostRequest request) { Line 7609: return base.Channel.AddPost(request); Line 7610: } Line 7611:

什么版本的Ektron?您是将MVC应用程序作为第三层运行还是完全独立运行?