Answer Questions
time2upgrade How do you find a "First Chance Exception" recorded in Debug Output
I am getting the following line "A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll" in my debug output I do not know what is causing it (break points on every try/catch I could think of didn't provide any hints). The program runs and performs as expected How do you go about finding out what is causing these There is a rather lot of them occuring, and I'd rather not have them if possible ...Show All
Diesel31 Making dataset instances invisible to COM
Hi There, I've got a C# assembly that's marked for COM Interop Registration. It contans a dataset definition. When I look at the TLB file generated for the assembly, the object is included. (for example, if the dataset is called AlphaDS, there's a default interface generated for the dataset called _AlphaDS, and a coclass entry for AlphaDS) I'd like to mark the Dataset as COMVisible(false) so it doesn't show up in the TLB. I could mark the ...Show All
stefan.w Problemg getting data into my presentation tier
I have an N-tiered project. My bottom and middle tier compile fine. My presentation tier page is giving me problems. All I want to do is to instantiate an instance of a strongly typed dataset I have in my middle tier component in order to use it on my aspx page. First of all, I added a reference to my middle tier component from my presentation web site. I then right-clicked my Default.aspx page and selected View Component Designer. This gave m ...Show All
nomad how to update two tables at the sametime with SqlDataSource and GridView?
I can only update one table with SqlDataSource's UpdateCommand property. So how can I update two tables at the same time I’m not sure you can do that easily. You might need to extend the existing SQLDataSource Object and override some of its methods to get you the functionality you want. PS: You might get better answers for SqlDataSource related questions on - http://forums.asp.net use transactions! ...Show All
dannyp List all active applications/windows
I want to create an alt-tab replacement but i havn't found any way to get a list of all active windows. I've tried to use System.Diagnostics. Process .GetProcesses() and then check which processes that have a MainWindowHandle but some windows doesn't show up there becouse they don't have their own process, explorer is one of them. So, what is the best way to get a list of all active windows/applications, i want all programs that is visible ...Show All
JiriS Getting size of class
I'm trying to determine shallow size of some class, I mean corresponding System.Type's instance size. Unfortunately I've got only ClassID of given class and using GetObjectSize function with ClassID as a parameter causes crash. Maybe there is a way to obtain ObjectID of needed System.Type's instance Thanx No, I'm using .NET Profiling API 2. I've toyed with methods for gettin ...Show All
Brock Need to find error's origin
Hey everyone, I have a .net 1.1 app that is trying to send a Webdav request to an exchange server to create an appointment. This part works ok on my local domain. However, when I put my app on another domain I get a 502 Bad Gateway Error. (the full error is listed below) I dont know where in the network this error comes from, or how to fix it. Any help is greatly appreciated, but I really really need this fixed asap. Thanks again Error: The u ...Show All
Algosys Loading UserControl from code without @reference
Hi, I would like to use LoadControl (in ASP.NET 2.0) to load a user control as described in http://msdn2.microsoft.com/library/c0az2h86(en-us,vs.80).aspx , without using the @Reference-directive. Is that possible and how This is because I'm working on a generic framework with a class that describes the flow, loads the usercontrols and sets their properties. So I don't want to use @reference-directives in my aspx-files. Please help! I' ...Show All
amocella Accessing Cryptographic Tokens
Hello! I am not sure in which forum this question fits best, so I post it in the General section. I don't mind if you move it to another place where it fits better. I need to access Cryptograhpic Tokens that contains Certificates like USB sticks or SmartCards (I need "only" read access). It looks like there are (at least) two ways to do this: - PKCS#11 (also known as cryptoki) - CAPI (Cryptographic API) I can't find informations or examples ...Show All
Jereme Guenther Unwanted promotion using TransactionScope
Hi, I wanted to test System.Transaction and using TransactionScope. So I wrote a little factory class which has very basic CRUD functionality. One of it's methods is CreateName: public static Name CreateName( string nameValue) { using ( SqlConnection connection = new SqlConnection( Properties. Settings .Default.TestDB)) { return Crea ...Show All
Kent Waldrop Au07 howto modify a label's/textboxe's value that is a membr of a form in the windows application project from a web service project?
i want to ask "how to modify a label's/textboxe's value that is a member of a form in the windows application project from a web service project " In my solution there are three projects! one of them is ASP.NET web service, other is classLibrary and another is a windows application... (build order 1.win app, 2.classLib,3.WebServ). firstly i create then show a login form(name: loginForm) that is in my win app project. then when user lo ...Show All
Willbur4u Program exits without throwing exception
I have a problem that I did not think could occur in the .NET environment. I have a .NET program that when the user clicks on a certain option the program just vanishes. If I run the program inside the debugger it works fine. If I first start the program then attach the debugger to the program then I can reproduce the vanishing behaviour. The problem is that the vanishing occurs randomly depending on where I set breakpoints. I can be stepping ...Show All
VINH TRAN How to retrieve an image from Access DB and display in a pictureBox of Windows Form?
In a table of Microsoft Access DB, images are stored in an object-type column. Now I want to retrieve them out and display in a pictureBox of Windows Form, how to implement that with C# Using Graphics.DrawImage If so, how to construct such an image object Had better give me some sample codes if possible. Jung Yi, When running your codes, I suffer from the the following exception: System.ArgumentExcepti ...Show All
Kasinathan Help I'm stuck,
Is it real to manualy calculate size in RAM of occurrence of some class, if i have source code of this class. For example it is known that some Int32 variable takes 4 byte's in RAM, but how mach takes some property or function, meybe somebody can give some link where i be able to read something about it. - Sorry for my BAD ENGLISH, i'm russian :) Hello Mystiq, Managed code (IL) is generally platform i ...Show All
kaisatsu Problem with Web Services and Updating datagrid on windows form.
I have a simple web service that returns a dataset with one table in it. I've managed to show the data on a datagrid on a form with an update button. however, I would like the data to get updated every 5 min. I've setup a timer with Elapsed trigger to update the gride by calling the web service and refresh the grid. problem: my data grid does not even show up on the form when I use the timer. code: very simple see below. Private Timer1 As N ...Show All
