assemblies

Accessing a .NET Assembly from classic ASP

℡╲_俬逩灬. 提交于 2019-11-28 00:06:51
I have been trying to access a .NET Assembly that I have created in classic ASP using dim foo set foo = Server.CreateObject("TestAssembly.MyClass") The problem is I'm getting an error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /test.asp, line 4 Invalid class string I have registered the assembly (TestAssembly.dll) using gacutil and regasm as instructed in the article: Replacing Old Classic ASP COM Components with .NET Assemblies which I referenced from another question . It supplies two methods in which to install the assembly and I have tried both, but to no avail.

Visual Studio 2008: Creating Single DLL from Solution with Many Projects

自古美人都是妖i 提交于 2019-11-27 23:53:05
I have an ASP.NET web application developed in Visual Studio 2008, composed of 3 different projects (one for UI, one of BO and the third for DAL ). How can I generate a single assembly file which holds all 3? Now it's generating 3 DLLS each for each project in the solution. I do not know if there's indeed this feature in VS2008. But you certainly can do it outside VS. E.g.: Merging .NET assemblies using ILMerge Roman Boiko For each of your projects create a netmodule or an assembly and compile/merge them all into a single assembly. First alternative. This was proposed by Jay R. Wren : This is

Binding redirect problem in .net

允我心安 提交于 2019-11-27 23:37:38
I have a class library called "MyAssembly" that is internally referencing a.dll, b.dll of version 3.1.1.0; I have build the project which outputed MyAssembly.dll. On a different system (box) I have created a web application project and referenced the MyAssembly.dll. the new system has new versions of a.dll and b.dll 4.0.0; I used binding redirect in web.config like below. But still unable to compile the web application. it says missing assembly reference a.dll, version 3.1.1.0. Could any body help in solving this issue? Thanks, Suresh BradLaney This totally worked for me. NOTE: You need NO

Get the Assembly path C#

拟墨画扇 提交于 2019-11-27 23:37:29
问题 Im trying to know the path of a dll.... several sites says that ive to use System.Reflection.Assembly.GetExecutingAssembly().Location BUT it returns a path in C:\Windows\Microsoft.Net ... etc... \File.Dll and i want c:\MyProyect\MiWeb\Bin\File.Dll any help ? 回答1: You can do this using: string file = (new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).LocalPath; 回答2: The Location of the assembly changes based on redirects and shadow copy. Try using the Codebase property instead. 回答3:

Consider app.config remapping of assembly with no app.config mapping

余生颓废 提交于 2019-11-27 23:22:07
问题 How can I determine where to fix this reference without adding a binding to the app.config? Consider app.config remapping of assembly "System.Runtime.Serialization.Primitives, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.1.1.0" [] to Version "4.1.2.0" [F:\Production\packages\System.Runtime.Serialization.Primitives.4.3.0\lib\net46\System.Runtime.Serialization.Primitives.dll] to solve conflict and get rid of warning. 12>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft

.NET Reference “Copy Local” True / False Being Set Based on Contents of GAC

本秂侑毒 提交于 2019-11-27 22:51:19
We had a very interesting problem with a Win Forms project. It's been resolved. We know what happened, but we want to understand why it happened. This may help other people out in the future who have a similar problem. The WinForms project failed on 2 of our client's PCs. The error was an obscure kernel.dll error. The project ran fine on 3 other PCs. We found that a .DLL (log4net.dll - a very popular open-source logging library) was missing from our release folder. It was previously in our release folder. Why was it missing in this latest release? It was missing because I must have installed a

Could not load file or assembly 'someProject' or one of its dependencies. Access is denied

怎甘沉沦 提交于 2019-11-27 22:49:07
I am stuck with one asp.net error. My application work fine on development and test environemnt. But on production it give me following error: Could not load file or assembly 'someProject' or one of its dependencies. Access is denied. Go to Sysinternals and download Process Monitor: http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx Then start it up, filter thread and registry actions away. Clear contents. Run your app and get the error, and then stop the collection in process monitor. Now search for an ACCESS DENIED status, and you'll be able to see the exact file that's causing

Read AssemblyFileVersion from AssemblyInfo post-compile

江枫思渺然 提交于 2019-11-27 22:17:01
How can one read the AssemblyFileVersion , or its components AssemblyFileMajorVersion , AssemblyFileMinorVersion , AssemblyFileBuildNumber , AssemblyFileRevision , within the .csproj, following compilation? I have tried the following which pulls the information from the built assembly: <Target Name="AfterCompile"> <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> <Output TaskParameter="Assemblies" ItemName="MyAssemblyIdentities"/> </GetAssemblyIdentity> <Message Text="AssemblyVersion = %(MyAssemblyIdentities.Version)" /> </Target> But that retrieves the AssemblyVersion and not the

Unable to uninstall an Assembly from GAC?

家住魔仙堡 提交于 2019-11-27 21:16:38
I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error. "Assembly is required by one or more applications". However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly from GAC? Pieter Germishuys Have you considered reading this KB article and trying it out? Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved.

Assembly binding redirect does not work

孤人 提交于 2019-11-27 21:04:57
I'm trying to set up an assembly binding redirect, using the following app.config: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.AnalysisServices" PublicKeyToken="89845dcd8080cc91" /> <bindingRedirect oldVersion="10.0.0.0" newVersion="9.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> I'm running the program on a machine with version 9.0.242.0 in the GAC, with the specified public key token. The CLR doesn't seem to be even trying to redirect the binding to use that version