Re: BizTalk Server 2006 System.XML Error



Thanks for your help but I ended up finding the issue. I discovered
that a Microsoft .NET 2.0 Framework update, http://support.microsoft.com/kb/928365,
was causing the issue. Upon removing the update, BizTalk ran again
with no problems. Thanks again.









On Aug 22, 9:44 am, brent.cunning...@xxxxxxxxx wrote:
On Aug 22, 6:03 am, "jeremy"<jboko...@xxxxxxxxxxx> wrote:



Hello-

I am randomly receiving this error when importing and attempting to
start an exported BizTalk MSI file. I have imported the MSI file in a
replicated environment with no problem. However, in this one
particular instance I am receiving the following error. Has anyone
come across it?

FileLoadException exception occurred while the XLANG/s runtime
enlisted a service.

Error message:Could not load file or assembly 'System.Xml\, Version
\=1.0.5000.0\, Culture\=neutral\, PublicKeyToken\=null\, PublicKeyToken
\=null' or one of its dependencies. The given assembly name or
codebase was invalid. (Exception from HRESULT: 0x80131047)

Call stack: at System.Reflection.AssemblyName.nInit(Assembly&
assembly, Boolean forIntrospection, Boolean raiseResolveEvent)

at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)

at System.Reflection.Assembly.ReflectionOnlyLoad(String
assemblyString)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState.PersistState(String
mgmtDBServer, String mgmtDBName, String MsgBoxGroupName, String
ApplicationName, String serviceAssembly, String serviceTypeName,
Guid[] PortIDs, Guid[] LrpIDs, Delegate satAssemblyCacheCallback,
ITransaction transaction)

at Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.GoLive(String
configDBServer, String configDBName, String msgBoxGroupName, String
applicationName, String servicePath, String serviceTypeName, Guid[]
portIDs, Guid[] lrpIDs, Delegate satAssemblyCacheCallback,
ITransaction transaction)

Exception type: BTXEnlistmentException

Additional error information:

Could not load file or assembly 'System.Xml\, Version
\=1.0.5000.0\, Culture\=neutral\, PublicKeyToken\=null\, PublicKeyToken
\=null' or one of its dependencies. The given assembly name or
codebase was invalid. (Exception from HRESULT: 0x80131047)

Exception type: FileLoadException

Source: mscorlib

Target Site: Int32 nInit(System.Reflection.Assembly ByRef, Boolean,
Boolean)

The following is a stack trace that identifies the location where the
exception occured

at System.Reflection.AssemblyName.nInit(Assembly& assembly, Boolean
forIntrospection, Boolean raiseResolveEvent)

at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)

at System.Reflection.Assembly.ReflectionOnlyLoad(String
assemblyString)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState._loadReferencedAssemblies(Hashtable
h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac,
Delegate satAssemblyCacheCallback)

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXServiceStaticState.PersistState(String
mgmtDBServer, String mgmtDBName, String MsgBoxGroupName, String
ApplicationName, String serviceAssembly, String serviceTypeName,
Guid[] PortIDs, Guid[] LrpIDs, Delegate satAssemblyCacheCallback,
ITransaction transaction)

at Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.GoLive(String
configDBServer, String configDBName, String msgBoxGroupName, String
applicationName, String servicePath, String serviceTypeName, Guid[]
portIDs, Guid[] lrpIDs, Delegate satAssemblyCacheCallback,
ITransaction transaction)

i think your assembly is wrong.
the publicKeyToken appears to be null:
"
Error message:Could not load file or assembly 'System.Xml\, Version
\=1.0.5000.0\, Culture\=neutral\, PublicKeyToken\=null\, PublicKeyToken
\=null' or one of its dependencies. The given assembly name or
codebase was invalid. (Exception from HRESULT: 0x80131047)
"
the publicKeytoken for this assembly is supposed to be "b77a5c561934e089".
try to get the assembly from someone else, re-GAC it and try again.

BizTalk Utilities - Frustration free BizTalk Adaptershttp://www.topxml.com/biztalkutilities

I tried to re-add the assembly to the cache, this still did not solve
my issue. It appears the error is being thrown from within the
Orchestration.dll file. I've gone through a reflector and viewed
every instance of System.XML and they all are properly configured.
Any other ideas would be greatly appreciated.


.



Relevant Pages

  • RE: BizTalk Server 2006 System.XML Error
    ... at System.Reflection.Assembly.InternalLoad(String assemblyString, ... h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac, ... Delegate satAssemblyCacheCallback) ...
    (microsoft.public.biztalk.server)
  • Re: BizTalk Server 2006 System.XML Error
    ... Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean ... h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac, ... Delegate satAssemblyCacheCallback) ...
    (microsoft.public.biztalk.server)
  • BizTalk Server 2006 System.XML Error
    ... at System.Reflection.Assembly.InternalLoad(String assemblyString, ... h, String asmName, IAssemblyManager asmMgr, IAssemblyCache ac, ... Delegate satAssemblyCacheCallback) ...
    (microsoft.public.biztalk.server)
  • Re: Newbie question about referencing assemblies in C#.
    ... Please do not send e-mail directly to this alias. ... > do that I have created a seperate project to put the string tables in. ... Attempting download of new URL ... > Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) ...
    (microsoft.public.dotnet.languages.csharp)
  • Xml serialization
    ... XmlSerializer serializer = new XmlSerializer); ... at System.Reflection.Assembly.nLoad(AssemblyName fileName, String ... assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, ... Policy not being applied to reference at this time (private, custom, ...
    (microsoft.public.dotnet.languages.csharp)