Yes, I found this is the System section of the event log: Event Type: Error Event Source: DCOM Event Category: None Event ID: 10016 Date: 28/07/2005 Time: 11:22:37 User: MHPC1355\IWAM_MHPC1355 Computer: MHPC1355 Description: The description for Event ID ( 10016 ) in Source ( DCOM ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: machine-default, Local, Activation, {A9E69610-B80D-11D0-B9B9-00A0C922E750}, MHPC1355, IWAM_MHPC1355, S-1-5-21-109908550-2121663905-1444114214-1004.
Plunging_Falcon
Posts
-
Microsoft bug solution didn't work -
Microsoft bug solution didn't workHi, I have the bug described in http://support.microsoft.com/?scid=kb;en-us;842329&spid=3042&sid=global[^]. I tried their solution (granting the IIS read & execute permissions) but I still get the same error message (even after logging off and on). If you encountered this or know what to do, it might help. Thanks.
-
Mysterious NullReferenceExceptionOK, sounds like a way. Thanks for your help.
-
how many ways are there to create a instance of a class?Activator.CreateInstance has to do with the reflection mechanism, which is used to create classes dynamically (name given at runtime) - something you don't need during the normal course of your program. Just stick to the regular dim way...
-
exit after if statementNo need to do that. Just have checkNum() return a boolean value (true if ok, false otherwise) and add only in case of success.
-
Mysterious NullReferenceExceptionHey, Thanks for the reply. So you think it's best to close the datareader as soon as possible? Basically, I close the datareader write after that procedure (after transfering data to a sortedlist) by executing the following:
dr.Close(); dr.Dispose(); dr = null; if (oraConn.State != ConnectionState.Closed) oraConn.Close();
-
Mysterious NullReferenceExceptionIf I remove the try/catch it fails when I try to execute the query.
-
Making Fields read-onlyIn addition to what the gentleman who replied first suggested, you could alternatively use the SelectedIndexChanged event of the dropdown and write server-side code that disables the controls (control.Enabled = false;). Falcon.
-
Mysterious NullReferenceExceptionHi all, I have a very weird problem that i have been battling with (or pushing aside...) for months. I wrote an asp.net application that connects to an Oracle db using stored procedures. The procedures seem to work, the code seems to work and when I run it MOST of the time it runs great. But, sometimes (say 1 time out of 10 or 15) it crashes with the false accusation of a nullreference exception. If I go back and perform it again - it works. I added try/catch statements for this exception, and it has reduced their number (if I catch it and do nothing it works!!!), but it still happens and i'm pretty clueless on what to do. I suspect this might be some db problem, maybe i'm not closing connections right, but i don't know what it might be. Here are the 2 methods i use to access the database:
protected void execSQLsp(string newCommand, OracleParameter[] parr) { OracleDataReader dr = null; OracleCommand oraCommand = null; try { oraConn.Open(); oraCommand = new OracleCommand(newCommand, oraConn); oraCommand.CommandType = CommandType.StoredProcedure; if (parr != null) for (int i=0; i Second one handles cursor containing queries: `protected OracleDataReader execSQLcurr(string newCommand, OracleParameter[] parr) { OracleCommand oraCommand = null; OracleDataReader dr = null; try { oraConn.Open(); oraCommand = new OracleCommand(newCommand, oraConn); oraCommand.CommandType = CommandType.StoredProcedure; if (parr != null) for (int i=0; i`
-
How to position textboxes that are created programmaticallyTo position a control somewhere on the page you need to have some sort of a place holder (e.g. a panel, a table and so on). Just place a panel (per say) on the page and then use
panel.Controls.Add(textbox)
-
AssemblyKeyFileUse the MapPathServer command - it will give you the root directory (above \bin).
-
Session EndThe problem with SessionEnd is that it doesn't occur when you close the browser, but the session ends which can be 20 minutes after you close the browser or more (depends on your web.config). Anyway, it will happen it just takes time.
-
Binding A Image Button. Please Help!!!UrgentAenon, You can a code similar to this:
((ImageButton)(MyDataGrid.Items[0].Cells[2].Controls[1])).Command = _(Event handler of some sort)_;
Just make sure the indexes match. Hope this helps. -
how to printout data stored in server-side?I think you can do it using "execCommand" with JavaScript. it should be something along the lines of 'execCommand("Print")', check the syntax in msdn. That means you need a page with the datagrid on it (you can remove all custom design for a printer friendly version) and then activate the command.
-
how to printout data stored in server-side?What exactly is the problem? Is it the printing or the displaying? If you want to display the data on the screen just use a DataGrid and populate it using a DataReader and then you print it if you wish.
-
Exporting from Access to ASP.NETI have an Access application that besides tables and queries also has graphical forms that interact with the tables. I need to export this structure (specifically the forms for the user interface) into a web application (asp.net). What is the quickest way to do this? I noticed there is some sort of "save as .asp" option but couldn't get the hang of it. Appreciate the help, Alex.
-
Table name as parameterYou can use dynamic sql to do that. For instance, if you have a procedure that gets column_in as column parameter and table_in as table parameter, then you can write something like this: (Oracle SQL, haven't tested elsewhere)
OPEN ref_cur1 FOR 'SELECT ' || column_in || ' FROM ' || table_in;
I think if you are using SQL SERVER then you should just omit the OPEN...FOR part. -
Tracking data change - ViewState??You don't need to use ViewState for just static controls on the page. ASP.NET does all the work for you. If you have a textbox on the page and you need to find out if the text changed that's what the TextChanged event is for. You need to write a handler for that event. Same for dropdownlists: SelectedIndexChanged event.
-
DataGrid TemplateColumn ViewStatemaybe i didn't make this clear... I am NOT adding data, except for one place, and anyway the data stays there. My problem is that if say I have a dropdown list and i choose a value and then hit a button that analyzes what i chose in that dropdown ==> the operation does happen, i.e. the data remains there "enough time" after postback, but the dropdown list itself gets reset: The value I chose is not the selected one anymore. Hope it is clearer now.
-
highlighting a fileYes, but that is not the problem, i have access. Anyway, i decided to choose an alternative solution, so nevermind...