we have a set of usercontrols complied to a dll. we could just load the controls using their classnames by like ASP.theusercontrol_ascx blah = new ASP.theusercontrol_ascx();
but if we have dynamic data and load the controls based on the filename (or the control name),
how can we load them like Page.LoadControl("TheURL/theusercontrol.asc...
is there something like:
AppDomain.CurrentDomain.GetAssemblyByName("TheAssemblyName")
so instead of looping through AppDomain.CurrentDomain.GetAssemblies(), we could just get the specific assembly directly...
Thank you!
...
hi guys,
i have to deploy few assembly to GAC.
I just had a few questions about (my) understanding of GAC.
really confuses me.
I want to know which versions to change assembly and file version.
What are possible combinations in which GAC dll will be replaced by installing application.
and basic management for GAC files.
I will ex...
Hi there,
I work on a parallel build tool which builds (among lots of other things) windows programs of various types. One part of our tool which makes life alot easier for our users is the automatic dependency scanning of EXE and DLL files. This means that if a user says they want to run "bob.exe" for example, they don't have to worr...
I have a WCF service (.svc) and a NT service (.exe) that need to share private assemblies (without resorting to using the GAC).
Currently I have these two directory structures
\MyService\service.svc
\MyService\web.config
\MyService\bin\privateassembly.dll
An IIS virtual directory pointing to \MyService
and
\MyApplication\myapp.exe
\...
I know it is impossible to 100% guarantee from cracking your real-world software. But I want only protect my product from unauthorized accessing of normal user.
.Net framework has feature about strongly-typed name that can be used to protect software because you can specific what assembly and public key token will be loaded.
So, what i...
I have an Interop assembly lying in GAC; Windows Explorer clearly shows it listed in the C:\WINDOWS\assembly folder. Yet, when I try to add a reference to it in from Visual Studio, I can't see it anywhere in the Add Reference dialog.
If this is happened to you too, what is the reason for this? And how do I fix this?
(The assembly is ac...
I would like to know if I can define custom assembly attributes. Existing attributes are defined in the following way:
[assembly: AssemblyTitle("MyApplication")]
[assembly: AssemblyDescription("This application is a sample application.")]
[assembly: AssemblyCopyright("Copyright © MyCompany 2009")]
Is there a way I can do the foll...
I solely work with web applications, so I have virtually no real experience with Windows Forms designed in .NET.
I'm reading up on assemblies, and there are two types; static, which comes in .dll form, and exectuable, which comes in .exe form.
As far as I can work out, an 'executable assembly' is just another name for a compiled applic...
Or do I have to restart each service that uses it?
...
What is a satellite assembly, and how can we use it?
...
I want to write a small installer app that installs a web site and creates IIS virtual directories. The app should run on Windows XP/Server 2003 (IIS 6) as well as on Vista/2008 (IIS 7).
The problem is: for IIS 6 we create virt dirs by calling WMI/Metabase API, for IIS 7 there is a much better API: Microsoft.Web.Administration, but its ...
Hello, when running a prorgam, it seems that I am missing a library, when I launch the output of my project I get an exception at startup.
A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
Additional information: ...
.NET assemblies that contain a mixture of managed and unmanaged code cannot be ILMerged with other assemblies.
How can I verify if a given .NET assembly contains purely managed code, or a mix of managed and unmanaged code?
...
I get this error when I open a program I created in Windows Vista in C# with WPF on a computer with Windows XP:
Could not load file or assembly
'Microsoft.Office.Interop.Word,
Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system
cannot find the file specified.
This is ...
Hi,
I'm working on a .NET WinForms application that loads forms and other UI elements from separate assemblies at runtime. This works well.
However, one of the assemblies I'm loading has a form that uses either GeckoFX or WebKit.NET to embed a web browser control. When I try to load that assembly with Assembly.CreateInstance() I'm ge...
I have a simple Windows Forms (C#, .NET 2.0) application, built with Visual Studio 2008.
I would like to support multiple UI languages, and using the "Localizable" property of the form, and culture-specific .resx files, the localization aspect works seamlessly and easily. Visual Studio automatically compiles the culture-specific resx fi...
Hi:
I got 'Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.'
message when I try to run a simple program to access oracle.
I checked \windows\assembly and it's in there, but it's not in GAC (gac...
Hi, guys. I'm developing a client software for an online community I belong to. In order to let me write a client to it, the owners and webmasters demand my code to be encrypted (not just obfuscated). Most of my project is written in VB.NET (F3.5), and some of it is using SQLite and libcrypt via C++/CLI for performance reasons (so I cann...
I am trying to better understand appDomains. From my understanding Windows runs all applications in a process. each application is encapsulated in it's own object that resides within this process. This object also holds some global varibles which can not be shared. All objects that are in the process can not share any data with one anoth...