personal assemblies, copy local to false
-
hello! i loaded my private dll in my project references and after i set this property "copy local" to false (because is a shared library). when i try to run my application i get this error: "File or assembly name MyDll, or one of its dependencies, was not found." in some precedents projects I done this and work without register the dll in the gac. somebody can help me, please? thanks a lot! (if i set"copy local" to true all work correctly)
-
hello! i loaded my private dll in my project references and after i set this property "copy local" to false (because is a shared library). when i try to run my application i get this error: "File or assembly name MyDll, or one of its dependencies, was not found." in some precedents projects I done this and work without register the dll in the gac. somebody can help me, please? thanks a lot! (if i set"copy local" to true all work correctly)
Hi there, You should not change this setting if your assembly is not placed in the GAC. Basically, the Visual Studio .NET build system copies any referenced assembly which has
Copy Local=True
to the application output folder (thebin
folder), if you set it to False, then at runtime the application will fail to load the assembly from the bin folder as it's not there. -
Hi there, You should not change this setting if your assembly is not placed in the GAC. Basically, the Visual Studio .NET build system copies any referenced assembly which has
Copy Local=True
to the application output folder (thebin
folder), if you set it to False, then at runtime the application will fail to load the assembly from the bin folder as it's not there. -
Hi there, You should not change this setting if your assembly is not placed in the GAC. Basically, the Visual Studio .NET build system copies any referenced assembly which has
Copy Local=True
to the application output folder (thebin
folder), if you set it to False, then at runtime the application will fail to load the assembly from the bin folder as it's not there. -
thanks for the reply but i solved. i put in the project web.config these lines: and all work correctly without register the dll in the gac.
Hi there, Here you are using the codebase element with the absolute physical path to specify the location where the common language runtime can find your assembly, however, you may also need to care when you deploy your asp.net application to a product server.