error MSB3041: Specified argument was out of the range of valid values RRS feed

  • Question

  • Building a fairly simple Windows form project using VS2008. Just started getting the error:

    C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets(60,9): error MSB3041: Unable to create a manifest resource name for "Form1.resx". Specified argument was out of the range of valid values.

    C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets(60,9): error MSB3041: Parameter name: offset

    How do I determine what offset it is referring to? There is no obvious clue in Microsoft.CSharp.targets or the designer file.

    Friday, July 19, 2019 10:41 AM

All replies

  • Hello,

    You could select all controls on this form and copy them to a new form followed by copying the code from the bad form to the new form then delete the bad form.

    Or if the project is under source control revert back to an earlier version of the form.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Friday, July 19, 2019 11:59 AM
  • Solved it.

    After a using statement, I had entered ' instead of ;

    Very misleading error message.

    Friday, July 19, 2019 12:12 PM
  • Hi ddemoney,

    Thank you for posting here.

    I am glad that your question has been solved. If so, please post "Mark as answer" to the appropriate answer. So that it will help other members to find the solution quickly if they face the similar issue.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, July 22, 2019 1:21 AM