Answer Questions
Dale Fugier Exception error
How can i make an .exe file written in VB .net fully trusted by all computers on the netwrok without running the .net frame wizards I tried the deployment package but it didn't work. Any ideas There are three other ways: 1. Use a advanced installer product to create an installer to do it, I have used Wise for Windows Installer to automatically set up CAS permissions 2. Roll the CAS ...Show All
lbeham NetworkStream deserialization
Hello, I am writing a simple client - server app using serialization with BinaryFormatter on a NetworkStream, and using the TCPListener and TCPClient class. On the server side, I want to loop to listen for new serialized objects all the time (until client logs off). However, just using a while(true) statement will give me the SerializationException "End of Stream encountered before parsing was completed". And using stream.Read != 0 ...Show All
DeltaWind Does COM Interop cache data?
When I make COM interop calls, do the results get cached in the interop object I've noticed that it seems like data is being cached. If I query a COM object, I get the same data until I instantiate a new COM object and query it. I've noticed this seems to be a general behavior when calling COM objects. Is this a function of the COM object or the managed wrapper >Is this a function of the COM objec ...Show All
Sankey By ClickOnce Clients always get the old version
hello i have published an windform with clickonce(Vs2005,IIS5.1 ,OS is XP) but when i published a new Version at server Clients can not get this new Version's winform ex. Server has two version 1.0.0.0 and 1.0.0.1 client always get 1.0.0.0 why Regards Richard ...Show All
Sunny in Toronto Soap Serializer does not support serializing Generic Types.
I tried to serialize an object contains list (List<>) of objects and I got this exception: Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List. It works fine with the BinaryFormatter. The Binary formatter can handle callbacks and events. Check out the Remoting FAQ over here for pointers. This is fine. I can live with use BinaryServerFormatterSink ...Show All
jxxxs code access security
I have an application where the BR is completely based on plugins that run inside a framework I have developed. (This is in a Windows program). Most of these plugins are written by myself, but the option is open for others to create their own plugins. A plugin must inherit from one or more of my classes. Basically I want to do 2 things in my framework. 1. Catch all exceptions that get thrown by plugins, and unload these p ...Show All
sidnic Marshal.Copy(IntPtr to IntPtr) why is it missing :( in CLR
Hello, I am striving after Marshal.Copy(IntPtr src,IntPtr dest) implementation! I need a platfrom independent functionality of block copying in unmanaged heap. The requirements exclude the use of unsafe pointer like operations as well as invocing Win32 specific functions. So far I am doing with by allocating a byte[] in managed heap and twice calling Marshal.Copy. (sorry but do not have the code sample handy) It is highly inefficent first beacu ...Show All
.NetAvoider Hai everyone this is new commer may u teach me well with lots of expectations i have joined this forum.
how to get the result of the button on the next page with out occupying space on the displaying page. Indetail: when we add the data to a feild and click update after sucessfull completion of update i want to receive an message "updatedsucessfully" in a page which navigate after the update function. i dont like to occupy any space in this regard of placing a label which i had done untill now. can any one help me on my wa ...Show All
calin tuns entering information into database
Please help Cannot find away of storing information entered into a form to either a dataset or database Hi, It depends on what you need to achieve. If you need to transfer data from the form into the database, then you could use parameterized SQL statements, like INSERT, UPDATE. In this case you need to create statement, then prepare parameters, populate parameters with the values from your form and then execute query. Anot ...Show All
Rich Wilson - SCCP team Deserilization of the EventHandler Delegate Not Permitted
Hi, I am using .Net 2.0 and we are using remoting for a windows based application. I am getting the following exception when I am trying to call a remote method: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level. I have set the TypeFilterLevel to Full in both client and server but still I am getting the exception ...Show All
MihaelaE MSFT Timeouts
A Treeview is used to select the record to be displayed. On clicking a node a record is displayed. It is possible to click 9 nodes & get the record displayed but the 10th bombs out with a TimeOut message. "Error. System.Data Timeout expired....." On restarting VB (2003) clicking the record causing the bomb is displayed correctly so it is not an issue with that record. I have VERY carefully checked that every "cnn.open ...Show All
Land Release mode build problem
Hi. I have a solution with two projects - a c++ wrapper for an unmanaged legacy .dll and a c# project which is using the wrapper. The solution builds (and works) fine in debug mode but not in release mode: MyWrapper error LNK2019: unresolved external symbol "unsigned int __cdecl SomeMethod()" ( SomeMethod@@YAIPBDPADI@Z ) referenced in function _MyWrapper_SomeMethod Has anyone heard of this Also, when trying to run the project on my lapt ...Show All
Arne How to use net.exe in a Windows Service
I'm tyring to use net.exe within a Windows Service. The following code was found at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdiagnosticsprocessclassstandarderrortopic.asp Process myProcess = new Process(); string[] args = {"z: /delete"}; //a previously mapped drive using using net.exe through cmd ProcessStartInfo myProcessStartInfo = ...Show All
Raidu Absolute fastest way to verify if a file exists....?
If I have a list of files and need to check that list against the fileSystem, is file.Exists() the absolute fastest way to do the checking, or is there a faster way Thanks. -e Hi urbal, Yes. File.Exists is the way to go. However also note that If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of ...Show All
Anzu consuming SSL web service!
Hi everyone.. Im trying to consume a Web Service from winforms (no ASP) which has develop SSL security in VB .Net . Once I've loaded the WSDL file, I can see the available resources and add the as a web reference. But when I try to execute a method from the service, I get the error: "THE UNDERLYING CONNECTION WAS CLOSED. EUNABLE TO CONNECT TO REMOTE SERVER". Now, Im pretty sure it's got something to be with certificate. I have the u ...Show All
