Hi,
out of the blue, I started getting errors when trying to open a form that I
have built in VS.Net 2003. The error is regarding an Activex control.
After further investigation, it turns out that I am getting the following
error anytime a drop an ActiveX control on a winform: "One or more of the
types in the assembly unable to load", which is the cause of my form not
opening.
This happens with ANY Activex even though the ActiveX is probably registered
and works at run-time with previously compiled applications. This seems to
be a design-time problem only.
I recently installed a few new software development tools/products, but I
have uninstalled them now to see if it fixes the problem - it doesn't.
Anybody seen this before?
Thanks 9 5435
I uninstalled absoultely everything that I installed in the last few weeks.
Then I unsintalled VS.NET 2003, reinstalled the prerequisites and
reinstalled VS.NET.
Still get the same errors. The only thing I can think of is that one of the
tools I uninstalled came with a prerequisite installation for those who
don't have vb6. That installed a bunch of dlls in to the system directory
and it doesn't have an uninstall.
"Tolga Erdogus" <to**********@alum.mit.edu> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
out of the blue, I started getting errors when trying to open a form that
I have built in VS.Net 2003. The error is regarding an Activex control. After further investigation, it turns out that I am getting the following error anytime a drop an ActiveX control on a winform: "One or more of the types in the assembly unable to load", which is the cause of my form not opening.
This happens with ANY Activex even though the ActiveX is probably
registered and works at run-time with previously compiled applications. This seems
to be a design-time problem only.
I recently installed a few new software development tools/products, but I have uninstalled them now to see if it fixes the problem - it doesn't.
Anybody seen this before?
Thanks
Hi Tolga,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you are adding an ActiveX control
to a windows form in VS.NET 2003 designer, an error "One or more of the
types in the assembly unable to load". If there is any misunderstanding,
please feel free to let me know.
As far as I know, this might be a security problem. You can try to get it
work by adjusting
(to get there... Control Panel - Microsoft .NET Framework 1.1 Wizards -
Adjust .NET Security - Make changes to this computer - Local Intranet)
I also found out that it works ok if your disconnected from the network.
This means that the Visual Studio is trying to read a file from the network
that it really doesn't need since the network doesn't have to be connected
for it to work correctly. Some kind of intermittant bug with the studio
since only a very select group have reported this problem.
If anything is unclear, please feel free to reply to the post.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Tolga,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you are adding an ActiveX control
to a windows form in VS.NET 2003 designer, an error "One or more of the
types in the assembly unable to load". If there is any misunderstanding,
please feel free to let me know.
As far as I know, this might be a security problem. You can try to get it
work by running the .NET Framework 1.1
Wizard. Here are the steps:
1. Start -> Controls Panel -> Administrative Tools.
2. Start Microsoft .NET Framework 1.1 Wizards.
3. Click Adjust .NET Security -> Make changes to this computer.
4. Set the level of trust of Local Intranet to full trust.
I think the ActiveX control might be querying for some resources from the
network, so that the error is generated.
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin,
your description of my problem is correct, except that this does not happen
with one particular ActiveX, but with ANY one that I try.
I tried your suggestion, but I get the same problem.
Thanks
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:sm**************@cpmsftngxa10.phx.gbl... Hi Tolga,
First of all, I would like to confirm my understanding of your issue. From your description, I understand that when you are adding an ActiveX control to a windows form in VS.NET 2003 designer, an error "One or more of the types in the assembly unable to load". If there is any misunderstanding, please feel free to let me know.
As far as I know, this might be a security problem. You can try to get it work by running the .NET Framework 1.1 Wizard. Here are the steps:
1. Start -> Controls Panel -> Administrative Tools. 2. Start Microsoft .NET Framework 1.1 Wizards. 3. Click Adjust .NET Security -> Make changes to this computer. 4. Set the level of trust of Local Intranet to full trust.
I think the ActiveX control might be querying for some resources from the network, so that the error is generated.
HTH.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
The apps that you installed, did they include bits of the framework (not the
whole thing, just bits of it?) That could cause some problems.
Also, when you uninstalled VS, did you clear the GAC and uninstall the
framework?
It sounds like someone has added their own code to a GAC component or a
Framework component (possibly with malicious intent).
--- Nick
"Tolga Erdogus" <to**********@alum.mit.edu> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl... I uninstalled absoultely everything that I installed in the last few
weeks. Then I unsintalled VS.NET 2003, reinstalled the prerequisites and reinstalled VS.NET.
Still get the same errors. The only thing I can think of is that one of
the tools I uninstalled came with a prerequisite installation for those who don't have vb6. That installed a bunch of dlls in to the system directory and it doesn't have an uninstall. "Tolga Erdogus" <to**********@alum.mit.edu> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
out of the blue, I started getting errors when trying to open a form
that I have built in VS.Net 2003. The error is regarding an Activex control. After further investigation, it turns out that I am getting the
following error anytime a drop an ActiveX control on a winform: "One or more of
the types in the assembly unable to load", which is the cause of my form not opening.
This happens with ANY Activex even though the ActiveX is probably registered and works at run-time with previously compiled applications. This seems to be a design-time problem only.
I recently installed a few new software development tools/products, but
I have uninstalled them now to see if it fixes the problem - it doesn't.
Anybody seen this before?
Thanks
I uninstalled the framework, but I didn't delete the assembly directory.
It still doesn't work...
Three days of frustration later, here is the solution:
Blow away the C:\Documents and Settings\$username$\Application
Data\Microsoft\VisualStudio\7.1 directory
and restart VS.NET 2003.
"Tolga Erdogus" <to**********@alum.mit.edu> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... I uninstalled the framework, but I didn't delete the assembly directory. It still doesn't work...
Hi Tolga,
It was nice hear that you have found a solution. Thanks for sharing your
experience with all the people here. If you have any questions, please feel
free to post them in the community.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
No problem. Actually, I am not sure if it is the solution that I wrote in
my previous post or logging in to the computer as "administrator", launching
VS.NET 2003 once, logging off, logging as yourself and then launching VS.NET
2003 that fixed it.
I believe it is one or the other (or a combination of both) that fixed my
problem.
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:3Y*************@cpmsftngxa10.phx.gbl... Hi Tolga,
It was nice hear that you have found a solution. Thanks for sharing your experience with all the people here. If you have any questions, please
feel free to post them in the community.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe Kraft |
last post by:
I'm hoping someone can help me out. We're running a website that uses
XML/XSLT transformations, VB.Net and an Oracle database. Currently the site
cannot support more than 6-7 users at a time...
|
by: Stelios |
last post by:
Does anyone know how to dynamically load an assembly from a location other
that the working directory by using Assembly load method.
It is important to use the specific method because is the method...
|
by: MAF |
last post by:
I am trying to use reflection to load an assembly and one of my assemblies
throws the following error:
One or more of the types in the assembly unable to load
Is there anyway to find out...
|
by: Gaetan |
last post by:
I would like to extend the capabilities of my application by calling a user method
residing in a client provided assembly without having to recompile my application.
Things would work like this:...
|
by: Joăo Santa Bárbara |
last post by:
hi there
i have this error in VS2005 DEV Edition
"Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property for more information."
i have create an windows...
|
by: mookid8000 |
last post by:
Hi group!
Is it possible to scan an assembly *which has NOT been added as a
reference* for types, and dynamically create instances of the loaded
types?
I have a program, MyProgram.exe, which...
|
by: Frank Uray |
last post by:
Hi all
I have a problem with loading a assembly ...
I am trying to do the following:
- I have a directory with a dll (assembly) in it (not the currect dir.)
- I am trying to load this assembly,...
|
by: Ambed |
last post by:
Hi,
I have created a C# application in .Net and then created the setup
using .Net and using installer class. Now whenever i am installing
that application on a system with Visual Studio...
|
by: =?Utf-8?B?SnVhbiBEZW50?= |
last post by:
Hi,
I am getting the following in a VC++ EXE (using VS2005) that links several
C++ DLLs and uses MFC and ATL, when I try to start it under the debugger:
-------
'Exactus.UX.Studio.v1.exe':...
|
by: chage |
last post by:
Hi,
I have been searching around to try adding reference assembly to
another assembly during runtime, programatically. Is this possible
in .Net?
The reason for this is because i am having...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |