| Get list of windows user groups (5 replies) |
| microsoft.public.dotnet.framework |
| I can check whether a user is in a group using My.User.IsInRole. This takes the name of a windows group as a parameter, but how can I get a list of all the groups defined for the machine on which the application is installed? TIA Phil. |
|
| GDI problem (4 replies) |
| microsoft.public.dotnet.framework |
| Hallo, I have a small (hopefully) problem... I defined an user control that in the Paint overriden method does the following things: protected override void OnPaint( PaintEventArgs e ) { e.Graphics.Clear( BackColor ); e.Graphics.SmoothingMode SmoothingMode; e.Graphics.CompositingQuality CompositingQuality; e.Graphics.InterpolationMode InterpolationMode; e.Graphics.TextRenderingHint TextRenderingHi... |
|
| Windows 7 64 bit and IO.Ports.SerialPort (6 replies) |
| microsoft.public.dotnet.framework |
| Hi all Is anyone using the IO.Ports.SerialPort object successfully under Windows 7 64 bit? My PC crashed and in the rebuild I moved to 64 bit Win7, and now an app I had running successfully for quite a while (probably a year) on 32 bit Vista now does not work on Win7 64 bit. I get various random errors, like stack overflows in mscorlib, uninitialized objects, all in mscorlib. Twice while debugging... |
|
| pause in microsecund (6 replies) |
| microsoft.public.dotnet.framework |
| I have set pause to microsecund. I have Microsoft Development Environment 2002 (ver.7.0.9466) and .NET Framework 1.0 (ver 1.0.3705) and Stopwatch stopWatch new Stopwatch(); don't work How can I do it. |
|
| Security error (2 replies) |
| microsoft.public.dotnet.framework |
| Hi there, I installed my web site onto a newly installed version of Win Server 2008 and am now getting a "System.Security.Policy.PolicyException" trying to access any page. The error is "Execution permission cannot be acquired" but more specifically, it's related to the "'AjaxControlToolkit" I installed into my ASP.NET "bin" folder. There are various messages that it can't be loaded, that it "fail... |
|
| Why am I getting a "TypeLoadException" (3 replies) |
| microsoft.public.dotnet.framework |
| Hi there, I have a fairly simple console app (.exe) in C# which runs fine in WinXP (32 bits) but under Windows Server 2008 (64 bit) I get the following error very early in the life of the app: System.TypeLoadException: Method 'MyMethod' in type 'MyClass' from assembly 'MyApp, Version 1.0.0.0, Culture neutral, PublicKeyToken null' does not have an implementation. Note that "MyClass" is a locally de... |
|
| "0 bytes loaded from System" (2 replies) |
| microsoft.public.dotnet.framework |
| Hello, I work for a company that sells .NET software and have recently been tasked with handling support issues to do with our update system, which I wrote. Since the updater is the first thing that runs when the desktop icon is clicked, I also get unrelated issues, and one that has been coming up repeatedly is the following exception while trying to instantiate an XmlSerializer: System.TypeInitia... |
|
| xml/xsl to create msbuild files........MSB4097......and an xsl workarounds(?) (3 replies) |
| microsoft.public.dotnet.framework |
| ! The xml in question ?xml version "1.0" encoding "utf 8"? Project DefaultTargets "AllTargetsWrapper" xmlns "http://schemas.microsoft.com/developer/msbuild/2003" ! Target Name "AllTargetsWrapper" xmlns "" Message Text "You just called the Target named 'AllTargetsWrapper'" / /Target ! Target Name "Target1" xmlns "" Message Text "You just called the Target named 'Target1'" / /Target ! Target Name "T... |
|
| IE8: How do I get Protected Mode to be on? (2 replies) |
| microsoft.public.dotnet.framework |
| No matter what Security or Internet Zone settings I select, including the defaults, every web page (at the bottom) says Protected Mode: Off. I'd like to know how to turn it on. Thanks. |
|
| Store Connection/App settings in A/D (4 replies) |
| microsoft.public.dotnet.framework |
| Hello. I originally posted this to the A/D group, but thought this might be a good place too. What are the pros/cons of storing connection strings and global app settings in A/D. We have a lot of applications (Windows, ASP.Net, Add ins for Office Apps, etc) and each need to retrieve connections strings, global app settings, etc. I want a central location for this stuff and don't want to include it... |
|
| How to install .net FW 3.5SP1 on a server without intertnet access (3 replies) |
| microsoft.public.dotnet.framework |
| How to install .net FW 3.5SP1 on a server without intertnet access. Because, it seems to be the installer looking for internet to download the sub components like FW 2.0SP2, 3.OSP2 etc. 2. I am seeing issues even when the server has internet access and WU service fail to download the fw 2.0sp2. Any help is highly appreciated. |
|
| email (6 replies) |
| microsoft.public.dotnet.framework |
| When I send an email it is sent twice how can i fix this. SANDY |
|
| GDI DrawLine (2 replies) |
| microsoft.public.dotnet.framework |
| Re all, I draw an user control where I draw a grid and then allow users to zoom and pan and rotate it. When I zoom in I noticed that the line thickness grows also but I would like to avoid that. Is it possible? Best Regards, Mike |
|
| Usage example for BigInteger and C++ (16 replies) |
| microsoft.public.dotnet.framework |
| One of the new additions to the .NET 4.0 framework is System.Numerics.BigInteger. Please can someone give a simple usage example? Thank you. |
|
| DateTimeFormat.MonthNames contains 13 items? (5 replies) |
| microsoft.public.dotnet.framework |
| Hmz... I just found a little article on the Daily WTF and tried one of the samples. And then I found that DateTimeFormat.MonthNames is actually 13 long... WHY?! Is it to support different calendars? Is it to support 1 based indexes in VB? I cannot wrap my head around it... the article in question: http://thedailywtf.com/Articles/Helpful SQL Helpers.aspx The simplest solution I found: public static... |
|
| Next "available" File/Folder Name,... (8 replies) |
| microsoft.public.dotnet.framework |
| Hi, i am looking for some API that will give me the next available file/folder name if the file/folder aleady exists. Example: you have a file named "New Text.txt", o the operating system suggests here "New Text(1).txt" if you create a new file within the shell. Is there any API that could give me the next available name for a file if i provide a filename as input? I guess its some shell interface... |
|
| PRB: HttpWebRequest POST with AllowWriteStreamBuffering = False (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, This is a strange problem for me, because I know this was working correctly, but now when I am testing it, it is not working. Nothing changed in my code, it merely acts now as if I have not set "HttpWebRequest.AllowWriteStreamBuffering False" and all data is sent quickly (ie, buffered locally). The whole point of turning off the buffering is so that I can provide a progress bar for larger uplo... |
|
| Net Framework Issues (2 replies) |
| microsoft.public.dotnet.framework |
| I have been having a few issues with software that appear to be related to ..net framework on my XP Pro SP3 machine. I have read numerous posts and tried dozens of "fixes" with none that work and am close to putting a hammer through my monitor through frustration. It has gotten to the point where I deleted all net framework versions and have started over at least 5 times to no avail. I've uninstal... |
|
| SETTING RULE FOR WHERE REPLY EMAILS ARE TO GO (2 replies) |
| microsoft.public.dotnet.framework |
| Hi DEFAULT EMAIL ADDRESS (cowlam@iprimus.com.au) I have just set up a new email account (damira@iprimus.com.au). How do I set this up as a separate log in etc so that all emails sent from the new account only come into the new account. Thank you very much Damira Cowlam |
|
| Application directory and mscorcfg (2 replies) |
| microsoft.public.dotnet.framework |
| Hi. I am trying to set up a new group with some permissions under mscorcfg. For the group condition type I am choosing Application Directory and the set of permissions I have defined. What I want is to tell that applications coming from a specific directory can't write to any file on c:\ and its subdirectories. But when I run my application it still can write to text files for example. Can I use m... |
|
| System.Diagnostics.Trace listener not working (2 replies) |
| microsoft.public.dotnet.framework |
| Hi I can't get the trace listener to work. I have a Website project in VS2008 with the following web.config entries: system.diagnostics trace autoflush "false" indentsize "4" listeners add name "myListener" type "System.Diagnostics.TextWriterTraceListener" initializeData "C:\Users\Public\Documents\TextWriterOutput.log" / remove name "Default" / /listeners /trace /system.diagnostics system.codedom ... |
|
| .NET Framework freezes the PC (6 replies) |
| microsoft.public.dotnet.framework |
| Hi there. When trying to install .NET Framework 2.0 in order to install SQL Express 2005, the PC freezes. So much so that I can do NOTHING on it and have to reboot manually. I believe that Framework 3.5 has had problems, but I can't find any solution to getting 2.0 installed. Please please please can some one help? frmsrcurl: http://msgroups.net/microsoft.public.dotnet.framework/ |
|
| Unable to install .NET Framework 3.5 (5 replies) |
| microsoft.public.dotnet.framework |
| With all previous version of the .NET Fw uninstalled from the Add/Remove Programs Manager at the recommendation of the manufacturer of my computer, I have attempted to install .NET Fw unsuccessfully with it getting to the point of the download manage telling me that the download is complete and that I can disconnect from the internet, then it attempts to install the update and seconds into the ins... |
|
| Threading issues and question (6 replies) |
| microsoft.public.dotnet.framework |
| I have a .Net service that processes messages contained in disk files using 1 or more threads. We run this on a server with 4 CPUs. We allow it to have up to 8 active threads processing messages from a synchronized blocking queue. The threads are long running custom threadpool threads. Each thread can be in one of several states running, suspended, stopping, stopped. These are logical states and n... |
|
| update label on form from within class file (6 replies) |
| microsoft.public.dotnet.framework |
| Hi, Can anyone please help me? I'm building I small tool to process some files in a directory. I've created a class file and added the process to the class file. When clicking on a button on the form, I create an object of the class and start the process by calling the methode... On my form, I would like a label that shows the filename of the file currenly be processed. I've tried raising an event... |
|
| UNC Directory Exists (3 replies) |
| microsoft.public.dotnet.framework |
| I have an application that we install at external clients offices. during the setup, if a setting points to a mapped drive, i convert the drive to a UNC using WNetGetUniversalName and store it in a configuration file. This all works fine. When my application wakes up, I use System.IO.Directory.Exists with the UNC as a parameter. If the UNC is mapped, this works fine. My problem occurs when the UNC... |
|
| How can I have in C#? (4 replies) |
| microsoft.public.dotnet.framework |
| hi How can I have this in c# (or any equivalent code that does the same thing): [DefaultValue(Environment.NewLine)] or [DefaultValue(f())] f() is a function that returns a value. |
|
| Global Warming and what you can do to against it (2 replies) |
| microsoft.public.dotnet.framework |
| Dear All, As you know global warming is endangering the future of life on the planet. It will also affect us; rising sea levels, dwindling water supplies, mass deaths due to heat waves, stoppage of the gulfstream, which brings milder climate to north of Europe, super hurricanes, less food due to droughts are some of the effects. As you also know global warming is produced due to CO2 emissions comi... |
|
| Setting Outlook 2003 as Default Mail Client (3 replies) |
| microsoft.public.dotnet.framework |
| Outlook 2003 has been slowly falling apart for me. A week or so ago the spell check quite working. Now when I try to click on a picture to send it via e mail it tells me I don't have a default mail client. I did not change any settings. How do I go in and make Outlook 2003 my default mail client? Thanks. |
|
| Screensaver won't work (4 replies) |
| microsoft.public.dotnet.framework |
| I want to use my pictures as my screensaver like I did in XP. I now have Vista and it won't work. The screensaver will not turn off it just keeps going on. I taked to techs for hours and they can't figure it out. Any ideas? |
|
| How to mark / build C# / WPF component STA (2 replies) |
| microsoft.public.dotnet.framework |
| I am hosting WPF components in unmanaged MFC. This WPF components will do some ricktext editing. Hosting / editing are working fine but closing will crash application on exit (release version only and no crash on debug). The following is the current structure: class parentA COM : definited / implemented in unmanaged C , STA class memberB COM : definited in unmanaged C , but implemented in C# (ComV... |
|
| Can anybody tell me exactly how to network my computer to att.uver (2 replies) |
| microsoft.public.dotnet.framework |
| Should I have 2 cat 5 cables runnning from the back of my computer to the residential gateway. One for my broadband connection and one to network my computer to the dmr's (cable boxes sitting on the TV"S) going also to the residential gateway. I can't get my TV"S to see my computer and my computer to share media with my TV's. I know I've got all the ports configured properly but I just can't get t... |
|
| Help with TCP Server. (21 replies) |
| microsoft.public.dotnet.framework |
| The code below appears to work, but it eventually freezes and I have to reboot the server. Killing and restarting the program itself doesn't work as the listener socket is still bound. I have put debugging statements in to verify that the ThreadPool threads are being released and the most thread pool threads that this code used was 3, even under heavy load. The problem appears to be when there are... |
|
| ExecutionEngineException for WNetGetNetworkInformation(....) (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, when i call the WNetGetNetworkInformation(...) inside my application, i get a fatal ExecutionEngineException for it. The pinvoke signatures are pretty correct translated (i translated them by hand, no tool!). See here: [DllImport("mpr.dll", CharSet CharSet.Unicode)] internal static extern uint WNetGetNetworkInformation( string NetworkProviderName, ref NETINFOSTRUCT NetInfoStruct); [StructLayou... |
|
| Socket connection like HttpWebRequest (2 replies) |
| microsoft.public.dotnet.framework |
| We have noticed that HttpWebRequest uses the Credentials property and Proxy property to perform security checks. Could any one help us that we subclass socket with these properties. we have used SSLStream but that uses SSL not the security techniques used by HttpWebRequest. Can anyone help us on how we could provide the same functionality on the sockets. |
|
| Sending E-Mail using Outlook with multiple attatchments in C# (2 replies) |
| microsoft.public.dotnet.framework |
| I am a newbie in C# but have experience in other OO languages. I want to write a COM component in C# that I can reuse in a application that we are developing in Powerbuilder. The COM should have the ability to: 1) Open a Outlook window. When the user enters any e mails, the outlook should validate for the right adress using the company directory. (I guess We dont have to code for this. Outlook can... |
|
| What to do to make compiler consider STATIC Readonly properties as CONSTANT? (7 replies) |
| microsoft.public.dotnet.framework |
| Hi when i used the following attribute for a property: 1 [DefaultValue(string.Empty)] c# compiler nagged that it expects a constant and forced me to change it to this 2 [DefaultValue("")] Any1 knows of a better programming style than line No. 2 ? I thought compliers exist to encourage better programming practice (that is more readable, more protable, more writtabe, more maintainable code )? Thank ... |
|
| Reflection and compiler inlining (4 replies) |
| microsoft.public.dotnet.framework |
| Hi all, Does anyone know if making calls to System.Reflection.MethodBase.GetCurrentMethod is reliable in an optimised, Release Build .NET app? I know the JITter can do some inline optimisations, and if it does will GetCurrentMethod reflect the calling method (i.e. the one this method was inlined into), or the containing method? I've Googled but have found contradicting information, and there is no... |
|
| SONY Viao with Vista X64 and Net.Framework 2.0 (3 replies) |
| microsoft.public.dotnet.framework |
| I have a SONY Viao Laptop running VISTA X64 with all the latest updates installed. I am trying to run a PCTV 880e tuner and when I try to run the software for the TV tuner it says I need to install Net.Framework 2.0 I try to install it and I get a message saying it is already part of the operating system. Does anyone have any idea as to what is going on and how to fix this. The PCTV 880e comes wit... |
|
| Email Issues (3 replies) |
| microsoft.public.dotnet.framework |
| Just got Windows 7 on a new computer and decided to try the live mail. Having trouble since day one! I have been intermittenly able to send or receive email more often I can't. Sometimes I get an error message that says my virus software may be the cause. Called the virus people they said to uninstall and reinstall virus software, it may have been due to an update. Tried that. Sometimes it says se... |
|
| PCX file format (3 replies) |
| microsoft.public.dotnet.framework |
| I'm looking for a BMP to PCX converter or any other to get a PCX 2 colour file. Document about PCX 2 Colour file format is wellcome too. I've the image in a arraybit (black and white points) and with that I've to generate the PCX file, the header section is right but I've not found info about the image encoding. Any help is wellcome. If in the market exists a control that solves it is right too. T... |
|
| .NET COM threading model (3 replies) |
| microsoft.public.dotnet.framework |
| Hello, I have a MFC application that uses a COM object implemented in .NET (C /CLI). The COM object behaves as if it uses the SLA COM threading model (i.e. serialized access). How to change the threading model to MTA (concurrent access)? The COM code looks like this: [ComVisible(true)] [Guid(" COM interface GUID ")] [InterfaceType(ComInterfaceType::InterfaceIsDual)] public interface class IPdfRepo... |
|
| Button Array (6 replies) |
| microsoft.public.dotnet.framework |
| Hi I have a UserControls with 20 buttons, how do i create a single delegate for all these buttons for the click event, which will show in the hosted windows form. Pointer to source will be helpful Regards Jacko |
|
| How does clickonce find the local application? (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, The shortcut file created by clickonce deployment having an extension .appref ms only has a link that looks like: http://127.0.0.1/ClickOnceDemo/ClickOnceDemo.application#ClickOnceDemo.application, Culture neutral, PublicKeyToken 27d66f1bda5f165d, processorArchitecture msil The file http://127.0.0.1/ClickOnceDemo/ClickOnceDemo.application has the name and version number of the executable assem... |
|
| how to automatically reset tabs in sourcecode (4 replies) |
| microsoft.public.dotnet.framework |
| Hi I worked for several years with visual studio and i'm loving it. One thing I noticed is that, when creating asp pages, the source code is but of a mess... Tabs are automaticlly at random inserted. Opening statements are in most causes not on the same tab level as the closing statements. Is there a function or plugin to clean up the number of tabs inserted before each line of code to make the co... |
|
| IronPython Training in New York, January 21st 2010 (2 replies) |
| microsoft.public.dotnet.framework |
| Hello all, In association with Holdenweb Training [1] I'll be doing some IronPython training in New York in January (21st). The course is called "IronPython from the Ground Up": http://hwebipmc01.eventbrite.com/ Course details: Michael Foord is an early adopter of IronPython, having used it for (among other things) the creation of the Resolver One Python driven spreadsheet product. He is the autho... |
|
| Memory allocation limits (12 replies) |
| microsoft.public.dotnet.framework |
| Hello. When trying to allocate a huge amount of memory, our production system throws OutOfMemoryException. Well, there is not enough memory available, that's the reason. But what I don't understand is the folowing: Using System.Diagnostics.PerformanceCounter("Memory", "Available MBytes") we see that the system still has over 600 MB available. However, when the system tries to allocate about 300 MB... |
|
| GZipStream and buffering (5 replies) |
| microsoft.public.dotnet.framework |
| I wrote a client / server networking application and all communication between the two is compressed using GZipStream. However, I found a wierd buffering problem. Despite how I had the network stream configured, buffering would still occur (on a small scale). I pinpointed the problem to GZipStream. Basically it seems to buffer content and calling Flush has no effect. Below I wrote a small sample a... |
|
| Why is Stopwatch.ElapsedTicks negative? (10 replies) |
| microsoft.public.dotnet.framework |
| I've got a simple console app which I've written which makes use of the Stopwatch class to do some measurements. Surprisingly, to me at least, some of the Stopwatch.ElapsedTicks are negative. IsHighResolution is true and the Frequency is 2,612,080,000. The entire application runs in a little over a minute. Why would any of the elapsed times I'm measuring come out negative? I searched around and fo... |
|
| Setup Project DirectoryInfo UNC permission issues (4 replies) |
| microsoft.public.dotnet.framework |
| Good afternoon, I have a Setup Project within a Visual Studio 2008 Solution, and within the same Solution a DLL Assembly containing an Installer class. The Setup Project incorporates the Primary Output of the DLL and uses the Installer class for an "AfterInstall" Custom Action. Here is a code snippet from the AfterInstall event of the DLL Installer class: ' This is the target Path Dim tarPath As S... |
|