|
by: Angelos Karantzalis |
last post by:
Hi guys,
I'm trying to load a class instance dynamically, and then cast it to it's
base type so I can use it in my app.
More specifically, I'm dynamically instantiating a
System.Web.UI.WebControls.RequiredFieldValidator and attempting to cast it
into an IValidator and/or a BaseValidator. Both casting attempts have
failed miserably, throwing an InvalidCastException ... how can it be i
cannot cast to the base class of my instance ???
|
by: Sunny |
last post by:
Hi,
I have an old problem which I couldn't solve so far. Now I have found a post
in that group that gave me an idea, but I can not fully understand it.
The problem is: I'm trying to use a Windows.Forms.UserControl in a COM
environment, i.e. I want to host that control in a COM host. So far, so
good, I can host it, but I can not reach the parent COM object from the
control (Parent property is null :( ).
I have stopped the control in the...
|
by: Gemma M |
last post by:
Hi,
I have a C# program (code fragment below), which runs forever, processing
incoming jobs. Part of this program launches a COM object. However, after
a while I get :
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80010007): Automation error
|
by: kevin goff |
last post by:
I am seeing that our CPU spikes for several minutes at 100% for the asp.net
process. This happens several times a day and seems to last for 10 min or
so and use a lot of memory. I'm trying to find out what page it is that is
causing these problems. How can i find out what pages are executing at the
time of the spike?
Thanks,
kevin goff
kevin_goff@nospam.nospam
|
by: gabe |
last post by:
We use a custom versioning scheme that includes the date and time
(2.0.10271545). The version number is displayed in a footer user
control, which is rendered in every page. The web application is in a
web farm. Would there be a significant performance increase by adding
it to the global cache object, instead of reading the version info
every time through reflection for the version that's set in the
AssemblyInfo file?(Instead of just the...
|
|
by: stacy |
last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the
following warnings appear around the .Input property of the MSCOmm
control
'UPGRADE_WARNING: Couldn't resolve default property of object
MSComm1.Input. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"'
When running the application, the following dialog comes up when a
|
by: Skandy |
last post by:
Hello All:
I'm having this little trouble getting a form displayed using
reflection.
objForm.GetType().GetMethod("ShowDialog",
BindingFlags.InvokeMethod).Invoke(objForm, null);
The above is the line of code that is causing this trouble. I'm getting
a NullreferenceException at this line.
|
by: Chris |
last post by:
I am looking at this code in C#
Assembly a=Assembly.LoadFrom("employee.dll");
Type t=a.GetType("Company.Employee");
I can't figure out what it is in VB.net can anyone help. I try
Dim login_assembly = Assembly.LoadFile(Server.MapPath("bin/login.dll"))
Dim login_type As Type = login_assembly.GetType("clsLogin")
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|