StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



"Provider Failure"Expand / Collapse
Author
Message
Posted 05/12/2008 11:16:58 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:55:17 PM
Posts: 336, Visits: 2,078
I am setting up my laptop as I will be out of town the rest of the week. I get a provider failer when i try to run the application a the Set Connections line in appmain. I deleted the commection info in the connection data folder but that didnt help ...Any ideas?

System.Management.ManagementException was unhandled
  Message="Provider failure "
  Source="System.Management"
  StackTrace:
       at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)    at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()    at System.Management.ManagementObjectCollection.get_Count()    at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSManagementBaseObject()    at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSFullName()    at MicroFour.StrataFrame.UI.Windows.Forms.GradientFormHeader..ctor()    at MicroFour.StrataFrame.UI.Windows.Forms.GradientFormHeader..ctor(IContainer Container)    at MicroFour.StrataFrame.UI.Windows.Forms.WizardControl.InitializeComponent()    at MicroFour.StrataFrame.UI.Windows.Forms.WizardControl..ctor()    at MicroFour.StrataFrame.Data.ConnectionWizard.InitializeComponent()    at MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK, Boolean PersistData)    at MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK)    at MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard(Int32 ApplicationPK)    at MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard()    at MicroFour.StrataFrame.Data.ConnectionManager.SetConnections()    at ActionLabor.Payroll.Base.AppMain.SetDataSources() in C:\Action Labor Payroll\Payroll\AppMain.vb:line 86    at MicroFour.StrataFrame.Application.StrataFrameApplication.Raise_SetDataSources()    at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()    at ActionLabor.Payroll.Base.AppMain.Main() in C:\Action Labor Payroll\Payroll\AppMain.vb:line 34
  InnerException:

Post #16333
Posted 05/13/2008 9:46:53 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:43:51 PM
Posts: 4,241, Visits: 4,285
We actually test on the OS within certain objects.   In this example, the GradientForm header is just referencing standard .NET classes to determine if the OS is Vista.  This is the class that it would be calling:

Microsoft.VisualBasic.Devices.ComputerInfo

This contains the full name of the OS along with some other things.  This is probably an indication that your .NET installation on this client is not up to par or you are missing some standard .NET assemblies.

Post #16364
Posted 05/13/2008 12:42:26 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:55:17 PM
Posts: 336, Visits: 2,078
That is strange it is my on my XP laptop and has both vs 05 and 08 installed i cant remember the last time i compiled the app on this machine but it has compiled and ran before. If I t now have time i will look into this a bit more but for right now i can use remote desktop.
Post #16374
Posted 05/13/2008 12:55:05 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:43:51 PM
Posts: 4,241, Visits: 4,285
Just create a test program and call the above method.  You can also get to it like this:

My.Computer.Info.OSFullName

(or something along those lines )

Post #16375
Posted 05/13/2008 3:14:33 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:55:17 PM
Posts: 336, Visits: 2,078
I picked the wrong week to quit sniffing glue!

The method My.Computer.Name works fine in a basic test windows app but my normal app crashes. I can call the method in the line prior to set connections and it fires ok.

MsgBox(My.Computer.Name) work

ConnectionManager.SetConnections() crash

I am in and out and dont have much time so maybe tonite i can figure this out.

Post #16376
Posted Today @ 3:22:43 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Today @ 10:13:08 AM
Posts: 71, Visits: 230
I had a similar problem and traced it to a WMI issue.

Please review this link.  http://windowsxp.mvps.org/repairwmi.htm 

I downloaded the WMI Diagnois Utility and found the problem.  I hope that it solves your problem.

Post #18049
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:10pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.