I have investigated the problem .. here are my findings... my assemblies are strong name signed.. but a simple Assembly.LoadFrom(..) fails? giving me a FileLoadException? The load is successful if i do it from a local path.. but on a network path it fails!
Please help,I am having an issue with data access block connection to the database from my class library project.
using the data access block to connect to database works fine in my website project. but i try creating a separate class library project to connect to the database i now receive an error message.
i don't think is the configuration file bcos i connected to the database normally from the web project appcode folder.
You've just extracted this out into its own class library and you are still running it as a web application? Is that right?
Have you tried stepping into the Enterprise Library code and seeing where it's failing in there? Actually, it should tell you in the stack trace for the exception exactly where in the Enterprise Library it failed. Can you copy and paste the stack trace here?
Have you included all the relevant DLLs in the references section. Parts of the Enterprise library load dynamically, so Visual Studio is not completely aware of their necessity so it cannot warn you at compile time. You need the DLL that includs this class: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler
The DLL you need is: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
It can probably be found in the folder:
C:\Program Files\Microsoft Enterprise Library January 2006\bin
I have programmed a win-form project in c# with included crystal reports in vs 2003 (crystal report version 9 / bundle).
After that i created a setup project to share my programm.
vs 2003 found automatically all dependencies:
and it works great.
Now i want transfer that stuff to .net 2.0 + vs 2005 and want to create a setup project in vs 2005 with the same functionality. if i start now to define the primary output in vs 2005 it doesn't show the dependencies like in vs 2003. it also runs but only on stations where vs 2005 installed. its seems that's not enough to install .net 2.0 ?!
If i try to run the program on a station without vs.net 2005. only .net 2.0 installed.
the following error-msg appears:
"The file or assembly CrystalDecision.CrystalReports.Engine, Version=10.2.3600.0, Culture = neutral, PublicKeyToken= 692fbea5521e1304 or a dependencies could not be found. The System could file not found."
Its seems to be a problem with the different Crystal Reports Version.
How could this be able to solve ?
I have made a usercontrol that is basically a container with a nice looking header and an area for content. How do I add the usercontrol to another window and allow me to add other elements to the content area of the control? More specifically, I would like to be able to add the control to a window in blend double click it (change the insertion point) and add other controls as children of the usercontrol and they appear in the correct area. What do I need to do?
I have a DataTable with my data stored in it, as follow:
ID , Surname , Name
null , Parker , Peter
null , Kent , Clark
in C# I create my SqlDataAdpater and SqlCommandBuilder and use adapter.Update(table) to populate the database with my two rows. So on the database side my two rows have their unique Id's now.
What I want to know is how can I update my table with those two Id's? I don't want to retrieve all the data in the database, just the 2 ID's or rows with their new ID's.
One solution I thought off(really a bad idea), is using adapter.Update(rows and after a update call "SELECT @@IDENTITY" for each row. I don't like it and don't want to do it but I don't have another way to retrieve the ID's, or do I?
Currently I am making one win32 application using VC++.NET 2003. I am using screen color matching for some purpose in the application. But when I changes color depth of screen from 32 bits to 16 bits it is not working because color values of R, G and B are changes. Is that possible to map 32 bit colors to 16bit or vice versa so I can compare them?
I am using Asp.net and vb as code behind. I want to connect to Sybase database. I am using sybase sql anywhere . I hve draged and droped odbcconnection and odbc adapter and dataset but nothing is displaying.
if i give odbcadapter1.Fill(dataset11) its showing error
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Pls tell me how can i specify the connection sting and how to connect to sybase database
Can anybody help me plsssssss.
Thanks in Advance
Thanks and regards
With VisualStudio.Net, i'm using an installer class with a custom action
on my setup project to ask the user a serial number. A "Textboxes"
dialog on the "user interface" provides the serial number string to an
overrided version of then install procedure, inside my installer class.
My problem is that the install sub is able to verify the serial number
entered, but then i can't stop/cancel the installation procedure.
Now, when ElapsedEventHandler is executed, it is in a different thread, so the labels are not automatically updated by the bindings because the properties were changed by a different thread than the one that created the labels.
How can I have the labels correctly updated?
Last Visit: 14-Nov-19 5:58 Last Update: 14-Nov-19 5:58