StrataFrame Forum

Errors Loading BO Mapper

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

By Michael Reese - 8/23/2006

When I load the Business Object Mapper I get the attached errors.

My workstation is a

Dell 810 Laptop

WindowsXP SP2

VS2005

SQL server 2005

By StrataFrame Team - 8/24/2006

The first error is possibly coming from a project type or project item type within your solution.  The second error is occuring because the database connection for StrataFrame has been changed.  In VS, go to the StrataFrame menu and then to the Database Connection option.  In the window, edit the database connection and make sure that it it pointing to the StrataFrame database, not to the StrataFrameSample databse or whatever database you're application is using.  This database connection is used by the design-time components to access the StrataFrame database.  It is not used by the runtime components of your application in any way, so it needs to stay pointing to the StrataFrame database.
By John Grzegorczyk - 8/28/2006

I am having the same issue with one added problem. When i close the business object mapper i get the following error as well:

AccessViolationException
 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Source     : mscorlib

Stack Trace:
   at System.Runtime.InteropServices.UCOMIConnectionPoint.Unadvise(Int32 dwCookie)
   at EnvDTE._dispSolutionEvents_EventProvider.remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler A_1)
   at EnvDTE.SolutionEventsClass.remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler A_1)
   at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.RemoveSolutionHandlers()

I have tried the solution here and it does not help.

By Trent L. Taylor - 8/28/2006

John,

Try this and see if the error persists.

  1. Create a new project (TestProject)
  2. Create a new business object
  3. Open the BO Mapper
  4. Create a new Mapper project
  5. Select the desired table or structure for the business object
  6. Build the partial class
  7. Exit

Did the error occur?  Thanks. Smile

By dgsoft - 7/19/2009

Hi,

We are in the company has not same problem



AccessViolationException

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.



Source : EnvDTE



Stack Trace:

at EnvDTE.ProjectItem.get_Name()

at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.ᜁ(Project A_0, String A_1)

at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.ᜁ(String A_0, Project A_1)



The development currently stay, because not possible to rebuild business object!

Please help ASAP!



OS. Windows Server 2009 R2 Version.5.2 R2 (build 3790.srv03_sp2_gdr.090319-1204: ServicePack 2)

- my steps to solve problem

- reinstall Strataframe framework - does not help

- uninstall installAware - does not help

- Create new project/bo/ and so on.. as was written in your steps - does not help.. error happens!



Please help!
By dgsoft - 7/20/2009

Maybe it will help. for previous problem.. now when I click customize wizard error also happens



NullReferenceException

Object reference not set to an instance of an object.



Source : MicroFour StrataFrame AddIns



Stack Trace:

at MicroFour.StrataFrame.AddIns.DTEprojectsBO.FillProjects(String[] ProjectPaths)

at MicroFour.StrataFrame.AddIns.PartialClassBuilderCustomizeWizard.ᜀ(ᜎ A_0)

at MicroFour.StrataFrame.AddIns.PartialClassBuilderCustomizeWizard.ᜀ()

at MicroFour.StrataFrame.AddIns.PartialClassBuilderCustomizeWizard.OnLoad(EventArgs e)

at System.Windows.Forms.Form.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

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

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

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

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

at System.Windows.Forms.Form.WmShowWindow(Message& m)

at System.Windows.Forms.Form.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)

at System.Windows.Forms.Control.SetVisibleCore(Boolean value)

at System.Windows.Forms.Form.SetVisibleCore(Boolean value)

at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.SetVisibleCore(Boolean value)

at System.Windows.Forms.Control.set_Visible(Boolean value)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.RunDialog(Form form)

at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

at System.Windows.Forms.Form.ShowDialog()

at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.ᜃ()
By dgsoft - 7/20/2009

And Maybe it helps also



I create separate project

Add one line and try build

Imports MicroFour.StrataFrame.AddIns

Public Class Form1

Dim lo As MicroFour.StrataFrame.AddIns.DTEprojectsBO = New MicroFour.StrataFrame.AddIns.DTEprojectsBO()

End Class



------ Build started: Project: WindowsApplication1, Configuration: Debug Any CPU ------

Consider app.config remapping of assembly "EnvDTE, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "7.0.3300.0" [] to Version "8.0.0.0" [C:\Programme\Gemeinsame Dateien\Microsoft Shared\MSEnv\PublicAssemblies\EnvDTE.dll] to solve conflict and get rid of warning.



C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3247:

Found conflicts between different versions of the same dependent assembly.



It seems after InstallAware installation something happens in system with DLLs... DLL hell goes on?
By Juan Carlos Pazos - 7/20/2009

Hi

It seems after InstallAware installation something happens in system with DLLs... DLL hell goes on?

I have the same problem after installing InstallAware, install the NET Framework 2 SDK and the problem should go.

Regards

By Trent L. Taylor - 7/20/2009

Actually we discussed this on another thread in more depth recently as this came up with 4 or 5 other developers (including ourselves) after InstallAware was loaded. You may try Juan's suggestion and see if that resolves it. Other times, reloading the add-ins resolved the issue. Below is a link to the thread. The link will take you to about the mid-way discussion of this, but I am sure that at least one of these should help you get going.



http://forum.strataframe.net/FindPost21973.aspx
By dgsoft - 7/20/2009

Juan Carlos, Trent!

Yeeeeeeessssssssss! It works! Realy we lost completed day today to search whats happens Smile) Thanks a lot!
By Trent L. Taylor - 7/20/2009

Cool Cool ! Glad you got it going!!!