Answer Questions
Chris Skor Find if a user is a member of a local group
I've been searching high and low and cannot find a sample of how to find out if a user is a member of a group on the local machine. The local machine may or may not be a domain controller. Any help is appreciated. /sigh I found the IsInRole() method. Very easy to do what I was looking to do. Forgot to mention this is an ASP.NET application. HttpContext.Current.User.IsInRole(Environment.MachineName + ...Show All
JRMcFetridge Pressing "Enter" key on a text box, causes webform to reload.
Hi , I am facing a strange problem with the ASP.NET (with VB.NET) user controls. My user control contains only one text box web control and some other controls (but one and only one text box). I put this user control on a webform (web form also does'nt have any text box control) and request that web form through "http:// " request. Now, when i put some text in the text box and press the "Enter" key (while the cursor is s ...Show All
AMaher invalid operation exception
Hi, I'm very new to this and I would appreciate any help you might be able to give me. I am building a composite web service on my local machine. This web service is to be comprised of calls to two other web services, one on my local machine and one not. The web service I am trying to incorporate into the composite web service retrieves data from an SQLServer database. It tests fine; when I use a web application to test ...Show All
Mikhail Ryzhinskiy System.IO.Compressio.DeflateStream clarifications please ...
Since .NET Framework 2.0 is now final it's probably too late, but: 1. Why does the DeflateStream not offer the choice of compression levels (0..9 ) 2. Does anybody know what the compression level used actually is (*) 3. The 4GB limit seems to be bogus information - tests show that one can go beyond this border without problems. Maybe somebody mixed up the maximum file size in ZIP archives ! (*) the speed seems to be too fast :) If ran ...Show All
Visual Martin My programs won't start up on Win98 or Win2000
I've been struggling hard with this for about a month. I have a program written in C# .Net 1.1, that has about 170,000 lines of code and is in daily use by thousands of users. Any version that I released after about 9/1/05 simply fails to start up at all on Win98 or Win2000. "An unhandled exception has occurred", followed by thread id, but absolutely none of the usual details. Keep in mind that it continues to ...Show All
RobG3 System.Transaction - nested Required within Suppress scope
It seems that changes are not rolled back when a connection opened inside a Suppress TransactionScope is used like this in nested Required scopes: Using noTransx As New TransactionScope(TransactionScopeOption.Suppress) Using sqlcon As SqlClient.SqlConnection = New SqlClient.SqlConnection(constr) 'do some initial SQL statements here using shared sqlcon object Using transxScope1 As New ...Show All
chuck620 Testing if ValueType is default, unassigned value
Hi, I am having some trouble finding the default, unassigned value of ValueType properties using reflection. What I am trying to do is write some code that automatically set some properties, but only if the initial property value is in it's default, unassigned state. For property reference types it is easy and I am just checking if the property is null, but even after searching the reference and google I am no closer to finding out to get ...Show All
Konstantinos55265 Creating Trace Log to Event Log and get error "The source was not found, but some or all event logs could not be searched."
I am trying to build a generic system for tracking unhandled errors which will place such errors into a log file and the event log. The code is listed below. When I try to run this code below, I get the error message "The source was not found, but some or all event logs could not be searched." The error message occurs when I run the first Trace.WriteLine. Any help you can offer would be fantastic. Taylor try { // Log the error to AppLog f ...Show All
Lordkire Why TransactionOptions does not work with SQL Server on Windows 2000
Hi The following code works fine on Windows XP, it works on Windows 2000, until you try to get data from SQL Server 2000, then it breaks. TransactionOptions tScopeOptions = new TransactionOptions(); tScopeOptions.IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted; using (TransactionScope transaction = new TransactionScope(TransactionScopeOption.Required , tScopeOptions) ...Show All
Dawa What software do I need for .NET
I'm a software developer for a large corporation that wants to learn .NET. What software do I need to install on my home computer I'd like a full professional development environment but I'd be the only one using it. Is there anything that MS produces that's not a hobbled student version yet less expensive than full blown team software Thanks, John Thanks Geraldo. I may indeed get the beta. I think I'd rath ...Show All
M Eifflaender Deployment of .NET Framework 1.1 and Visual J# .NET 1.1 in same setup.
Hi, If i understand correctly the .NET Framework 1.1 and the Visual J# .NET 1.1 have been separated into two packages. My application needs to be deployed with both packages. I have looked into Bootstrappers, Launch Conditions and Custom Actions but have not been able to find a way to manage this. What are the some routines for deploying both packages during the same install/setup without the user needing to download the J#-package (which is re ...Show All
MattClayF How to make a better Design
Hello All, I want to make an application which is like this. There is a form which will host various user controls. The form has a typed dataset. This typed dataset is heart of the application. All user controls will show data from this typed dataset from different tables. I want to make all these controls individually. then integrate all these controls in my Form. I would like to use BindingSource for all my controls.Should I create a Central ...Show All
Calvin Che use a .NET Windows Control in VB6.0 ???
Hi, How do you use a .NET Windows Control in VB6.0 Here's what I did so far : - I've created a .NET Windows Control in Visual Studio.NET - in the project properties I set the build setting : 'Register for COM Interop' - build and registration OK (I've checked in the registry and the Control is there all right) - I start VB6, right-click on the toolbox and select 'Components' but my .NET-control is nowhere to be seen What am I missing here ...Show All
MattMattMattMattMatt Pb with DecryptDocument
Hi, I've created a webservice that return some encrypted xml data (look at server code below). Webservice seems to be OK. I've created a winform client. It calls the web service and decrypt data with DecryptDocument method (look at client code). Nothing is decrypted and i have an exception in mscorlib (bad data \r\n). Any idea Thanks /// ///Server Code /// [ WebMethod ] public XmlDocument HelloWorld() { // ...Show All
Mark q jones Implementation code in Interface
Why can't I put code in an interface There are some occasions when I want an interface with some code in it, but it's really frustrating that you can't do this. Chances are you might need an abstract class for that. Tony, have you been able to understand why interfaces can not contain code Please mark the replies that helped you as answered. because then it isnt an interface. . . it is a class. An interface is just t ...Show All
