Click here to Skip to main content
15,886,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a C# CustomControl that is compiled into my project. I get the error:

"Invalid Resx file. Type GradientOptions, Calculator, Version=1.0.0.0, Culture=neutral, Calculator PublicKeyToken=null in the data at line 167, position 4 cannot be located. Line 169, position 5"

Lines in question are from the form where I have the control added "frmCalculator.resx" and are as follows:

C#
<assembly alias="Calculator" name="Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <data name="btnA.Gradient" type="GradientOptions, Calculator">
        <value>False; Black; Blue; Horizontal</value>
      </data>


How can I get this to get past this error?

Thanks,
Tim

What I have tried:

The only way I can get it to compile is to remove the Custom Control from the form. The Custom Control works elsewhere.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900