I am facing a problem ... I have a project, when i try to run the executables from a network path the assemblies fail to load. Where as the executables work perfectly fine when run from a local path. My guess is this has to do something with the .NET security. Any ideas, thoughts?????
Security may be one, is the .NET framework installed on the network location you are accessing? That may be the other.
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
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