Answer Questions
Sillychuckie SaveControlState and LoadControlState events don't fire
Greetz, I have written a web control which saves and recovers item information with the SaveControlState and LoadControlState event. This worked fine for a long time. Now we have to surround our controls with a special border (with header items and so on in it). So I decided to create another web control which creates this special surounding borders. The Code in the aspx page would look like this: < wn : GroupControlsContro ...Show All
g0nzo Trace Listener
Hi All, I've created a Trace Listener application that streams to a text file. The app is working but now I am at the point where I need to attach it to a certain application running on the target machine. Do I 'HAVE' to attach my Trace Listener to the process in order for it to capture the target app's trace messages Or should the Trace Listeners collection just pick up any trace messages from all applications on the machine... I f ...Show All
CVGMERE Please help
I HAVE BETA2 . I STARTED A PROJECT USING BETA 1 AND THEN CONTINUED THE PROJECT IN BETA2. I NOW WANT TO USE JUST BETA2 HOW CAN I DO THIS I DID SOME CHANGES . MAYBE THERE IS ANY EASY WAY OF CONVERTING IT THRU WIZARD PLEASE TELL ME HOW TO DO THIS.   ...Show All
Zilent MySQL Database, Security Exception
I am building a my first VB.NET website using a MySQL Database. Offline everything works fine. Online i get an error message: " Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Securi ...Show All
&#32735;&#22855; WebService - Sessions & Timeouts
Hi there, I have a webservice for file uploads&downloads that implements sessions to transfer large files. I defined the webmethod with [WebMethod(EnableSession= true )] and web.config Session Timeout to 2 minutes. I don’t know why, but the global.asa Session_End event is not triggered and neither is Application_Error. Is there any thing I have to setup How can I configure the application to fire the global.asa events I need to have ...Show All
GhostGT SignedCms in VS.2005 is very slow, signed data is not compatible with CAPICOM 2
Hello, Did some body used VS 2005(c#) to sign data or verify signature functions I tried sign a data and verify signature sample on MSDN ( Signing a Message by One Signer ), it seems this sample is very slow, I used CAPICOM SignedData function to sign 10M string, it used 1 second on my computer, but SignedCms (convert to byte[]), it used 29 seconds. also the signature I get from this function can not be verified (conve ...Show All
Ben Lotter Application.TreadException multiple events
Hi there, I have been writing some static methods that should be fired when an uncatched exception occurs in my application. That is why I have the following lines in my main-method: [code language="c#"] Application .ThreadException += new System.Threading. ThreadExceptionEventHandler ( ExceptionHandler .ShowExceptionDialog); Application .ThreadException += new System.Threading. ThreadExceptionEventHandler ( ExceptionHandler .LogExcept ...Show All
efarook mixing generics and unsafe code
public unsafe virtual T Read<T>( ) where T: struct /*Do I need write something other */ { byte * data = stackalloc byte [ sizeof ( T ) ]; ... if ( invert ) for ( byte * left = data, right = data + sizeof ( T ) - 1; left != right; left++, right-- ) { byte tmp = *right; *right = *left; *left = tmp; } ... } Is it possible to get size (in bytes) of generic type This exam ...Show All
John Dekker Sybase && VS 2005
Hi guys. I have an ASP.NET C# application as a front end and REMOTE Sybase DataBase as a back end. Now, I have to select/insert/update data from/into/in several tables and if even one single operation fails i have to rollback all previous ones. AFAIK it's called a TRANSACTION (or whatever... i'm not very good at all this SQL stuff). So, my question is -- how do i do such thing P.S. Stored procedure is not a solution since TableAdap ...Show All
scireja System.Net.Sockets.SocketException was unhandled by user code
Dear all: I have a page that tryes to connect to a MySQL database in a remote server. I already copyed the MySql.Data.dll file to my projects /bin directory,then it was added as a reference to the project. I’m using this connection string: connectionString = " server=192.168.1.3;user id=root;password=secret;database=dbUsers; Port=3306 ; " But every time that it attempts to establish the connection I ...Show All
Opteron64 A Question on GC
I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory co ...Show All
Ensoft Exception: "The underlying connection was closed: The connection was closed unexpectedly." (sometimes)
I have a windows app connecting to a webservice. In some situation(s) (haven't narrowed it down enough), I get the following exception: The underlying connection was closed: The connection was closed unexpectedly. When this exception is thrown, it is calling a method of a web reference. Now the situation that we experience this is on a laptop in the field that is using a WWAN connection in at least one location. It works fine in the lab ...Show All
gerbilferrit Using RETURN_VALUE from stored procedure via SQLDataSource
I have a FormView that I'm using to insert new records. I'm using SQLDataSource to access an insertEmployee stored procedure. This sproc takes 2 parameters, empName varchar(50), empPhone varchar(25) and returns the the newly created record's primary key using scope_identity(). What I need to do is to capture the return value of this sp and then use it to display data about the newly created record. Records are being created correctly so I kno ...Show All
dark2025 Getting service startup type (automatic/manual/disabled) through .net
How can I get the startup type of a windows service using .Net The servicecontroller class does not have any method to do this. You do it when installing the service. The ServiceInstaller has a StartType property. Mike ServiceStartMode is only used by ServiceInstaller. But you may use the registry value in the program to change the start type of any service.&nbs ...Show All
davidt1234 2.0 Assembly Permissions and Shell Extensions peculiarity
I've been writing some shell extensions in c#, I'm aware this has process/threading implications but I started before i knew that and I'd like to finish. I have a Base assembly which contains a lot of base classes and interop definitions, the base stuff most shell extensions will need. I have an assembly Stream which uses the Base assembly classes to provide a simple ContextMenuHandler for filesystem items which contain ntfs named streams. All ...Show All
