Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Active content blocked by IE -> Designer fails to load.
 

Active content blocked by IE -> Designer fails to load.

Hi everyone,

I've recently installed IE8 RC1, and it worked fine, but today I encountered a problem. When I load a project in Visual Studio 2008, the designer fails to load [Object reference not set to an instance of an object] and IE's "Active content restricted" bar appears. However, allowing blocked content does not fix the issue.

Call stack excerpt:
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.GetMemberTargetObject(XmlElementData xmlElementData, String& member)
[...]
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

Also, a screenshot of the problem is located here.

I'm about to submit this as a bug, but any workarounds or experience would be appreciated.
Yuriy Opryshko  Thursday, March 05, 2009 10:05 AM
The problem wasn't actually due to Internet Explorer, nevertheless I had to uninstall IE8 as I kept getting the blocked content error. Setting to allow local files' script access did not work.
Yuriy Opryshko  Thursday, March 05, 2009 1:44 PM
The problem wasn't actually due to Internet Explorer, nevertheless I had to uninstall IE8 as I kept getting the blocked content error. Setting to allow local files' script access did not work.
Yuriy Opryshko  Thursday, March 05, 2009 1:44 PM
Have you solved this problem? I am running VS2008 with IE8 RC2 and having the same problem. I can view the designer for forms just fine, but I get this error when viewing the designer for a serviceinstaller. It seems that the error caused the 'create installer' operation to not complete.
VaelekPDS  Thursday, March 12, 2009 1:42 AM
Since posting I have solved the issue I was having, only to have it appear in another scenario, only to solve it again.

For the service installer, I actually had created one previously but it seemed to be missing something. I excluded it from the project and attempted to create another. This kept failing with a fairly meaningless error. I then deleted the files left from the existing one (to the recycle bin) and then it tried to create it but that is when I ran into the active content problem. I later noticed that the .resx file for the installer had an exclamation point over it, the file was missing (though this may be related to the active content problem in the first place). Anyhow, I restored the old .resx and then it opened the designer with no problem.

I have been taking this project back and forth between VS2008 and SharpDevelop 3. After resolving the above problem, I comitted the whole thing to SVN and loaded it up at work on SharpDevelop today. All was well until I returned home to load it back into VS2008. I started getting the same active content problem, but this time it was while opening the designer for the main form of my app. On a hunch I ran VS2008 as Admin, but that did not help. Just before giving up and trying it in SharpDevelop at home, I rebuilt the solution. After the build completed, the form opened in the designer with no problem! I am thinking that the active content issue is not so much the problem, as it is a result of designer errors in VS2008 when you have IE8 installed. Yes there was the active content blocked warning, but underneath that, the errors shown look similar to those VS2005 would give when something got messed up and the designer would no longer load certain forms. As I write this, I am becoming more certain of that ascertation. The combination of the missing resx, and the fact that the 2nd time around it worked again by simply rebuiding, sound pretty similar to causes of the VS2005 designer issues.

Anyhow, hopefully this post will save someone else hours of work trying to figure it out.

-Vaelek
  • Proposed As Answer byVaelekPDS Friday, March 13, 2009 2:08 AM
  •  
VaelekPDS  Friday, March 13, 2009 2:08 AM

You can use google to search for other answers

Custom Search

More Threads

• Problems with the CollectionEditor and Properties
• Cut & Paste
• Problem with VS 2003 user controls in VS 2005 RC1 Toolbox
• Keypress Listening
• Custom control cannot be moved in VS.NET designer
• CodeDom passing an enum to a method invoke
• how to send message to BlackBerry mobile
• Raising Event with e.Cancel property
• How do I group my radio button controls?
• How to set window system colours using API & c#