Answer Questions
GAtkins How to see the strong name of an assembly not in the GAC?
I have two assemblies named unit.framework.dll in two folders on my machine - D:\Program Files\Nunit 2.2.8\bin\nunit.framework.dll //lets call this A D:\Program Files\Nunit-Net-2.0 2.2.8\bin\nunit.framework.dll //this B I have the same assemblies installed in the GAC, as well - >>gacutil /l nunit.framework nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL //this C nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77 //this D The difference between the two is that one is built with 1.1 framework and the other with 2.0 framework. The only difference in their strong name is the processorArchitecture . How do I find out if assembly ...Show All
Prabhakarbn Trouble catching exception
Hi, I am having this problem catching a exception in a try catch block as shown below try { DialogResult result; result = wizard.ShowDialog(); } catch (PackageCreationException e) { MessageBox.Show(e.Message, "Failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); } now the wizard is a form which throws a PackageCreationException if it fails this works fine if it is run in the Visual Studio environment but when run as a standalone application this exception is not caught. I have been cracking my head over this. I can catch and handle exceptions fine every where else but here. Does anyone know why this happens ...Show All
matti-81 Very long signing a message
Hi all. I have a method which sign a message with a certificate registered on my computer: public static byte [] SignMessage( byte [] m_message, X509Certificate2 m_cert) { DateTime dt = DateTime .Now; ContentInfo m_contentinfo = new ContentInfo (m_message); SignedCms m_signedcms = new SignedCms (m_contentinfo); CmsSigner m_cmssigner = new CmsSigner ( SubjectIdentifierType .IssuerAndSerialNumber,m_cert); m_signedcms.ComputeSignature(m_cmssigner); global ::System.Windows.Forms. MessageBox .Show( DateTime .Now.Subtract(dt).ToString()); return m_signedcms.Encode(); } m_message array lenght is not more than 150 bytes (!!!). mbox shows me at least 6-7 seconds for only one ...Show All
hye_heena excel update using oledb and IMEX=1???
Hi All, I am new at this and getting frustrated...I have an excel sheet I am trying to read into a dataset then modify the dataset and then write the modified data back to the same excel sheet. I am using visual studio .net 2003 with c#. The basics of the code is as follows: DataSet dsTest = new DataSet(); string excelConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.xls;Extended Properties=\"Excel 8.0;HDR=YES;IMEX=1\""; OleDbConnection dataConnection = new OleDbConnection(excelConn); OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select ORIGIN, BRAND, MODEL from [Sheet1$]",dataConnection); dataAdapter.Fill(dsTest,"data"); OleDbCommand iCmd = new OleDbCommand("INSERT INTO [Sheet1$] ...Show All
Ben Santiago halt a databind in progress?
I have a very large query, and I'd like to present the user with per-page results. I have no interest in using the datagrid to do this, and have written my own paging object. For various reasons I want to halt a databinding operation once a certain condition is met. I do NOT want to use e.Item.Visible = false; which solves only the display problem and yet iterates unecessarily when really what I want the code to do is "stop binding, and exit gracefully". Ideally I could use the SqlDataReader object and set some sort of bounds (which it doesnt currently have) that could tell it to "jump to record X, and close out at Y records". This should not be confused with the SqlDataAdapters ability to fill within bounds ...Show All
ahmed921983 .net windows service application architecture
Hi, I need to develop an application which performs a data transfer one data base to another. I can not use DTS as a solution due to the complex requiremtns of the application. This application needs to run every 30 secs. So I decided to go for windows service. I am new to windows serivces and multithreading. I have developed an application design and would like to get feed back on it. General over view of the design : Application contains the following classes - AccountCreationDTS (WInService class), DTSTimer, DTSController, DTSREquestBin and DTS. AccountCreationDTS.OnStart() starts the DTSTimer. DTSTimer._onTimeElapsed() invokes DTSController.startTask() which initiates a DTS. The code for all the classes is given below : ...Show All
Jorne custom plugin questions!
Hi there. I have no idea but had a sudden urge to ask about things like this, I guess its good for the knowledge! I have an app created in .NET 1.1 I *may* wish to implement plugin's with the application, so developers can create their own plugin's for the application. Question 1) If a plugin was created in .NET 2.0, will it still work with the .NET 1.1 application (obviously assuming they have both frameworks installed) Question 2) How would one go about creating plugin's for their application Question 3) Is it possible for this plugin to implement/"subscribe" to public events exposed by my application, so when I raise an event, any of the plugin's who have a subscription to the event, is notified Th ...Show All
FarReachJason Configuration Manager
Hello All. Alright, let me start with just a little background. I'm working on a Windows Forms client application, and in order to make it a single-instance application, I've got a named Mutex, which I naturally want to encrypt to prevent a DoS attack from any assorted twerps. Now, for whatever reason, the folks at MS don't seem to see the need for a tool like aspnet_regiis.exe for client apps, so already this has gone from trivial to tedious. So, I worked up a little code to encrypt the config section in question, and I kept getting null reference exceptions. Well, I backed up a bit and the problem seems to be referencing the "appname.exe.config" file. Here's my code: using System; using System.Collec ...Show All
Ayooya Interop troubles with excel
I asked this in the VB forum, but think it is more suited here. My application (VS2005) uses the interop assembly 11.0 to communicate with excel. 11.0 is the version for excel 2003. When I put the application on a client machine, it's fine provided the user has excel 2003 and either the PIAs are installed, or I distribute the dlls with my application. However, I've just tried this on a machine with O2007 and it's not working. I have installed the O2007PIAs on the client machine. Any ideas I assumed the O2007PIAs would be compatable with O2003... Paul P Clement IV wrote: No, the PIAs are version specific. If you are supporting multiple versions of Excel then you should be using late ...Show All
zybernau How to Prefix an XML document?
How to add prefix to all of the nodes in an XML document Following is my xml. < xml version="1.0" encoding="utf-16" > - < XYZ123 :NameRequester xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" d1p1:SID="20" d1p1:HID="21" d1p1:RID="22" xmlns:d1p1="http://tempuri.net/" xmlns="http://tempuri.net" xmlns:XYZ123="http://tempuri.net"> - <d1p1:NameBlock> - <d1p1:Test1> <d1p1:Name>Bob</d1p1:Name> <d1p1:HisName>Tom</d1p1:HisName> <d1p1:HerName>Marie</d1p1:HerName> </d1p1:Test1> <d1p1:OtherName>Sally</d1p1:OtherName> ...Show All
Joost Schermers Increasing Memory Usage in .NET 1.1 (Very Urgent)
Hi, I've developed a dummy WinForm application (named GCTest) with the following functionality in .NET 1.1 (VS2003): 1. In Button1 click, a text is assigned to a Label. 2. In Button2 click, i've called GC.Collect(). While running this app, without doing anything, the memory usage is increasing from 10KB to 100KB. If i'm moving mouse, resizing, minimizing or maximizing the window, the memory usage is increasing consistently 60KB. If i click Button2, then memory usage increased upto 100KB. My machine config: PIV 3.2GHz, 1GB RAM .NET Version: 1.1.4322.2032 (i.e with service pack 1) OS: XP SP2 How can i stop the increase memory usage problem Regards, Udooz NNTP Use ...Show All
robmiller214 How to notify changes in a DB table to a C# 2.0
Hi everybody We are developing a application in C# 2.0 with M.Sql Server 2005. The application will run in multiple PC's linked by a INTRANET with a big bandwidth. In the application there are DataGridViews showing registers from a table and we want when a user create a new register in the table of the data base, all the DataGridView where the table is showing in all PC's of the net, refresh the grid in order of the new row appears. We are looking for any kind of trigger of the DB that notiffy to the app. when a new register was created, any configurable message of the database or any funcionality like this. Any Ideas Could you help us Thanks in advance. Are you using SQL Server 2005 or the Express editio ...Show All
Ross Watson The new configuration design in 2.0
Elsewhere I wrote, regarding putting an XmlDocument into the config file "surely, if anything, this ought to be easier than de/serializinging a binary object into XML and then saving it". I've read more and am pretty much concluding that in spite of the fact that this seems to make sense, the reality is the precise opposite - instead of being simple, it's actually impossible to directly place an XmlDocument/XmlNode into the config file. Which brings up a much larger question for the community at large regarding the design for this configuration stuff. Isn't all of this solely for the purpose of putting some arbitrary XML into app.config under a given application name And doesn't the framework already have great facilities for producing XM ...Show All
gudel Detecting remove lock event on file
I have the following problem: We have to write an application that acts on changes on files. For example editing a word - file. We achieve this using the FileSystemWatcher from .NET 2.0. When the word-file is saved the events correctly trigger, but the files are locked, which causes our action to fail, but this is not the problem. But when the user closes the word-application. The application release the lock,but we can't seem to catch this event so we could run our actions then. Does anybody has as solution Thx, gert Start a thread that does a lot of sleeping or use a timer to periodically check if the lock got released. So if there is no explicit windo ...Show All
killerless Installing .. advpack.dll
Not sure if this is where to put this question but I can't find anything else on these forums (shrug ). I'm trying to install the 2.0 redistribution package and get an error with c:\windows\system32\advpack.dll when trying to install. Any suggestions The reason I'm looking to install it is because I have an application that requires it. Maybe I actually need something different Ugh. lol solution: in the environment variables change both the TEMP and the TMP from the x:\documents and Settings\user\... To c:\Temp or any other folder. for me it works... greetz http://www.microsoft.com/downloads/details.aspx FamilyID=b44a0000-acf8-4fa1-affb-40e78d788b00&DisplayLang=en us this one g ...Show All
