Answer Questions
Martin Carolan using()
hi, What is the best way to rewrite this method with the keyword using() I know I can use it for the connection and command. public int EmployeeDetailsAdd( string strFirstName, string strLastName, string strTitle, DateTime dtBirthDate, string strNotes) { string strSQL = "usp_EmployeeDetailsAdd"; string strConn = clsDataHandler.GetConnectionString; try { SqlConnection oCon = new SqlConnectio ...Show All
--JC-- Improving startup time - force cold start
Hi, I want to work on one of my application's start up performance and to effectively do that I want to force a cold start everytime I start it to find out what takes really long the first time it starts. So how can I force windows to dump all the prejitted code that it generates the first time the application starts so it has to prejit again after the first start. Also, I was wondering what other techniques people use to find out what takes rea ...Show All
Evancool Registry reflection
Hi, I have ported my application from 32 bit to 64 bit application. Is there any consideration in registry point of view Thanks, Kishore Wani Vikram is correct. There are 2 registry hives on Win64. By default the bitness of your process will determine which hive you access. From a 64 bit application there are two ways to access the 32bit registry hive. Navigating to the Wow64Node, or ...Show All
Mr.Sun Missing Files in Microsoft.Net\Framework\v2.050727
When I run Norton Win Doctor it shows 10 errors all related to Microsoft.Net Framework. When I click on "Repair All" it does not do anything. When I click on "Advanced" and Highlight 1 problem after another, clicking on "repair" on each individual error, the repair box comes up. In the repair box it gives possible solutions and normally you can click on the repair botton that is in the solution box and it will repair& ...Show All
mars76 Missing Files in Microsoft.NET\Framework\v2.0.50727
Norton System Works' WinDoctor has found the error of C:\Windows\Microsoft.NET\Framework\v2.0.50727\ missing files and I believe Windows should address the issue. When I run Norton WinDoctor on my home PC, the following problems appear, with no repair capabilities: Missing program files (10 Problems): C:\Windows\Microsoft.NET\Framework\v2.0.50727\AppLaunch.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet.reiis.exe C:\Windo ...Show All
aleksandar uzelac Why on earth are there not logical operators for bytes in C#?!?
Hi there, I have most of my program written in C#, now I need to do some logical operations (AND, OR, NOT/COMPLEMENT) with some byte variables. Why on earth does C# not have logical operators defined for bytes ! ! Visual Basic.NET does. Is there some way I can add them because my code is really simple with them, otherwise it gets unnecessarily complicated. Thanks, Chris Hi, You can avoid one ...Show All
Jaswinder Singh Kohli Filtering Dataset
After filling a dataset I would like to further filter the results without repopulating the dataset. Any help would be greatly appreciated. One way of doing this. First I would bind the listbox by doing the following (which I assume you are doing): listBox1.DataSource = myView; listBox1.DisplayMember = "ColumnToDisplay"; listBox1.ValueMember = "PIDColumn"; When it comes time to get the selected valu ...Show All
brusi WebService Timout troubles
My webservice times out after insterting 15 or 16 rows into an access database from a mobile device. I read that databse querys and things of that nature take a long time. (well longer than regular methods) Ive gone into my iis server setting and changed the script timout to a higher value (longer than what its timeing out at) no change. i put <httpRuntime executionTimeout="600"/> in the web.config for the service. Not sure if this even do ...Show All
Pastor Charles 405 method not allowed
Hi all, I'm trying to upload an image from a mobile to my pc, using the HTTP (POST) method. I get a response from the IIS5.0 server "405 method not allowd" Does it mean that I cann't use this way or I have to do some configurations to the IIS to accept that. Please help Best regards... This typically means the given HTTP verb is not allowed for the paticluar file type or folder. Please ...Show All
Gary Kratkin Discard changes made to datatable columns of a Dataset?
Hello, I have a windows form with several text boxes. OnLoad, I use a DataAdapter which calls a SQL sproc to retrieve it's info. The sproc returns has 3 select statements so when all is said and done, the dataset ends up with 3 tables. (table, table1 and table2) Next I use databindings.add for each of the textboxes and bind them to the appropriate column in the appropriate tables. The textboxes are readonly by default and I have an Edit ...Show All
road66_be Interesting architectural problem
I have an application that contains two web service projects. One contains all of the "query" (read-only) functions and is publicly available to all. The other contains all of the administration (update) functions and is locked down with encryption and Windows authentication. To avoid the need for administrative users and applications to reference two separate web services, I added a project reference to the query service withi ...Show All
DarkShadow sIDHistory attribute, DsAddSidHistory (in the ntdsapi.dll)
Wasnt' sure which forum to put this in. Hope I hit the spot: I am looking for *any* ideas on how to programatically set the sIDHistory attribute in Windows 2003 user objects - preferably with DirectoryServices. I have found the DsAddSidHistory (in the ntdsapi.dll) but have no clue how to program with it. Microsoft seems to be abnormally quiet with examples of using the ntdsapi.dll - or I have yet to stumble onto the cache of info. I see the e ...Show All
Karthik G Kashyap "Transport-level error" using .Net Beta2
Hey, When I run the following code, I get the error: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) The code is: cnxn.Open() adptDeathMechanisms.Update(tblDeathMechanisms) adptCases.Update(tblCases) cnxn.Close() The error occurs when executing adptCases.Update(tblCases). The connection is fine...that is proved by the fact ...Show All
hersheys_gurl COM Interop Permission Problem
Hi I'm trying to wrap up an existing legacy com component in a web service. Below is a simplified example of what I'm trying to do. I have created a ActiveX COM DLL project PJoe with a class CJoe which has the following method Public Sub test2() Dim fn fn = FreeFile Open "C:\temp\joe.txt" For Output As fn Print #fn, "Joe" Close #fn End Sub (T ...Show All
LarryWWW Serializing IList in Web Services
Hi, I'm using .NET v1.1 and I was wondering if there were problems with the Web Services serializing properties of type IList I've passed back arraylists previously without any problems but I'm having some problems with passing back an IList so I was wondering if it was a limitation of the XML Serializer I just did some sample code to illustrate the XML Serialization: [XmlInclude( typeof (ClassB))] [Serializa ...Show All
