Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 618025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:29:58+00:00 2026-05-13T18:29:58+00:00

It is occurring when I try to compile a Windows Mobile class library, after

  • 0

It is occurring when I try to compile a Windows Mobile class library, after I added the necessary XMTA file to provide attributes to my custom component.

I have searched the net, and I though I had found a solution in here but after I test it throughly the only thing it does is to remove the XMTA file generation.

I’m running out of option, because I simply don’t understand why the error occurs.

Everything else works just fine, and I have several other XMTA files in the project and every one of them compiles with no problem, just this new one I have added.

Can someone shed some light in it?


These are the parameters and execution log of the genasm:

AsmmetaFile = ;
KeyFile = ; 
NDPVersion = v3.5; 
PlatformFamilyName = PocketPC; 
PlatformID = 4118C335-430C-497f-BE48-11C3316B135E; 
ReferencePath = C:\Program Files\...\v3.5\WindowsCE\System.Core.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Data.DataSetExtensions.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Data.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Drawing.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Windows.Forms.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Xml.dll;
                C:\Program Files\...\v3.5\WindowsCE\System.Xml.Linq.dll; 
SourceAssembly = obj\Debug\PJonDevelopment.Mobile.Core.dll; 
XmlSource = Forms\OpenFileDialogEx.xmta;

C:\Program Files\...\v3.5\Bin\GenAsm.exe 
     "C:\Users\Paulo Santos\...\PJonDevelopment.Mobile.dll" 
  -o "C:\Users\Paulo Santos\...\PJonDevelopment.Mobile.PocketPC.asmmeta.dll" 
  -x "C:\Users\Paulo Santos\...\OpenFileDialogEx.xmta" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Core.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Data.DataSetExtensions.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Data.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Drawing.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Windows.Forms.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Xml.dll" 
 -xr "C:\Program Files\...\v3.5\WindowsCE\System.Xml.Linq.dll" 
 -frameworkversion v3.5 
 -platformfamily PocketPC

error : 
  genasm.exe(1) : 
     There was an error finalizing type . 
     Object reference not set to an instance of an object.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:29:59+00:00Added an answer on May 13, 2026 at 6:29 pm

    Because the error message was heavily misleading, I didn’t found the solution at first.

    The problem occurred because in one of my classes was inheriting from a ReadOnlyCollection<T> and this is not supported by the genasm.

    As it’s stated in this Microsoft Forum Thread.

    So to work around this problem, I moved the classes that didn’t require design time attributes to another assembly and the projects compiled just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.