Now i'm getting this error. This time, the error is happening upon creation of the service. Not the adding of the activity message.
Server Error in '/Web' Application.
Unable to deserialize object from response body of type CommunityServer.WebServices.Serialization.Membership.ApiKeyListSerialized
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Unable to deserialize object from response body of type CommunityServer.WebServices.Serialization.Membership.ApiKeyListSerialized
Source Error:
Public Class ActivityMessages
Line 6: Public Shared Sub AddedQuoteMessage(ByRef quote As Quote)
Line 7: Dim service As New CommunityServer.WebServices.Membership.MembershipService("http://www.spiritopedia.com", "XXXXX", "XXXXX")
Line 8: Dim message As New ActivityMessage
Line 9: message.Body = "body"
|
Source File: C:\Users\Paul\Documents\Visual Studio 2008\Projects\Spirit.Quotes\Spirit.Quotes\BLL\ActivityMessages.vb Line: 7
Stack Trace:
[NullReferenceException: Unable to deserialize object from response body of type CommunityServer.WebServices.Serialization.Membership.ApiKeyListSerialized]
CommunityServer.WebServices.Serialization.Common.Response.GetResponseObject() +222
CommunityServer.WebServices.Common.BaseService.ValidateUserApiKey(String username, String apiKey) +129
CommunityServer.WebServices.Common.BaseService..ctor(String siteUrl, String username, String apiKey) +477
CommunityServer.WebServices.Membership.MembershipService..ctor(String siteUrl, String username, String apiKey) +37
Spirit.Quotes.BLL.ActivityMessages.AddedQuoteMessage(Quote& quote) in C:\Users\Paul\Documents\Visual Studio 2008\Projects\Spirit.Quotes\Spirit.Quotes\BLL\ActivityMessages.vb:7
Spirit.Quotes.BLL.QuotesCL.AddQuote(Quote& quote) in C:\Users\Paul\Documents\Visual Studio 2008\Projects\Spirit.Quotes\Spirit.Quotes\BLL\QuotesCL.vb:33
ASP.addnew_aspx.btnAddQUote_Click(Object sender, EventArgs e) in C:\Users\Paul\Documents\Visual Studio 2008\Projects\Spirit.Quotes\Web\addnew.aspx:36
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433