Common > FAQ

Error Message in Visual Studio 2008

(1/5) > >>

xaydin:
Hello, I recently downloaded the WCL personal 6.5 and installed it on my laptop. I am using Visual Studio 2008 professional on Vista Home. When I tried to test the provided demos in VB.NET and C# I received an error from VS.

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'wcl, Version=6.5.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

After reading some of the previous posts it may be because I am running Vista.  What are your recommendations to get the framework running?

I have not tried WCL lite nor have I tried it on XP (it would be SP2). Any information given will be most appreciated.

Thank you.

-----------
Xaydin
"If there is a better solution...find it"  - Thomas Edison

Mike Petrichenko:
Install WCL in different location. By default it is installed in C:\program files\WCL but Vista does not allow to access this folder from applications (VS). Install the library to other place.

Nature:
Hi, I am having a similar problem :

The wcl.dll has been added as a reference to a c#.net code library which is in tern used in a c#.net Windows Forms application, this was built using Visual Studio 2005 and packaged into an MSI. Once the MSI is run on the target machine the wcl.dll appears in the correct Progam Files sub folder alongside the DotNet dll and exe files.

The target machine is running Windows XP Service Pack 2 with DotNet Framework 2.0 installed, are there any other prerequisites for using the wcl.dll?

The full error message is detailed below, this happens when I called the wcl.wclBluetoothRadio.SetName() method but I guess it would happen with any method call to the wcl.dll :

------------------------------------------

type=System.Runtime.InteropServices.COMException
Message : Could not load file or assembly 'wcl, Version=6.6.2.0, Culture=neutral, PublicKeyToken=ecf108583bd9ca73' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

------------------------------------------
Thanks

Mike Petrichenko:
Hi,

you have to redistribute vcredist_x86.exe together with your app and install it on target PC. You can find this file in the WCL installation folder.

Nature:
Hi,

I have copied vcredist_x86.exe to the target machine and run it but I am still having the same problem. Also is there a silent install version fo the vcredist_x86.exe available? This is so that we can do deployments over a distributed network without needing a user present to click the dialogs.

Many thanks

Navigation

[0] Message Index

[#] Next page

Sitemap 1 2 3 4 5 6 7 
Go to full version