When i add a new document to the queue, I receive this error in the event log. I used the example from the book in chapter 5 but i left out the scheduled piece. I am unable to find anything via searches on google etc. Your help would be appreciated. Thank you!
XSLT File
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="notifications">
There is a new Test Document!
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="notification">
Document Type: <xsl:value-of select="TypeName" />
Document Name: <xsl:value-of select="DocumentTitle" />
Document Category: <xsl:value-of select="CategoryName" />
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Event log error:
Description: The assembly containing the content formatter could not be loaded.
EventParameters:
Instance Name: MyInstance 'Renamed for forum'
Application Name: Documents
Content Formatter Assembly Name:
Description: String cannot have zero length.
InstanceName: MyInstance 'Renamed for forum'
ApplicationName: Documents
Component: Distributor
ComponentDetails: DistributorName: MyDistributor 'Renamed for forum'
Thread: 4
ACF:
<ContentFormatter>
<ClassName>XsltFormatter</ClassName>
<Arguments>
<Argument>
<Name>XsltBaseDirectoryPath</Name>
<Value>%_ApplicationBaseDirectoryPath_%\Formatters</Value>
</Argument>
<Argument>
<Name>XsltFileName</Name>
<Value>NewDocumentByType.xslt</Value>
</Argument>
</Arguments>
</ContentFormatter>
ICF
<Application>
<ApplicationName>Documents</ApplicationName>
<BaseDirectoryPath>%_InstanceBaseDirectoryPath_%\Documents</BaseDirectoryPath>
<ApplicationDefinitionFilePath>ApplicationDefinition.xml</ApplicationDefinitionFilePath>
<Parameters>
<Parameter>
<Name>_NSServer_</Name>
<Value>%_NSServer_%</Value>
</Parameter>
<Parameter>
<Name>_SQLServer_</Name>
<Value>%_SQLServer_%</Value>
</Parameter>
<Parameter>
<Name>_ApplicationBaseDirectoryPath_</Name>
<Value>%_InstanceBaseDirectoryPath_%\Documents</Value>
</Parameter>
</Parameters>
</Application>
</Applications>
I fixed this by building a custom Formatter.
No comments:
Post a Comment