| "Insufficient state to deserialize the object. More information is needed." AppDomain Load (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I am using the code below and I am getting this error: "Insufficient state to deserialize the object. More information is needed." Has anyone seen this? It is working with other dll's but not on a certain one. Can some help? private void LoadAssembly(string DllLocationDirectory, string applicationName, bool shadowCopyFiles, string friendlyName, string dllName, string className) { AppDomainSetup se... |
|
| {"The given assembly name or codebase, 'MyAssemblyDisplayName', wa (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I'm creating an AppDomain and creating an instance of a class. This works fine unless I use caching, which I need to use. The exception that I get is of type "System.IO.FileLoadException" which message is: {"The given assembly name or codebase, 'MyAssemblyDisplayName', was invalid." } The stack trace is: " Server stack trace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String co... |
|
| AppDomain and Shadow Copy (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| I have the following problem when creating an AppDomain and loading an assembly: I followed the steps described as anywhere i looked for documentation regarding this issue and the result is not quite what I expected. I obtain a shadow copy of my dll, but both files, the original and the shadow copied dll are locked by the process. Here is a piece of the code, please tell me what is wrong with it a... |
|
| AppDomain Probing (VIP replies) |
| microsoft.public.dotnet.framework |
| Hello, I created a small app which acts as a services manager. I basically drop a DLL in a Services folder and set the frequency through the application for how often do I want the code in the assembly to run (scheduler). I created a seperate AppDomain here is the code: .... AppDomainSetup ads new AppDomainSetup(); string path Application.ExecutablePath.Replace(System.IO.Path.GetFileName(Applicati... |
|
| AppDomain.CreateInstanceAndUnwrap of shared (GAC) assemblies (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi everyone, I am trying to load a shared assembly in it's own application domain. I created a simple Windows Application with 1 button that executes the code below. It is trying to load a very simple assembly 'ClassLibrary1' that is located in the GAC. The call to CreateInstanceAndUnwrap is unable to locate the assembly. I have no clue as to why the application domain can't load a shared assembly... |
|
| AppDomain.Unload (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| I am trying to load an assembly (ObjectHandleAssembly.dll) in its own AppDomain so I can unload it, but it seems to be loading itself in the default AppDomain as well. To do this I have. 1. Created a new AppDomain Dim ad3 As AppDomain AppDomain.CreateDomain("AD3", Nothing, ads) 2. Created an ObjectHandls Dim obj As ObjectHandle ad3.CreateInstance ("ObjectHandleAssembly", "ObjectHandleAssembly.MyTy... |
|
| Appending to CurrentDomain private path using AppDomainSetup (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Hello, I'm using the Whidbey beta and I'm having this problem... I'm developing an application which dynamically loads Assemblies from other directories. To be sure any dependent assemblies are loaded as well, I add the Assemby's directory to the PrivatePath of the AppDomain using AppDomain.CurrentDomain.AppendPrivatePath(pathToAssembly); Now, the new framework says AppendPrivatePath() is obsolete... |
|
| Assembly Loader Question (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| In microsoft articules the say that Assembly load method is the one that is used by the clr to locate and load an assembly. They discriped in create details all the steps involved in that process. My question is the following i have and assembly that is located under c:/Test/assembly.dll and i have an application that is running under c:/Myapplicatio/MyApplication.exe. I whant to use Assembly.load... |
|
| Assembly.Load fails after assembly preloaded using Assembly.LoadFrom (v1.1.4322) (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| I am creating a seperate appdomain to host assemblies having less than full trust. The second appdomain has a different ApplicationBase path then the host. I created a "DomainBroker" instance that implements MarshalByRefObject to instruct load and execute the less then full trust assemblies in the seperate domain so that the extra assembly will not be loaded into the hosting domain. This broker cl... |
|
| AutoUpdate WinformApp (AppDomain.ShadowCopyFiles default setting) (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| hi, we've to develop an self and on the fly updating winform app and are considering to count on the CLRs shadow copy features. can we assume, that shadow copying is enabled by default (it seems to be on our development and some test pcs)? is there any possibility to config shadow copying for the current appdomain? or is it nescessary to implement a "starter" app, which creates an appdomain and ex... |
|
| Compile assembly in runtime and execute in sandbox (VIP replies) |
| microsoft.public.dotnet.security |
| Hello, I'm trying to use C# as a script language for my .NET application. Users able to write a method (say, Foo(Myclass parameter)) Then in run time I'm wrapping this method into namespace code, compile into assembly signed with special key and execute. Here is a problem I'd like to apply some restrictions on user's code. I.e. "Internet" set of permissions. But it doesn't work. When I create code... |
|
| CreateInstanceAndUnwrap returns a MarshalByRefObject (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Hi everyone, I've been struggling with this for a while to no avail. I have an internal application which uses remoting to launch AppDomains and load/unload user assemblies. I'm trying to integrate it with Visual Studio .NET as an add in. I've hit a rather major obstacle with using remoting from an add in, though, and boiled it down to a rather simple test case: using System; using System.IO; name... |
|
| CreateInstanceAndUnwrap returns a MarshalByRefObject (VIP replies) |
| microsoft.public.vsnet.ide |
| Hi everyone, I've been struggling with this for a while to no avail. I have an internal application which uses remoting to launch AppDomains and load/unload user assemblies. I'm trying to integrate it with Visual Studio .NET as an add in. I've hit a rather major obstacle with using remoting from an add in, though, and boiled it down to a rather simple test case: using System; using System.IO; name... |
|
| Creating an instance of CMAB in a new AppDomain (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| I'm hoping someone out there can tell me if there's a way to launch the ConfigurationManager in a new AppDomain. I am trying to use an instance of the ConfigurationManager from an application to read/write a configuration file outside the executing application's domain. I have strong named the CMAB and placed it in the GAC, and have found that if I make the ConfigurationManager class inherit Marsh... |
|
| Determine if assembly is loaded from GAC (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Ok... problems 1 and 2 solved. Now, is there anyway to specify that my app should use *only* the dll in the GAC? That is, if it isn't there in the GAC, I do not want it to try and discover it elsewhere (such as in the executing folder, etc.) Essentially, I want to ensure that the deployed app uses only my original library. I've incorporated signature verification and token checks into my code, but... |
|
| Dynamic load assembly problem in asp.net (VIP replies) |
| microsoft.public.dotnet.framework |
| i have some code which will dynamic load another assembly it works fine in WinForm App but got an exception "cannot load the assembly" when i put it in a WebService App Loader.AssemblyLoader al null; object[] parms { AssemblyName }; // string AssebmlyName al (Loader.AssemblyLoader)domain.CreateInstanceFromAndUnwrap( "Loader.dll", "Loader.AssemblyLoader", true, bindings, null, parms, null, null, nu... |
|
| Execute an assembly from another assembly and setting the app base (VIP replies) |
| microsoft.public.dotnet.framework |
| [C#] I need to execute another assembly from my code. The assembly I need to execute uses reflection to dynamically load plug ins. I create a new Domain and execute the new assembly within this domain. The application throws an error as it is looking for the plugins in the base folder for my application, and not its own. Does anybody know how I set the base folder of the Application I need to exec... |
|
| Help with AppDomains (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm trying to understand how appdomains work, how to load assemblies into them, and how to make remoting calls between the appdomains, so I created a little scenario to play with: There is a class Library Project called TestClient.DLL that contains the following 2 files: MyInterface.cs using System; namespace DlgProc.Test { public interface IMyInterface { string DoSomethingStupid(); } } TestClient... |
|
| How can I force the reload of a .config file (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi, I want to use the System.Configuration.ConfigurationSetting.AppSettings member function to retrieve settings from the my .config file. I have an option form that change the some values and save them in the .config file via a XML DOM document. When I read back values from System.Configuration.ConfigurationSetting.AppSettings member function it is the original one, is there a way to force readin... |
|
| how to create and run vsto code in new app domain? (VIP replies) |
| microsoft.public.vsnet.vstools.office |
| My problem is: excel.exe process sometimes doesn't finish when you quit the vsto solution.. (after closing excel, process remains in memory..) and I really find ReleaseComObject and similar approaches to be annoying... My question is: How can I create a new appdomain and run vsto code in that domain? So I could just unload that appdomain and avoid dealing with GC.Collect, ReleaseComObject, etc... ... |
|
| How to modify/append PrivateBinPath of AppDomain? (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| AppDomainSetup has "PrivateBinPath" property. How do I apply something like this for the current AppDomain, so that I can load the dependencies of an assembly I am loading which are in the same directory as the assembly that I'm loading? Jon |
|
| Loading a dll in multiple app domain (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I am working on a test framework which is similar to nunit, i am facing a problem I have one windows form app which is linked with framework.dll then there are other dlls those are linked with same framework.dll lets say test.dll so directrory structure is some what like this c:\TestDir\ contains test.dll and a copy of framework.dll c:\Tester\ contains tester.exeand copy framework.dll all of t... |
|
| Loading remotable object host app in an AppDomain (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I have a remotable object 'RemotObj' in "RemoteObj.dll" assembly. This object is hosted in "RemoteObjHost.exe" assembly. I have a console app "Test.exe" and want to run "RemoteObjHost.exe" in a new App Domain of Test.exe process. My code in "Test.exe" is as follows: AppDomainSetup *domaininfo new AppDomainSetup(); domaininfo ApplicationBase "F:\\RemoteObjHost\\Debug"; domaininfo PrivateBinPath... |
|
| Logging Block/EIF issue with remoting - which App.config does EIF use (VIP replies) |
| microsoft.public.vsnet.enterprise.tools |
| Team, I am running a GUI application with the logging block. The Web.config & EnterpriseInstrumentation.config are both in the project folder and EIF/Logging Block correctly uses them to determine logging. However, the problem comes in when I call a method on the server using remoting. EIF/Logging Block uses the EnterpriseInstrumentation.conif file located in the server where the .dll's are locate... |
|
| Need good design for startup project (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I'm building a winforms app using vb.net 1.1 and have 3 basic tiers on the client side. the UI, BLL and DAL. Currently everything is in one project and at some point I'll parse it out to a separate project for each Tier. Currently the startup object is Sub Main in the form called frmMain. frmMain is open through the life of the application session. What happens is from Sub Main it runs this code t... |
|