all groups > dotnet framework > february 2006 > threads for tuesday february 21
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
.NET based services not starting reliably: ServiceController.Start() method
Posted by Arnie at 2/21/2006 10:29:15 PM
We're using the ServiceController class provided by the .NET Framework,
programming in C#. We are using the Start() method to start a service from
another service. This works fine most of the time, but occasionally after a
system startup (where the service doing the starting of the other is ... more >>
How to find what version from commandline
Posted by web2ed NO[at]SPAM yahoo.com at 2/21/2006 9:11:40 PM
In Java one can issue 'c:\java -version' to get the version of java
installed; what is the corollary in .net?
If one does not exist, why not, and what would it take to get this
feature added to the framework?
Thanks...
-
ed
... more >>
Issues in generating radiobuttonlist from MSSQL..
Posted by velu at 2/21/2006 6:37:27 PM
i wanted to generate a radiobuttonlist, that lists items from MSSQL query.
Like the table had
DPRT_ID DPRT_NAME
1 HR
2 IT
3 ADMIN
Here the vb code…
Dim conPubs As SqlConnection
Dim cmdSelect As SqlCommand
Dim mydata As DataSet
conPubs = New SqlConnection("server=XXX;Database=XXX;... more >>
Thread Detach Notification
Posted by Majid at 2/21/2006 4:04:34 PM
Hi,
Is there a way in managed .NET to get a notification as to when a
thread exits normally? In the unmanaged world, you could handle the
DLL_THREAD_DETACH in DllMain( ), but I couldn't find anything in .NET
that gives you this notification. I could iterate through the list of
available thr... more >>
problem with .net framework 2.0 and 1.1
Posted by b at 2/21/2006 2:43:52 PM
I have an application that runs a DLL written in Delphi .net.
My Dll runs well only on .net framework 1.1 and NOT 2.0.
The problem is that my main application runs few DLLs some need to run
on framework 1.1 and some on 2.0 - so I cant specify on the exe.config
to run on 1.1 (<supportedRuntime>) ... more >>
Need to install 1.1, already have 2.0
Posted by middletree at 2/21/2006 2:28:57 PM
I have a dll that a co-worker wrote which needs .NET 1.1 to work. The server
I am installing it on already has 2.0, probably installed when I put SQL
Server 2005 there.
I cannot make this dll work on any machine that has .NET 2.0 on it. However,
if I go into IIS and tell my default web site... more >>
AppDomain Shadow copy and plugin framework models PLEASE HELP! =0
Posted by Weston Weems at 2/21/2006 1:58:30 PM
Ok,
I've been quite successful on my own building a plugin framework that
appears to be working quite well. I can manually unload/reload etc,
however, the original app domain is retaining a lock on the shadowcopied
assembly. I've done a fair ammount of research before resorting to this.
... more >>
FTPWebRequest Fails on Some FTP Sites
Posted by Frank Walker at 2/21/2006 1:43:16 PM
I posted this problem a week ago, and received no response, so here it is
again...
While using FTPWebRequest, I have found at least one FTP site where this
function fails.
The URI I am using is ftp://nssdca.gsfc.nasa.gov/md_doc/app_a.doc
This NASA ftp site is available through anonymous lo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Create jpg from byte array of raw image data
Posted by Cynthia at 2/21/2006 12:36:28 PM
I have a byte array of 24-bit image data. I want to compress the data as jpg
and write it to a stream. Is there any easy and fast way to do this in C#?
byte[] rawImageData = new byte[width*height *3];
// imagedata is filled with rgb pixel info
byte[] jpgImageData = ??? // compressed rawImag... more >>
Does system.xml have any way to transofrm data with an xswl style sheet using strings like MSXML2 does?
Posted by Daniel at 2/21/2006 12:07:53 PM
Does system.xml have any way to transofrm data with an xswl style sheet
using strings like MSXML2 does?
how to convert this to use System.XML so i do not depend on MSXML2 interop?
static public string XslTransform(string style, string strdata)
{
MSXML2.IXMLDOMDocument pDoc = new MSXML2.DOM... more >>
Pass SessionID from 1 fn to other
Posted by XML newbie: Urgent pls help! at 2/21/2006 10:47:30 AM
How should I pass the SessionID(when I logon, I get the SessionID) from 1
function to another in VB.Net.
I declared g_SessionID globally, then in another function, I take SessionID
as input and use it like this:
queryAssetListXml = "<?xml version='1.0' ?>" & _
"<... more >>
Can one EXE double as Windows Forms app and as Windows Service?
Posted by Guido Kraus at 2/21/2006 10:16:20 AM
I have a Windows service application with a public class that inherits from
System.ServiceProcess.ServiceBase
Is it possible to modify this application so that it still is a Windows
service but on the other hand can be started just as if it were a standard
Windows Forms application (e.g. by... more >>
.NET Framework 1.1 Installation Path
Posted by Greg at 2/21/2006 9:18:29 AM
Is there a way to get the path of the .NET Framework 1.1 runtime files? Is
there an easy away to get his path in an environment variable? Currently my
path is C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\. But could not that
path change with a new .NET Framework 1.1 Service Pack or Hotfix? ... more >>
ManagementOperationObserver and Get( observer )
Posted by Richard Chandler at 2/21/2006 8:14:21 AM
The following illustrates a problem I have in another program ... however it
only occurs on one in 5,000 remote machines. I suspect the cause of the
problem lies with the remote machine ... but why doesn't my client time out
with an exception ?
The Get() method that initialises the asynchro... more >>
Cannot read in the keys from app.config (.NET 2.0)
Posted by Project2501a at 2/21/2006 6:22:51 AM
Hey guys,
I'm stumped! :( I've been trying now for the last four days to read in
the settings from an app.config file, but i've failed miserably, at
what seemed like a simple task.
I was trying to find out how the whole System.Configuration namespace
is working. So, I made a simple C# wind... more >>
regexp - need help
Posted by jppop at 2/21/2006 5:46:29 AM
Hi,
I want to parse string like "<number><trailing-char><title>" where <number>
is a string containing digits and dots, <trailing-char> a whitespace or a
semicolon and <title> any chars.
I use a regexp (framework 1.1) to parse the strings. Here is the code:
static Regex reNumSepTitle = ... more >>
porting java 2 dotnet (any idea)
Posted by nizamforum1 NO[at]SPAM yahoo.co.in at 2/21/2006 4:58:28 AM
Hi,
when i am converting java to dotnet through java language conversion wizard
present in vs.net, i am able to do it only for console applications of java.
i am not able to do it for web based applications.
can u give me some idea as to how to convert it.
Thanks in Advance,
Nizam... more >>
Attempted to read or write protected memory using TransactionScope and Oracle 10g Client.
Posted by OUSoonerTaz NO[at]SPAM gmail.com at 2/21/2006 4:37:06 AM
We are randomly getting this error message on our development and
staging machines:
Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.; at
System.Data.Common.UnsafeNativeMethods.OraMTSJoinTxn(OciEnlistContext
pCtxt, IDtcTransaction pTrans... more >>
Socket works fine first time, fails second time
Posted by Ben H at 2/21/2006 4:15:27 AM
Hello all
I'm using a bit of very simple code to query a game server using a UDP
packet. It works the fine time I run it but then when I run it again straight
away it fails with..
"A message sent on a datagram socket was larger than the internal message
buffer or some other network limit... more >>
SqlServer UDF and DirectoryServices
Posted by HowardB at 2/21/2006 2:19:45 AM
Using a VisualStudio Sql Server Database project template, I want to
access DirectoryServices (AD) from a UDF, but cannot add a reference to
directoryservices.dll (legally) into the c# project, and if I add it
illegally (in the XML) ,i get a sql error saying that DirectoryServices
is not in the ... more >>
Sending multicast messages from specific IP address
Posted by Gal Shadeck at 2/21/2006 12:43:27 AM
Hi guys!
I have several IP addresses defined on my PC (all bound to the same
interface), and i need to send multicast messages from a specific address.
Here's my code:
void SendMsg( string localAddr, int localPort, string destAddr, int
destPort, byte[] body )
{
Socket sock = new Sock... more >>
question about class Socket
Posted by wukun at 2/21/2006 12:13:29 AM
how to use Class Socket to asynchronously receive a large byte array with a
default receiveBufferSize?
the following code from msdn doesn't work:
public static void readCallback(IAsyncResult ar) {
StateObject state = (StateObject) ar.AsyncState;
Socket handler = state.WorkSocket;
... more >>
|