locked
Policy not being applied to reference at this time RRS feed

  • Question

  • Hi All,

    i get the following error when i deploy my application and run.. I do not get any errors in my local.

    {System.IO.FileNotFoundException: Could not load file or assembly 'MLI.AWDtoILS.Common, Version=4.2.21.37865, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    File name: 'MLI.AWDtoILS.Common, Version=4.2.21.37865, Culture=neutral, PublicKeyToken=null'
       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
       at System.Workflow.Activities.Rules.SimpleRunTimeTypeProvider.get_ReferencedAssemblies()
       at System.Workflow.Activities.Rules.RuleValidation.DetermineExtensionMethods()
       at System.Workflow.Activities.Rules.RuleValidation.get_ExtensionMethods()
       at System.Workflow.Activities.Rules.RuleValidation.GetNamedMethods(List`1 targetTypes, String methodName, BindingFlags methodBindingFlags)
       at System.Workflow.Activities.Rules.RuleValidation.ResolveMethod(Type targetType, String methodName, BindingFlags methodBindingFlags, List`1 argumentExprs, ValidationError& error)
       at System.Workflow.Activities.Rules.MethodInvokeExpression.Validate(CodeExpression expression, RuleValidation validation, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleValidation.ValidateSubexpression(CodeExpression expr, RuleExpressionInternal ruleExpr, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleExpressionWalker.Validate(RuleValidation validation, CodeExpression expression, Boolean isWritten)
       at System.Workflow.Activities.Rules.MethodInvokeExpression.Validate(CodeExpression expression, RuleValidation validation, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleValidation.ValidateSubexpression(CodeExpression expr, RuleExpressionInternal ruleExpr, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleExpressionWalker.Validate(RuleValidation validation, CodeExpression expression, Boolean isWritten)
       at System.Workflow.Activities.Rules.BinaryExpression.Validate(CodeExpression expression, RuleValidation validation, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleValidation.ValidateSubexpression(CodeExpression expr, RuleExpressionInternal ruleExpr, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleExpressionWalker.Validate(RuleValidation validation, CodeExpression expression, Boolean isWritten)
       at System.Workflow.Activities.Rules.BinaryExpression.Validate(CodeExpression expression, RuleValidation validation, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleValidation.ValidateSubexpression(CodeExpression expr, RuleExpressionInternal ruleExpr, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleExpressionWalker.Validate(RuleValidation validation, CodeExpression expression, Boolean isWritten)
       at System.Workflow.Activities.Rules.RuleValidation.ValidateConditionExpression(CodeExpression expression)
       at System.Workflow.Activities.Rules.RuleExpressionCondition.Validate(RuleValidation validation)
       at System.Workflow.Activities.Rules.Rule.Validate(RuleValidation validation)
       at System.Workflow.Activities.Rules.RuleSet.Validate(RuleValidation validation)
       at System.Workflow.Activities.Rules.RuleEngine..ctor(RuleSet ruleSet, RuleValidation validation, ActivityExecutionContext executionContext)
       at System.Workflow.Activities.Rules.RuleSet.Execute(RuleExecution ruleExecution)
       at MLI.AWDtoILS.BackendDataAccess.RulesComponents.POSPolicyRetrievalData.LoadPosPolicyRetrievalData(PolicyDataRow rowBackendPolicyData, PoliciesRow rowPolicy, Hashtable hashCsdInputFields, String domainName) in C:\Ashish\AWD Custom Code Rewrite\MLI.IIS.AWD\Main\Source\MLI.AWDtoILS.BackendDataAccess\RulesComponents\POSPolicyRetrievalData.cs:line 133

    === Pre-bind state information ===
    LOG: User = MLIDDOMAIN1\manuash
    LOG: DisplayName = MLI.AWDtoILS.Common, Version=4.2.21.37865, Culture=neutral, PublicKeyToken=null
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/DST/AWD/Viewstation/bin/
    LOG: Initial PrivatePath = NULL
    Calling assembly : System.Workflow.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: No application configuration file found.
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    }

    I checked out some posts and i find this is something related to x32 bit vs x64 bit os.. Does it mean that the code will work only in 32?? what should i do to make it work on x64 machine as well(which i believe the server is) :(

    pls help!!

    Monday, April 23, 2012 3:41 PM

Answers

  • You are in the wrong forum.  This forum is activating and validating Windows 7.  This forum has nothing to do with programming.  Please review the list of TechNet forums at

    http://social.microsoft.com/Forums/en-US/categories

    and select a more appropriate forum.


    Colin Barnhorst Windows 7 Ultimate x64 on DIY with 6GB ram.


    Monday, April 23, 2012 7:52 PM
    Answerer