Answer Questions
lguger 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
aleycris CDO.Message failure when email username contains trailing dots
I have a SQL2000 SP3 server and a stored procedure similar to this: CREATE PROCEDURE Usp_SendMail @To varchar(100) = '"Administrator"<hi@test.com>', @From varchar(50) = '"Server"', @Subject varchar(50) , @Body varchar(1000) , @Format int = 1 AS DECLARE @object int, @hr int EXEC @hr = sp_OACreate 'CDO.Message', @object OUTPUT EXEC @hr = sp_OASetProperty @object, 'To', @To EXEC @hr = sp_OASetProperty @object, 'From', @Fr ...Show All
artzoop How to delete a line from a text file using C#
Hello all I am developing a little app where I need to monitor a file that is update by several machines. I need to gather each line wrote by each machine so I need access to a specific line number and take that line, store it into a DB table and delete that line. I really don't know how to delete the line without parse the information into a string variable and rewrite the file. This can lake the app because the file can contain up to 1000K lin ...Show All
Peter Y Release version of CLR Profiler for .Net 2.0
Now that Visual Studio 2005 is released and I have installed the team suite version, I still cannot find anywhere the release version of CLRProfiler for .Net 2.0. Will someone at MS make it available for download The CLRProfiler officially on the MS pages is for .Net 1.1. Beta2 seems to have some internal unsupported MS link. Thanks Pawan Yes, an updated CLR Profiler would be very nice... ...Show All
rsk7 Solution for MailSettings Problem when configuring SMTP
Just FYI if you encounter the problem with SMTP setting through ASP.NET configuration for Membership Services. Error will be as following:============================== Compiler Error Message: CS0246: The type or namespace name 'MailSettingsSection' could not be found (are you missing a using directive or an assembly reference ) Line 45: Line 46: Configuration config = OpenWebConfiguratio ...Show All
Nick Asseloos .NET 2.0 safe?
Anyone have issues with .Net 2.0 and/or is this the best place to ask I am considering installing it. Not to worried about VS 2005 but am concerned about 2.0 and Avalon. Any issues and/or best place for me to get those answers Hi, If your only concern is installing it then I would stongly recommend that you try installing on Microsoft Virtual PC . This way, you can simply delete the VPC if it gets corrupt wit ...Show All
Doug Adams problem with CueStream in WMS
This isn't strictly an XML problem, but it is in a way. There is no forum for windows media services, so it will have to go in here. I'm having problem with the Playlist.CueStream(IXMLDOMElement) method in WMS As you can see it looks like it should take an XML DOM Element and enqueue it to the playlist, but instead i get a COMException with the following error code, for which there is no documentation, here or anywhere. I've searched microsoft a ...Show All
sparrow2006 Problem passing handle to DLL as parameter for Hook API call
Hi, I'm writing a BHO in VB.Net with VS2003 (=>.Net v1.1) and want to hook the mouse and keyboard input. The BHO is registered and runs under the IE process. Now I'm trying to complete the line of code: hMouseHook = SetWinEventHook(EVENT_MIN, EVENT_MAX, , AddressOf WinEventProcCallback, Process.GetCurrentProcess.Id, 0, WINEVENT_INCONTEXT) I am attempting to PInvoke SetWinEventHook (user32.dll API), but do not know how to pas ...Show All
SMPDave table variables, SQL Server 2000 and VS 2005 (ASP.net 2.0)
Hi guys i am having problem using stored proc that contain table variables while developing in VS2005. I use a table variable in one of the stored procedure: Declare @TempTable Table (RowNumber int IDENTITY PRIMARY KEY, Name varchar(50)) In VS 2005 when creating a table adapter it given an error saying invalid object @TempTable I some how tricked the VS2005 and created the table adapter, but when running the application and making the c ...Show All
Christoc What is the difference between
Directcast and Ctype http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/vbtchmicrosoftvisualbasicnetinternals.asp ...Show All
Jeffrey Lathrop 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
jattali Why do I get a SecurityException when running from the network?
Hi, I 'm writing an EXE file using C#. In my EXE, I'm trying to get access to Environment variables. Everything is working fine locally. I have the statement "Environment.GetEnvironmentVariable("TEMP")" which works on my local machine. As soon as I transfer the program to a networked drive, everytime I run the application it spits out the following error message: --- BEGIN SNIP --- Unhandled Exception: System.Type ...Show All
Fidencio Monroy Web Services v/s .NET Remoting
In terms of performance, is there a difference between Web Services and .NET Remoting when the latter is hosted by IIS. If I understand correctly, in this case they would both be using SOAP to communicate with their clients, and I would like to know if there will still be a performance difference. Hi, Additionally, you have remember that with .NET remoting you can levearge the usage of Generics (as part of .NET 2.0 Visual Studio 2 ...Show All
Roland Hasen&#246;hrl Have multiple versions of .Net - can I delete them?
My computer is running XP Pro, fully updated including SP2. During my "winter clean-up" of my programs, hard drive, etc., I noticed that 3 versions, with updates, of .Net Framework was on my computer. They are: 1.0; 1.0 HotFix; 1.1; 1.1 HotFix; and 2.0. I'm pretty sure that I didn't download these (though I might have) and assume that they were downloaded with some update, or maybe some program. I never directly access th ...Show All
Joe_MCUSA type datasets & generic datasets
hi all, i am making a project in soa and always using TypeDatasets. Is there any advantage to use type dataset And also adding diferent tables to same typedataset with using relation. Does this structure bring us something special than generic dataset Thanks... I use TypedDataSets also. You get intellisense support for object properties, you get datasource support in the IDE, and you can create a partial class ...Show All
