Szymon Kobalczyk's Blog

A Developer's Notebook

  Home  |   Contact  |   Syndication    |   Login
  84 Posts | 5 Stories | 164 Comments | 380 Trackbacks

News

View Szymon Kobalczyk's profile on LinkedIn

Twitter












Article Categories

Archives

Post Categories

Image Galleries

Blogs I Read

Tools I Use

Today I was working on migrating our project from Beta 1 to Beta 2. Sadly it didn't went as smooth as one could expect.

We were getting strange NotSupportedException from mscorlib.dll with message:

Cannot create uninitialized instances of types requiring managed activation.

After spending half of day on debugging it turned out that the reason was some conflict between Remoting and ResourceManager (but probably it happens in serialization). It is thrown if you load any images from resources after configure remoting.

This bug was already reported to Microsoft here and here. The workaround is to configure remoting  programmatically rather then using config file.

posted on Wednesday, May 25, 2005 4:52 PM

Feedback

# re: Error loading images from a resources after calling RemotingConfiguration.Configure 9/16/2005 4:29 AM Chris Didion
Wow - thanks. Got the same error after doing the exact same thing. Moved my de-serialization code to before the remoting configuration and now everything works fine.

Thanks again.

# re: Error loading images from a resources after calling RemotingConfiguration.Configure 9/16/2005 4:51 AM Szymon
I'm glad that it saves others valuable time. As you can see both bug reports are closed on Microsoft so I hope it was fixed in latest VS2005 CTPs (August??).

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 4 and 2 and type the answer here: