Unhandled Exception: System.TypeInitializationException: The type initializer for 'umbraco.cms.businesslogic.CMSNode' threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: str at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.InternalSecurityPermissions.get_AppPathDiscovery() at System.Web.HttpRuntime.get_AppDomainAppPath() at umbraco.GlobalSettings.get_FullpathToRoot() at umbraco.cms.businesslogic.CMSNode..cctor() --- End of inner exception stack trace --- at umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) at umbraco.cms.businesslogic.Content..ctor(Int32 id) at umbraco.cms.businesslogic.web.Document..ctor(Int32 id)
In web appliacation it works.
I think that same additional configuration (other than connection string ) should be done...
How to create Document class object in forms application?
Hi!
I want to develop forms application which navigate for all nodes in content umbraco tree and will save property values at specified time.
I have problem with initialization Document object in forms or console appliaction, the line bellow.:
GlobalSettings.DbDSN = @"connection string";
Document
doc = new Document(1048);
It raise error:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'umbraco.cms.businesslogic.CMSNode' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: str
at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
at System.Web.InternalSecurityPermissions.get_AppPathDiscovery()
at System.Web.HttpRuntime.get_AppDomainAppPath()
at umbraco.GlobalSettings.get_FullpathToRoot()
at umbraco.cms.businesslogic.CMSNode..cctor()
--- End of inner exception stack trace ---
at umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id)
at umbraco.cms.businesslogic.Content..ctor(Int32 id)
at umbraco.cms.businesslogic.web.Document..ctor(Int32 id)
In web appliacation it works.
I think that same additional configuration (other than connection string ) should be done...
Thank for any reply.
is working on a reply...