I have a 2.0 web service. When I do a direct copy solution folder to a
different machine the web service works. I have created a web
deployment project and web setup project in VS 2005 to create a msi.
When I install web service through msi I get the below error
Binary format of the specified custom attribute was invalid.
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.
What am I missing when installing through msi?
Exception Details: System.Reflecti on.CustomAttrib uteFormatExcept ion:
Binary format of the specified custom attribute was invalid.
Stack Trace:
[CustomAttribute FormatException : Binary format of the specified custom
attribute was invalid.]
System.Reflecti on.CustomAttrib ute._CreateCaOb ject(Void* pModule,
Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
System.Reflecti on.CustomAttrib ute.CreateCaObj ect(Module module,
RuntimeMethodHa ndle ctor, IntPtr& blob, IntPtr blobEnd, Int32&
namedArgs) +104
System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Module
decoratedModule , Int32 decoratedMetada taToken, Int32 pcaCount,
RuntimeType attributeFilter Type, Boolean mustBeInheritab le, IList
derivedAttribut es) +482
System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Runtim eFieldInfo
field, RuntimeType caType) +72
System.Reflecti on.RuntimeField Info.GetCustomA ttributes(Boole an
inherit) +33
System.Xml.Seri alization.XmlAt tributes..ctor( ICustomAttribut eProvider
provider) +207
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +1752
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
thanks for the help
different machine the web service works. I have created a web
deployment project and web setup project in VS 2005 to create a msi.
When I install web service through msi I get the below error
Binary format of the specified custom attribute was invalid.
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.
What am I missing when installing through msi?
Exception Details: System.Reflecti on.CustomAttrib uteFormatExcept ion:
Binary format of the specified custom attribute was invalid.
Stack Trace:
[CustomAttribute FormatException : Binary format of the specified custom
attribute was invalid.]
System.Reflecti on.CustomAttrib ute._CreateCaOb ject(Void* pModule,
Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
System.Reflecti on.CustomAttrib ute.CreateCaObj ect(Module module,
RuntimeMethodHa ndle ctor, IntPtr& blob, IntPtr blobEnd, Int32&
namedArgs) +104
System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Module
decoratedModule , Int32 decoratedMetada taToken, Int32 pcaCount,
RuntimeType attributeFilter Type, Boolean mustBeInheritab le, IList
derivedAttribut es) +482
System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Runtim eFieldInfo
field, RuntimeType caType) +72
System.Reflecti on.RuntimeField Info.GetCustomA ttributes(Boole an
inherit) +33
System.Xml.Seri alization.XmlAt tributes..ctor( ICustomAttribut eProvider
provider) +207
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +1752
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
thanks for the help