473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

AppDomain.CurrentDomain.CreateInstanceAndUnwrap Error

Hi All

I am using a few Microsoft application blocks in our winforms applications

I am having problem with the Microsoft.ApplicationBlocks.ExceptionManagement components

The samples for Microsoft.ApplicationBlocks.ExceptionManagement work great and I am keen to use it. But once I try to use them within our application the error occurs

I am receiving an error when the code reaches the ExceptionManager.Activate Function which is below

Private Shared Function Activate(ByVal [assembly] As String, ByVal typeName As String) As Objec
Return AppDomain.CurrentDomain.CreateInstanceAndUnwrap([assembly], typeName
End Functio

The [assembly] value and the typeName value are correct

The [assembly] value is the assembly name the typeName is the name for the class that needs to be executed with the publish sub

Any help on this mater will be greatly appreciated

Thank

Eli
Jul 21 '05 #1
0 1441

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt Calhoon | last post by:
Hi there, I have a web application that I need to move to a new webfarm. This application uses AppDomain.CurrentDomain.BaseDirectory to call up the base path (D:\content\clientwebsiteroot\) when...
0
by: Matt Calhoon | last post by:
Hi there, Im in the process of moving 200 odd websites to a new webfarm. This webfarm consists of several web servers that access a separate dedicated hardware storage device (Network Appliance...
0
by: GrantS | last post by:
To ensure my C# Winforms application can only have one instance running, I am using the code below: string proc=Process.GetCurrentProcess().ProcessName; // get the list of all processes by that...
1
by: George Nevsky | last post by:
My ASP.Net application installed in IIS virtual folder which points to some shared folder on network. Everything works fine except AppDomain.CurrentDomain.BaseDirectory method. It returns...
0
by: Luis Esteban Valencia | last post by:
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) Dim authuser As WindowsPrincipal = CType(System.Threading.Thread.CurrentPrincipal, WindowsPrincipal) Dim strUserName As...
0
by: Eli Abitbol | last post by:
Hi All I am using a few Microsoft application blocks in our winforms applications I am having problem with the Microsoft.ApplicationBlocks.ExceptionManagement components The samples for...
5
by: Benny Raymond | last post by:
What should I do instead of this: AppDomain.CurrentDomain.AppendPrivatePath(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + @"\plugins"); now that...
1
by: pack | last post by:
What're the meaning of "App domain" and "Current Domain" in appdomain.CurrentDomain.UnhandledException?
0
by: Gabriel Ferrarini | last post by:
The following code show me all assemblies attached to the project. ================================= For Each asm In AppDomain.CurrentDomain.GetAssemblies() MessageBox.Show(asm.Location) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.