Answer Questions
Avi Edri Please suggest a method for issuing encrypted files
We have an application that periodically requests a couple dozen bytes of data via web service on our web server. The data is specific to the client running the app. We want encrypt the data with a private key on our web server before sending it out. The application would then decode the data with the public key and know that it came from our server. The public key was to be embedded in the application as a resource. The .NET implementation of asymetric keys only allows encryption with the public key and decryption with the public key/private key pair. This is the opposite of want we want to do. We're looking for a suggestion as to how to accomplish this. What we need is for our applications to know that if they can successfully d ...Show All
tattoo Adding Event ?
hi, is't possible to add Paint,MouseDown,MouseMove,MouseUp Event in ASP.NET Custom Server Control,If Possbile means Please Guide me, Thanks In Advance For UI questions, the forums at http://forums.asp.net are better able to answser. Thanks. thanks Ashish Basran thank u Nathan There are no Paint, MouseDown, MouseMove, MouseUp events in custom server controls. Well, you might like to use JavaScript to handle Mouse events and the required javascript you can build at server side. In case of Paint, you might be able to use Render event on server side..... hope this helps. ...Show All
pavel989 Maximum cursors exceeded in Oracle via OleDb
When using ExecuteScalar in a loop, I always get a maximum cursors exceeded error. I use OleDbConnection and OleDbCommand.ExecuteScalar. for each customer in customerList { ... object lastInvoice = myCmd.ExecuteScalar(); ... } If I modify the code to use OleDbCommand.ExecuteReader, no error occurs. for each customer in customerList { ... IDataReader dr = myCmd.ExecuteReader(); if (dr.Read()) { object lastInvoice = dr["dtInvoice"]; } dr.Close(); ... } It seems like OleDbCommand.ExecuteScalar() doesn't close the inner datareader, and the oracle client close the underlying cursor at the connection closing (if the max. cursors isn't reach) Must I add something to use ExecuteScalar (wh ...Show All
VSChallenged xml populated lists not keeping values after post backs
Hi My page checks to make sure its not a post back before calling a function which parses an xml file as follows: Dim dSet As New DataSet dSet.ReadXml("C:\my.xml") Dim xmlDoc As New XmlDataDocument(dSet) Dim nodeList As XmlNodeList Dim lang_ary As New ArrayList I then go through the nodelists and populate the lang_ary which is the datasource to a number of combo boxes. The combo boxes have enable viewstate set to true. However, when the page reloads they lose their values. Could someone explain why this is please Do i have to store the xmlDoc in viewstate and repopulate each drop downlist again Thanks in anticipation This question is not related to XML or even to DataSet. ...Show All
sofakng Has anyone written .NET Client to consume Java Web Services?
I'm planning to write a web service client in .NET c# to consume a web service provided by a customer, which is written in Java and runing on Apache web server. Has anybody done this before Could you share what I need to be aware of TIA Rodrigo, thank you for the reply! No, actually it is our customer who is having trouble accessing our web service. I don't what error they are getting. They created a wsdl and send it to us to replace ours. The web service they described is essentially the same accept for the names used for the service, port, message and namespaces. Thanks for the link, I'm gonna check it out. Kristof, Thank yo ...Show All
great1 MSDiscoCodeGenerator error
Hello: I can (seemingly) sucessfully add a web reference to a web service in the same solution. The reference.map, *.wsdl and *.disco files are generated correctly in the correct places. However, I get the following 2 errors after adding: 1. The reference is not added to the namespace - i.e., I cannot access the methods in the proxy class programatically at all. If I double-click on the web reference in the Solution Explorer, it just jumps to the parent namespace in the Object Explorer, but no new "child" namespace is created for the newly added reference. 2. If I try to update the web reference, I get the error "The custom tool MSDiscoCodeGenerator failed. Object reference not set to an instance of an object.&qu ...Show All
BitShift SelectNodes returns nodes in a random order?
Hi, I have a question regarding the SelectNodes function, does it always return the nodes in document order (if not using any axes) or is it possible that they might sometimes be returned in a random order I have been working with xml for many years and have not yet stumbled upon this but as far as I know XPath does not guarantee any specific order and it's then up to the implementation to decide. Does the .NET implementation guarantee document order Same question applies to SelectSingleNode, does it always return the first node in document order matching the expression or could it be random as well Best regards Fredrik Kronander While the available online documentation does not specify the order of the nodes in th ...Show All
Joni222222 Cross AppDomain Performance
I have setup a secondary appDomain to host addins/plugins. The secondary AppDomain contains a loader method which loads the addin assembly using Assembly.LoadFrom(). The loader method then creates an object of the desired type ( the base class of the addin type ) by calling Invoke(). The addin type is derived from MarshalByRefObject. After all this, I can access the plugin object via a remoting transparent proxy (TP). Within the plugin there is an array object ( also derived from MarshalByRefObject ) which I need to access from the primary/application appdomain. I find that when I access the array from the primary appdomain (via the TP), it takes approx. 1,000 times longer than directly accessing the array from within the addin. ...Show All
Shepherd Threadpool Issue with WaitHandle.WaitAll FatalExecutionEngineError
I have a process that goes out to each machine on the network and executes a few WMI calls. In the case that there is an error it takes about 5 seconds before it continues forward. 5 Seconds X 3000 Computers is more time that I have available. So, I have been messing around with ThreadPools. My thought is that I will kick off the WMI calls for 10 different machines then wait for them all to return. This way it only takes 5 seconds for each group of 10 machines. I have been using the Fibonacci Example to come up with the test code below but on my WaitHandle.WaitAll I am getting a FatalExecutionEngineError: Error: FatalExecutionEngineError was detected Message: The runtime has encountered a fatal error. The add ...Show All
error1408 Do I need to Upgrade to .Net Framework 2.0
Hello!, We are using Visual Studio.NET 2003 with .Net Framework 1.1. The server is windows 2003 server SP1. I want to know If we have to upgrade to VS.NET 2005 and .Net Framework 2.0/3.0. If yes, how do I do it. VS.NET 2003 works fine with our needs, but I don't see much of VS.NET 2003 nowadays. Please suggest. Thanks, Krishna. the second question of how to migrate to VS 2005 is a valid question. Please post a similar question in Visual Studio Setup and Installation forum. I would move this thread but I see value to creating a new one. VS.NET2005 has added avdvantages like simulators. if u are working on embedded systems, then VS.NET 2005 will be he ...Show All
clint 2 table adapters - update
Can anyone explain why this code will not work- it will not add a new record everything else works fine. switch ( this .my_action) { case "Edit" : this .bsNCRdetail.EndEdit(); this .nCRdetailTableAdapter.Update( this ._2000NCRDataSet1.NCRdetail ); MessageBox .Show( "Record has been updated" ); this .nCRdetailTableAdapter.Fill( this ._2000NCRDataSet1.NCRdetail); break ; case "Add" : this .nCRdetailTableAdapter.Update( this ._2000NCRDataSet1.NCRdetail); MessageBox .Show( "Record has been added" ); this .nCRdetailTableAdapter.Fill( this ._2000NCRDataSet1.NCRdetail); break ; case "Delete" : this .nCRdetailTableAda ...Show All
bilalso executing a .exe on the client?
Hi, I'm builing a web application using web services. I want to execute a .exe on the client. How can this be done Right now I'm doing it with ActiveX, but I need the application to work when AxtiveX is disabled in IE. The application will be running on a LAN, not Internet. Thanks! Hi, I don't think it is possible to do this since this would give a major security leak in IE. The best thing you can do is to make sure that your site is in the Trusted Sites Zone. This can be set up at the domain level so it works for everyone. In the Trusted Sites Zone, ActiveX applets are allowed by default. NOTE: All your clients need to have .NET installed in order to make the ...Show All
Fata1Attack Question about BinaryReader?
when I call a function, say ReadSingle(), will BinaryReader read just 4 bytes from the file or it will read a large chunk of data from the file at a time and cache it and only return what I am asking I am trying to read/write a large file (50-->100MB) from/to a network drive. I am trying to find an optimal way to do it. Any suggestions would be appreciated. Thanks, hdp. Poking around with Reflector, I see BinaryReader use a 16 byte buffer. That's not a lot. I assume it is relying on Windows buffering the data... I'm sure it does, at a minimum the network driver would need a buffer to store the packets. but windows doesn't buffer data read from a network drive, right ...Show All
Debabrata.debroy Remoting Configuration in VS2005
Hi there, I'm trying to configure the remoting services and channels of an application using the app.config file in VS2005. It keeps giving me an error telling me that it... Could not find schema information for the element 'application' as well an error for every other child element under the <system.runtime.remoting> element. Here is the start of the configuration.... < configuration > <!-- Configiration of the Remoting system --> < system.runtime.remoting > < application > < channels > < channel ref = " tcp " port = " 6565 " > < serverProviders > < formatter ref = " binary " typeFilterLevel ...Show All
Mapperkids do we need to call myObject=null when we finish using it or no need
Hi, is it better to call helperD= null ; whenevr i finish using an instatiated object or no need Thanks Hi R.Tutus I have a blog entry that describes when to set variables to null: http://blogs.msdn.com/clyon/archive/2004/12/01/273144.aspx Mattias is correct; in general the JIT and GC are smart enough to know when the last time an object is referenced and make it eligible for collection without the need for setting the reference to null. -Chris Keith Rome wrote: The catch is that if a GC cycle runs during that window of time after the variable is no longer needed, but before the stack frame unwinds (such as if you are continuing to do work in the rest of the m ...Show All
