AI OnAI Off
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at EPiServer.WebServices.DataFactoryService.GetDefaultPageData(PageReference pageLink, Int32 pageTypeID)
This is an RC4 server, is it a bug that has been fixed in the release version?
/Fredrik, Internetfabriken
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at EPiServer.WebServices.DataFactoryService.IsTrusted(String siteName)
at EPiServer.WebServices.DataFactoryService.GetDefaultPageData(PageReference pageLink, Int32 pageTypeID)
--- End of inner exception stack trace ---
@Christian.gnosspelius. I want to get pagedata using PageStoreService, but i am getting exception "The type initializer for 'EPiServer.Security.PrincipalInfo'". Can you please help me is sorting out this problem. I am using CMS 6. My code is:
PageStoreService pageContent = new PageStoreService();
LanguageSelector selector = new LanguageSelector("en-US");
RawPage page = new RawPage();
page = pageContent.GetPage(new EPiServer.Core.PageReference(423),
selector, EPiServer.Security.AccessLevel.Read);
PageRef.ID = 4; PageRef.WorkID = ???; // WorkID? What should I put here? PageRef.RemoteSite = "????"; // No matter what I put here I get a // System.Collections.Generic.KeyNotFoundException rawPage = dfs.GetDefaultPageData(PageRef, 90);
Have tried site shortname, url with and without http://, empty string..... /Fredrik, Internetfabriken