2.0 web service msi



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.Reflection.CustomAttributeFormatException:
Binary format of the specified custom attribute was invalid.

Stack Trace:


[CustomAttributeFormatException: Binary format of the specified custom
attribute was invalid.]
System.Reflection.CustomAttribute._CreateCaObject(Void* pModule,
Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
System.Reflection.CustomAttribute.CreateCaObject(Module module,
RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32&
namedArgs) +104
System.Reflection.CustomAttribute.GetCustomAttributes(Module
decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount,
RuntimeType attributeFilterType, Boolean mustBeInheritable, IList
derivedAttributes) +482

System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeFieldInfo
field, RuntimeType caType) +72
System.Reflection.RuntimeFieldInfo.GetCustomAttributes(Boolean
inherit) +33

System.Xml.Serialization.XmlAttributes..ctor(ICustomAttributeProvider
provider) +207

System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel
model, String ns, Boolean openModel, XmlAttributes a) +1752

System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638


thanks for the help

.



Relevant Pages

  • 2.0 web service msi
    ... I have a 2.0 web service. ... Binary format of the specified custom attribute was invalid. ... model, String ns, Boolean openModel, XmlAttributes a) +1752 ... model, String ns, ImportContext context, String dataType, XmlAttributes ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... I've added the web service call directly to my Data binding method ... expected but not present in the security header of the incoming ... the username token to the message. ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Consume Web Service...
    ... to call a web service in my orchestration. ... Xml parameters as string datatypes and processes this Xml and returns ... ignoreCommit, XMessage msg) ...
    (microsoft.public.biztalk.general)
  • Re: DateTime WebService Discrepancy.
    ... When the datetime is sent by the webservice, ... > Ofcourse I had not even though of just passing a string as a parameter ... > locally and cut out the call to the web service. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: proxy error when consuming web service
    ... public string GetQuote ... I *didn't* pass anything to the proxy property of the service ... 'Assume RemoteWebService is a remote web service proxy class. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)