facing problem with ref key word in Managed C++ using In WCF(MSE 5.0)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivaec61
    New Member
    • Sep 2014
    • 1

    facing problem with ref key word in Managed C++ using In WCF(MSE 5.0)?

    hi , We developed our application on (Microsoft Enterprise library)MSE 4, then upgraded to MSE5. The problem is that they have removed pointer support in MSE5, which means our code does not support the latest version. we are using managed c++ wrappers and wcf service.
    i am getting these exceptions when i am trying run the service.

    System.Argument Exception: The type 'System.Int32&' may not be used as a type argument.
    at System.RuntimeT ype.ThrowIfType NeverValidGener icArgument(Runt imeType type)
    at System.RuntimeT ype.SanityCheck GenericArgument s(RuntimeType[] genericArgument s, RuntimeType[] genericParamter s)
    at System.RuntimeT ype.MakeGeneric Type(Type[] instantiation)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.ValidatorFa ctory.WrapAndIn strumentValidat or(Validator validator, Type type)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.ValidatorFa ctory.FindOrCre ateValidator(Va lidatorCacheKey cacheKey, Func`3 wrapAndInstrume nt)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.ValidatorFa ctory.CreateVal idator(Type targetType, String ruleset)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.ValidationF actory.CreateVa lidator(Type targetType, String ruleset)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.Integration .WCF.Validation ParameterInspec tor.CreateInput ParameterValida tor(ParameterIn fo param,
    String ruleSet)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.Integration .WCF.Validation ParameterInspec tor..ctor(Opera tionDescription operation, String ruleS
    et)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.Integration .WCF.Validation Behavior.ApplyD ispatchBehavior (OperationDescr iption operationDescri pt
    ion, DispatchOperati on dispatchOperati on)
    at Microsoft.Pract ices.Enterprise Library.Validat ion.Integration .WCF.Validation Behavior.ApplyD ispatchBehavior (ContractDescri ption contractDescrip tio
    n, ServiceEndpoint endpoint, DispatchRuntime dispatchRuntime )
    at Microsoft.Pract ices.Enterprise Library.Validat ion.Integration .WCF.Validation Behavior.ApplyD ispatchBehavior (ServiceEndpoin t endpoint, EndpointDisp
    atcher endpointDispatc her)
    at System.ServiceM odel.Descriptio n.DispatcherBui lder.Initialize ServiceHost(Ser viceDescription description, ServiceHostBase serviceHost)
    at System.ServiceM odel.ServiceHos tBase.Initializ eRuntime()
    at System.ServiceM odel.ServiceHos tBase.OnBeginOp en()
    at System.ServiceM odel.ServiceHos tBase.OnOpen(Ti meSpan timeout)
    at System.ServiceM odel.Channels.C ommunicationObj ect.Open(TimeSp an timeout)
    at System.ServiceM odel.Channels.C ommunicationObj ect.Open()
    at GlobalToWCFServ erSideWrapper.W cfServerInterfa ce.WcfServiceTh readProc(Object data) in m:\siva.arvapal li_view_global1 \pdms003\global message\global
    towcfserverwrap per\wcfserverin terface.cpp:lin e 110
    Closing down SERVICE1..
    ..normal end


    i am suspecting this problem because of ref key word in Managed c++. please help me how to use alternative approach for ref implementation in our service

    Thanks in advance.....
Working...