StrataFrame Forum

No Web Controls in VS2008

http://forum.strataframe.net/Topic19275.aspx

By Terry Carroll - 9/10/2008

I can’t get the Stataframe Toolbox Web controls to load onto the Toolbox tab in Visual Studio 2008. No problem with the windows controls or the web controls in VS 2005.  I need some help.

I have installed and uninstalled Stataframe vs 1.6.5 (dated 3/12/2008) several times. Before installing I have searched and removed all Microfour*.* files and checked that all Strataframe dlls are removed are from GAC.

And, I just uninstalled and reinstalled Visual Studio 2008 professional. Same outcome, no web toolbox controls.

The menu option to “Create Strataframe Toolbox Tab” runs and adds the tab, “Strataframe Controls and Components” however no controls are added. When I close VS 2008 the tab is not saved!

The sample CRM application generates the following error when the “Customers” or “Order Entry” menu option is clicked. Maybe this will provide a clue!

TargetInvocationException

Exception has been thrown by the target of an invocation.

MissingMethodException

  Method not found: 'Void MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.set_ParentForm(MicroFour.StrataFrame.UI.Windows.Forms.BaseForm)'.

Source     : mscorlib

Stack Trace:

   at SampleCRMApplication.CustomerMaintenance.InitializeComponent()

   at SampleCRMApplication.CustomerMaintenance..ctor()

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)

   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at SampleCRMApplication.CRMMain.LaunchForm(Type FormType)

   at SampleCRMApplication.CRMMain.cmdCustomers_Click(Object sender, EventArgs e)

   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ToolStrip.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)

   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Thanks for any help!

By Dustin Taylor - 9/11/2008

You have to have be editing valid asax file for the toolbox tab to show (it only shows controls valid for the current document), but past that I'm not sure why they wouldn't be showing up for you. Does it work when you create the tab manually?

1) Right click in the toolbox and select "Add Tab"

2) Give your tab a name, then right click within it and select "Choose Items"

3) Select "Browse..."

4) Navigate to your strataframe assemblies directory (C:\Program Files\MicroFour\StrataFrame\Assemblies by default) and select "MicroFour StrataFrame UI.dll"

5) Sort the resulting list by Namespace and select all items in the MicroFour.StrataFrame.UI.Web namespace

Does that populate your tab with the SF web controls?

By Paul Chase - 9/11/2008

Hi Dustin

I was just talking to Terry about this, he had previously followed the instructions in this post http://forum.strataframe.net/Topic12892-22-1.aspx. He is having some other issues as well type editor's not working and crashes in the CRM app, all issues that I don't get on any of my system's so something must have gotten screwy somewhere with the manuall installation.

He has tried unintalling and re-installing SF deleting dll's from gac  etc but is still running into the same wierd issues do you have a step by step on how to "smoke" all the SF install stuff to make sure he gets a clean re-install. I am sure that that will go along way to getting his problems squared away.

By Trent L. Taylor - 9/11/2008

The most important thing is to just clear out the GAC of any MicroFour assemblies and then the only other place that could cuase a problem would be the c:\Program Files\Common Files\MicroFour\StrataFrame.  You can remove all of the MicroFour assemblies (and XML files) from here as well.  Then perform an install and all should be well.

Also, as for the CRM sample...it is toast and will be "smoked" altogether in the next update.  This is no longer a support sample as it does not show SF in a true light any longer (nor has it for a while).  If you want a sample to look at all around and the sample that we are pusing, then load the StrataFlix sample found here: http://forum.strataframe.net/FindPost18186.aspx .  This sample will continue to grow and shows how to do virtually everything that you will need to do when creating an app with SF including creint custom controls, custom data binding, reports, data driven List Populations, etc.

By Terry Carroll - 9/11/2008

I have tried to access the toolbox while in a aspx page. No controls.

Also I tried to add the controls manually. The process act as if it was adding something, however no controls were added.

I plan on trying the following steps:

1.   UnInstall Strataframe

2.   Delete all Strataframe files

3.   Check that all Microfour DLLs are removed from the GAC

4.   UnInstall VS 2008 and delete all files

5.   ReInstall VS 2008

6.   Download and install the latest version of Strataframe. Now using build 3/12/2008.

7.   ReInstall Strataframe.

8.   If this fails I will try recommend my development machine for an Exorcism.

Wish me luck!

By Terry Carroll - 9/11/2008

I just complete All the steps in my pervious post, and things got worse.

Maybe the beta has an issue.

When I start VS2008 I get the following message.

Exception
  An error occurred while building the StrataFrame menu.
ArgumentException
  Value does not fall within the expected range.

Source     :

Stack Trace:
   at EnvDTE80.Commands2.Item(Object index, Int32 ID)
   at MicroFour.StrataFrame.AddIns.MenuBasics.ᜂ(DTE2 A_0)
   at MicroFour.StrataFrame.AddIns.AddInManager.OnConnection(Object application, ext_ConnectMode connectMode, Object addInInst, Array& custom)

I'm out of ideas!

By Ivan George Borges - 9/11/2008

Hey Terry.

Have a look at this post:  

http://forum.strataframe.net/FindPost17827.aspx

By Terry Carroll - 9/11/2008

Ivan,

Thank you for the tip. 

I was using XP Pro SP3 so I rolled back SP3 and did a reinstall of SF. No help on the toolbox issue, however it did fix the error I posted that occured when I first entered VS2008 after the 1.6.6.1 update.

I even tried to run VS from my admin account on my machine. Strataframe didn't run in VS when logged into this account, the addins are specific to a user, so I did a reinstall from the admin user account, same issue.

Odd, but I can copy and paste the HTML code for the SF web objects from a VS2005 page and they work fine just can't get them from the toolbox.

I know the product works, I just seem to find the weird problems.

By Terry Carroll - 9/12/2008

I just installed SP1 for VS2008 and it resolved the issue with the toolbox controls.

I now, again,  have a problem with the type editior when I click to select a business object name from the property sheet SF throws an exception. See new post.