Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score ReaderWriterLock with Interlocked?
Amir The Ruler - 13 Jan 2007 8:57 PM - 8 messages
Found this piece of code in .Net SDK 2.0. Why do we need to use Interlocked although AcquireWriterLock is supposed to serialize access and do the traick? // C# ReaderWriterLock rwLock = new ReaderWriterLock(); int counter = 0; try {     rwLock.AcquireWriterLock(1000); ...
Score How can I find out if .NET Framework is installed?
wolfv - 13 Jan 2007 6:10 PM - 3 messages
How can I find out if .NET Framework is installed on my win2000 machine? I want to learn asp.net.  I thought I installed .NET Framework, but asp.net does not seem be to working on a simple .aspx file. ...
Score .net 3 and Visual Studio 05 Express
C=FCneyd_Erbay - 13 Jan 2007 4:17 PM - 6 messages
Hello, I have got a little question can I upgrade my VS 2005 C# Express to the ..net framework 3 ? And if yes how ? Thanks ...
Score UML class library needed
MP4/4 - 13 Jan 2007 2:50 PM - 5 messages
Hi! I'm student doing my graduation work in .NET . I was permitted to use some existing freeware UML class library in making UI for my work, but i have problems finding one that would suit my needs. Such would have to ...
Score Uninstall ReportViewer
Kuti - 13 Jan 2007 11:11 AM - 1 message
During the installation process of my program I install ReportViewer in silent mode (Parameter: /q:a /c:"install.exe /q") How do I uninstall it again? - If possible again in silent mode. Thank you for any hints! ...
Score Using Statement
Barry - 13 Jan 2007 9:43 AM - 4 messages
Hi I recently saw some code written by another programmer in C# , it had code blocks using(<some statement to connect to a database>) {       using( <some statement for create dataadapter >)       { ...
Score local path
Roy - 13 Jan 2007 5:12 AM - 3 messages
If I start my program from a map drive, how do I get the local path or UNC path for the application instead of the one from a map drive? I am using C#. ...
Score Valid constraints.
Kevin Burton - 13 Jan 2007 12:54 AM - 4 messages
I have an interface that I am trying to make the generic constraints as restictive as possible so that the generic types are not what is expected. I get two errors: 1) Indicates that the contraint type cannot be sealed. How can I get around ...
Score Installer built on VS 2005 with .NET prerequisite corrupts GAC
wheresjim - 13 Jan 2007 12:48 AM - 1 message
I created an installer that installs .NET Framework 2.0 as a prerequisite, which works great, further on in the installation it places 3 .dlls in the GAC, and then it launches my app, which complains that the 3 assemblies are not in the GAC, despite the fact that I have ...
Score ClickOnce not working
mike.starkey - 12 Jan 2007 11:34 PM - 2 messages
I have a windows click once installation deployed on our local intranet.  It seems that the program will only install for about half of our staff.  It seems to be the newly imaged machines it is not working on.  All the users have .Net 2.0 and Visual Studio 2005.  For ...
Score validators quit working, help!
JP - 12 Jan 2007 8:53 PM - 1 message
Out of the blue this afternoon. All the validators for my C# project quit working. Upon clicking the submit button, the Postback occurs before the validators are checked. These are standard .NET 2005 RequiredFieldValidators. Each TextBox and Dropdown associated with their respective validator has CasesValidation = ...
Score Architecture recommendation needed
Jeff Johnson - 12 Jan 2007 8:03 PM - 4 messages
[VS2005, i.e., Framework 2.0] I'm setting up a small distributed application. Clients will have a UI and submit jobs to a server. Beyond simply needing to know when the job completes, there may be stopping points where the operator needs to take ...
Score Conversion errors where no conversion needed
jbeckh2@gmail.com - 12 Jan 2007 7:24 PM - 1 message
Today when I opened a solution, I started receiving this around 205 of these errors: Value of type 'System.Data.DataTable' cannot be converted to 'System.Data.DataTable' Value of type 'System.Drawing.Color' cannot be converted to 'System.Drawing.Color ...
Score FileLogTraceListener not writing to file beyond a constant max-size
Kunal - 12 Jan 2007 6:05 PM - 2 messages
Hi Friends, I've been using FileLogTraceListener class to write log data to files. Since the data being written is continuously generated, I set the file to be created on a daily basis. I do not set up the maximum size for ...
Score PerformanceCounterTypes Behavior
Ting Zuge - 12 Jan 2007 4:46 PM - 1 message
I have been experimenting with the different PerformanceCounterTypes to see how they work and how they should be updated. There are a couple of them that behave very differently from what I expect and I'm hoping someone can shed ...
Score Generating web service proxy at runtime for Compact and full .NET framework
Jo Vermeulen - 12 Jan 2007 12:19 PM - 1 message
Hello, I am trying to generate a web service proxy from a WSDL description. I know the 'wsdl.exe' tool can be used for this, as well as Visual Studio itself. What I would like to do however, is have this file generated at ...
Score PictureBox: internal use of thumbnails?
cyberco - 12 Jan 2007 10:50 AM - 2 messages
Using: Windows Mobile 5, .Net CF 2, C# My Form contains 5 small PictureBoxes, each displaying a large photo (1600x1200). Since I'm running into memory problems I get the feeling that each PictureBox keeps the complete photo in memory. Are ...
Score Install com from .msi or...
Mercdev - 12 Jan 2007 7:35 AM - 3 messages
Hi, We have a .NET assembly with COM controls inside. We need to register this control in Internet Explorer. We have a html page to use this control: <html>      <body>       <OBJECT id="control1" ...
Score CodeDom interator format.
Kevin Burton - 11 Jan 2007 11:17 PM - 1 message
I generate a CodeDom loop and the code it generates looks like:             for (int i1; (i1 < getCatalogs.Count); i1++             ) ...
Score HttpWebRequest Date header is not sent over to a web-server
vb - 11 Jan 2007 6:48 PM - 2 messages
HttpWebRequest Date header is not sent over to a web-server. I understand that it is a restricted header and is supposed to be set by the system to the current date and thant's fine but when I analyze the request I ...
Score Can I Temporarly Rollback to .Net Framework 1.1?
Tony Van - 11 Jan 2007 3:48 PM - 2 messages
I have to install a bigger HD so I purchased Norton Ghost (to clone my old disk). But Ghost will ONLY run with .NET Framework 1.1. Two Questions..... 1. Can I rollback or reinstall Framework 1.1, run my Norton ...
Score Set HotSpot Cursor dynamically
gabriel - 11 Jan 2007 3:04 PM - 1 message
Hi, I've changed the cursor icon r (a personalized icon) and I need to change the hotspot but, the  Cursor.Hotspot is read only. How could I set a new hotspot of my new cursor? ...
Score Globalization: using another than the default language
cyberco - 11 Jan 2007 2:51 PM - 3 messages
Using: WM5 PPC, .NetCF 2, C#, Visual Studio 2005 OK, I figured out how to add resources.resx files for different languages/cultures for both my Frames and my project at large. But how can I deploy a version of my application that uses the non-default ...
Score Problem in deploying .Net Framework 2.0 through GPO (2003)
Komandur Kannan - 11 Jan 2007 2:20 PM - 6 messages
I have tried to deploy .Net Framework 2.0 as per the instructions given in [link](d=printer).aspx I have elevated the privileges for group policy and am trying to deploy ...
Score Policy File Not Working?
DesperateDan - 11 Jan 2007 2:16 PM - 7 messages
1/ Got two versions of the same DLL in the GAC called ClassForGac.dll; V1.0.0.0 & V2.0.0.0 (No problem so far) 2/ Got client.EXE that was compiled against V1.0.0.0. and calls ...
Score SystemWeb.AspNetHosting.Permission / publickey failed
DB - 11 Jan 2007 2:03 PM - 1 message
I am trying to build a Website for my business using vwd 2005 express windows server 2003 and IIS 6.0 I am recieving this error message when I try to debug or build the project. This is the message (SystemWeb.AspNetHosting.Permission ...
Score GDI+ moving drawings
sonny - 11 Jan 2007 12:44 PM - 4 messages
hi, i'd like to scroll an square across the form, but i have 2 requirements.  it should only be visibile for a certain amount of time (generally 400 ms) and it should move across the screen for a certain disance. ...
Score QUESTION
krishna - 11 Jan 2007 12:23 PM - 2 messages
difference between dynamic-link libraries,static link libraries,exe files ...
Score .Net 3.0 Install Error
dirk.dircksen - 11 Jan 2007 9:07 AM - 3 messages
Hi I'm getting the following error when trying to install .Net 3.0: Communication Foundation. MSI returned error code 1603 [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Microsoft .NET ...
Score Best practice question: Protecting managed assemblies
Laurent - 11 Jan 2007 7:53 AM - 8 messages
Hi, What is the best practice to avoid the end user tampering with installed managed DLLs. For example, a web application connects to a server to verify licenses. If licenses are valid, the application runs, if not an error page is displayed. However, if the web application (ASP.NET) is ...
Score GDI+ is not properly initialized (internal GDI+ error).
Robin van de Water - 11 Jan 2007 7:44 AM - 1 message
Hi All, In one of my web applications, I intercepted the following error in the Application_Error part of the Global.Asax:     GDI+ is not properly initialized (internal GDI+ error). The error as it was mentioned in the server's event viewer shows the ...
Score UDP Server (what's wrong?)
Nick - 11 Jan 2007 5:16 AM - 3 messages
I have written a simple UDP server. It uses a single socket and sends incoming data to random ports on the same machine. After second call of Receive () I got SocketException "An existing connection was forcibly closed by the remote host". How it can be? I have UDP server and there ...
Score Error reading the HTTPListenerRequest InputStream
Kunal - 10 Jan 2007 10:51 PM - 4 messages
Hi Friends, When I try to read the incoming client request data using the HttpListenerRequest.InputStream property, I'm getting the following exception (not everytime) - System.Net.HttpListenerException: The I/O operation has been aborted because of either a thread exit or an application request ...
Score SharpPDF
mianiro - 10 Jan 2007 4:56 PM - 1 message
Is anyone familiar with SharpPDF and know if it has the ability to put a background image on a PDF? Thank you ...
Score Calling from default AppDomain (native code) into another AppDomain (managed code), hosted by ASP.NE
Dave Burns - 10 Jan 2007 4:41 PM - 3 messages
Hello, We have a situation where a managed C++ assembly links with native C++ dll. There is a callback mechanism which calls back into the managed code asynchronously. Since native classes cannot hold onto a managed reference, we need to have a managed static member which we access during the callback ...
Score CodeDom foreach
Kevin Burton - 10 Jan 2007 4:41 PM - 4 messages
I see that there is no equivalent for generation a "foreach" statement using CodeDom. I was wondering what would be a reasonable substitution or work-around? Thank you. Kevin ...
Score how to cache a datatable every X time
urielka - 10 Jan 2007 1:14 PM - 2 messages
i have a web app where i have a Singleton holding a bunch of datasets(Instances not classes). one dataset have some dynamic data that i want to update once a while,that dataset is accessed by other part of the app ...
Score Problem about socket.poll
jinfeng_Wang - 10 Jan 2007 12:58 PM - 1 message
I have writen the following souce code :             m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);             m_Socket.Blocking = false; ...
Score Background Color of MDI Client Area
Barry - 10 Jan 2007 11:21 AM - 2 messages
Hi What is the way to change the colour of the background in the client area of a MDI form Window. TIA Barry ...
Score [App-name] has encountered a problem and needs to close. We...
Daniel Carlson - 10 Jan 2007 6:41 AM - 16 messages
Hi Under what circumstances do this dialog box apper in a .Net 2.0 application? I have never noticed this dialog box before I installed the KB924895 fix for ..Net framework 2.0. ...
Score DataGridView and DateTimePicker on same form cause flickering VS2005
allan.cruse - 10 Jan 2007 1:42 AM - 1 message
Hi Has anyone experienced this problem?  To create the problem, simply place a DateTimePicker and DataGridView on a form.  Add some columns to the DataGridView in designer mode and then run.  It is easier to see the flicker if you add a few rows to the grid(just add a few rows by ...
Score C# - Printing a form with scrollable controls
avanti - 10 Jan 2007 1:38 AM - 3 messages
HI, I have an app that has a form with scrollable controls. So, I cannot make a bitmap from the printscreen and print it since all the content and controls are not visible at the same time. Is there a way in C# to print such a form - printing the whole content? ...
Score ClickOnce - .chm file
avanti - 10 Jan 2007 1:21 AM - 1 message
Hi, I have a ClickOnce app that has a .chm help file. The .chm file is set as - Build Action: Content and Copy to Output Directory: Copy Always. When I publish the app, it is not available. I have already tried the ...
Score Get type from string.
Kevin Burton - 9 Jan 2007 11:51 PM - 5 messages
I am trying to do some reflection and it seems that Type.GetType(string) fits what I want to do. There is only one problem is that the string requires an assembly qualified name in order to get the type. I would like to just supply ...
Score Accessing file properties
JBK - 9 Jan 2007 10:26 PM - 2 messages
I've been searching the file classes for a way to read and modify the file properties you see when you right click a file, under the summary tab. It has fields like title, subject, category and so on. Thanks for any tips. ...
Score Explict generic methods
Kevin Burton - 9 Jan 2007 6:13 PM - 4 messages
Do C# generic methods support explicit implementation? Within a non generic class I would like to define explicit implementations for methods. For example: class A {     static void Method<T>; } Now I need someway to define explicit implementations. I need definitions so ...
Score Secure Web Reference Problems
Ivan - 9 Jan 2007 6:08 PM - 2 messages
I'm having problems adding a secure web reference (i.e. a web reference to a WSDL file behind an HTTPS URL) that requires a VeriSign client certificate. With the client certificate installed in my personal certificates folder, I am able to access the ?WSDL file through IE, but when I attempt to add the ...
Score Problem granting IP address access to FTP using System.Management
Konstantin - 9 Jan 2007 4:09 PM - 7 messages
I am using System.Management to grant IP addresses permission to access our FTP server.  I am setting PutOptions type to UpdateOrCreate and issuing Put() function. New IP address is added to FTP security, but cannot access the FTP ...
Score Console app & Base path
ThunderMusic - 9 Jan 2007 2:43 PM - 3 messages
Hi, I have a console app. I have to search for files in the directory from which my application is run. Here's an example : c:\MyApp>MyApp.exe param1 param2 The base path is C:\MyApp...  but if I do the following : ...
Score PDF Generator
mianiro - 9 Jan 2007 1:49 PM - 2 messages
I'm looking into working with an opensource PDF Generator or Converter.(ItextSharp etc...) However, in my research, none of these seem to give total control over placement of text.  I need to place text in specific areas/coordinates. ...
Score how to identify framework used for a Dll
Lalit - 9 Jan 2007 12:22 PM - 2 messages
How can we identify which .Net Framework is used in a dll? Regards, Lalit ...
Score Chuncked upload via socket
cyberco - 9 Jan 2007 12:11 PM - 3 messages
Using: .Net Compact Framework 2, Windows Mobile 5 (Pocket PC) I'm trying to upload a large binary file in chuncks over a socket (as a multipart mime message). This is how I'm trying to accomplish this, but it somehow doesn't work: ...
Score how can i create multiple subdomain into domain
anj.smart - 9 Jan 2007 9:45 AM - 3 messages
Hi:-I have my own webspace [link] When any new user register on to my site, a new url name [link] or [link] should be provided to it. ...
Score .net framework updates
Mike74f - 9 Jan 2007 3:23 AM - 2 messages
i have .net framework 1.1, 1.1 hotfix and 2.0 can i unistall the two 1.1's and if i download 3.0 can i take off 2.0 also? ...
Score WebRequest timeout changed declaratively
Cedric - 8 Jan 2007 10:57 PM - 4 messages
Hi all, We have some performance issues on a .NET 2.0 app. However we cannot modify it, we don't have the sources. Reading the logs, the error is a timeout happening in some Web Service call. With the sources, it would be easy (?!), would have just changed ...
Score Storing/saving sessions on SQL Server
stephen - 8 Jan 2007 9:54 PM - 3 messages
Hi all, I am trying to work with SessionState mode="SQLServer" and have run the installSQL Script and the good stuff... While running the program I get "SQL Server does not exist or access denied. "error if I have either ...
Score WIC Installer Error
Joshua A. Booker - 8 Jan 2007 9:08 PM - 7 messages
Hi, dotnetfx3.exe setup fails please help.  I included dd_dotnetfx3error.txt & dd_WIC.txt logs below. I am logged in as user in 'domain admins' group and Cryptographic service is running on this computer. TIA, Josh The error log reads: ...
Score Build reflection call into base class?
Barry Gilbert - 8 Jan 2007 8:15 PM - 5 messages
I'm looking for a way to expose property attributes in a derived class. I'm declaring Description attributes like this: Public Class Employee     <Description("Last Name")> _     Public Overridable Property NameLast() As String ...
Score Build reflection call into base class?
Barry Gilbert - 8 Jan 2007 8:15 PM - 1 message
I'm looking for a way to expose property attributes in a derived class. I'm declaring Description attributes like this: Public Class Employee     <Description("Last Name")> _     Public Overridable Property NameLast() As String ...
Score Control Design Time Updating
andyblum - 8 Jan 2007 6:49 PM - 2 messages
I have created a user control that contains one a tree object on it.  I want the tree objects size and position to be the same as the control that the developer drops on his painter.  How do I accomplish this so ...
Score StrataFrame Application Framework
Robert Fuchs - 8 Jan 2007 6:02 PM - 2 messages
Hi, has anybody tried to use the StrataFrame Application Framework and can comment about it? [link] regards, Robert ...
Score SQL Server Problem.
dolphinearth - 8 Jan 2007 4:39 PM - 3 messages
Hi. I hope someone smarter than me could help me with this strange problem. I created a system which needs to connect to a SQL database. Initially the programs were designed in Visual Studios 2003 .Net, and the database was SQL Server 2000. After a long wait, I finally got the go ...
Score State Management Question
stephen - 8 Jan 2007 4:37 PM - 1 message
Hi all, I want to try State Management using SQL-Backed Session State and am trying to locate aspnet_regsql.exe on my computer but I cannot find it in C:\<windows>\microsoft.net\framework\<version> or my computer ...
Score Control (textbox) update from thread invisible
brett.mack - 8 Jan 2007 4:21 PM - 7 messages
Hello! I'm trying to update a text box from a thread. It works fine until my thread is created from a seperate class. To illustrate, here's my form code (the textbox is txtOutput.text) and for the class: ...
Score External Program like child in MDI Parent
Sheikko - 8 Jan 2007 3:47 PM - 1 message
I want to create, in cSharp,  an MDI application parent and to call in it another program (i.e. notepad) like his child. I want to create a proccess with  CreateProcess() and call it like child in my application ...
Score change directory on FTP server
Joe - 8 Jan 2007 3:35 PM - 2 messages
Hello All: I am using the .NET 2.0 framework to write an ftp client for my employer.  One requirement is that we should be able to navigate among the various directories on the ftp server.  Does anyone know if there is a documented ...
Score How do I grant permissions to my .NET 2.0 program in Windows 2003?
dberman - 8 Jan 2007 3:27 PM - 3 messages
I created an application under C# that runs as a Windows Service.  On my workstation the application runs fine.  On my Windows 2003 server, it doesn't.  I used the .NET framework 2.0 InstallUtil to install my ...
Score Debugging managed code under windows 98
adi - 8 Jan 2007 2:48 PM - 2 messages
Hi I have this application that bevahes strange under some circumstances when running under Windows 98. I'm using v1.1 of the framework and my app is a standard Windows Forms app. Is there a way/tool to debug my app under windows 98? ...
Score Still getting 'The thread <'No Name'> ... has exited' after setting names of threads
Lasse_Vågsæther_Karlsen - 8 Jan 2007 1:37 PM - 2 messages
After executing the following code in .NET 2.0: Thread t = new Thread(new ThreadStart(delegate {      Debug.WriteLine("Test"); })); t.Name = "TestThread"; t.Start(); I still get that the thread has no name. The debug output is: ...
Score ClickOnce with prerequisites
Earl - 8 Jan 2007 1:17 PM - 2 messages
Is ClickOnce deployment appropriate for an app where you have to ensure that the user has the correct framework installed (2.0) and also installs the SQLExpress plus scripts in the database? I've never used the ClickOnce technology before and am debating whether to use a batch script, an ...
Score My application quits unexpectedly
Daniel Carlson - 8 Jan 2007 1:07 PM - 3 messages
Hi everyone! I have a BIG problem regarding a windows application that unexpectedly quits (crash). I started in .Net Framework 1.1 with SP1 where I first notated the problem. I convertd to .Net Framework 2.0 but the problem remained. I then ...
Score Provider Model for WinForm
Webbert - 8 Jan 2007 12:54 PM - 1 message
I've looked through some of the documentation on the Provider Toolkit but it all seems to reference ASP.NET.  I don't see any reason that I can't use it for a WinForm application.  Is there anything that I need to know or do differently in order to make it work? ...
Score How can I use C++ Lib file into dot net
Umeshnath - 8 Jan 2007 9:14 AM - 3 messages
I have a library file (.lib) which was developed in c++, I need to use this lib file into .net Can I convert the lib file into dll or is there any way to use this lib in ..net? ...
Score Reading Config from custom location in .NET 2.0
jboy - 8 Jan 2007 6:28 AM - 1 message
My company has recently purchased a software product that spans several technologies (ASP, COM,  VB 6.0, .net 1.1, .net 2.0). We are trying to standardize the software over to one technology (.net 2.0).  Part of ...
Score Issue in passing username and password credentials
San - 8 Jan 2007 5:16 AM - 4 messages
Hi, I am facing a problem in posting Web request with username and password credentials. I am working on migrating Java client application to .Net which will send request to Java servlet. Java Client application code:         HttpClient httpclient; ...
Score Go C# .NET for the larger applications?
ectoplasm - 8 Jan 2007 4:49 AM - 20 messages
Is there a list somewhere of companies or other software applications initiatives that are using .NET for implementation? (i.e. software running on the CLR) I'm especially thinking of the larger applications. E.g. something which maintains a large database or extensive GUI, etc. I just thought ...
Score Generics and constructors.
Kevin Burton - 8 Jan 2007 4:09 AM - 4 messages
There is something that I don't understand about .NET Generics. I have code like the following:         public class A         {             private string _paramOne; ...
Score Passing class through using P invoke
Feldaspar - 8 Jan 2007 1:01 AM - 2 messages
Hi, I'm trying to pass an object through to unmanaged code using P invoke. My code for .net and unmanaged (visual objects) code is below. The object properties are not coming through right. The address is coming across as a garbled string and the postcode is not the right ...
Score Custom Attributes and properties ordering
polymedes - 7 Jan 2007 4:05 PM - 2 messages
Is there any common practice for ordering of an object's properties? Think this as an example: You have a List<OfClass> and you provide an instance of this list as Datasource to a grid. Is there any custom ...
Score ASP Web Project
Barry - 7 Jan 2007 10:06 AM - 12 messages
Hi I have a assignment of making modifications to a shopping cart which is derived from VP-ASP opensource it as webpages of type .asp , which Development environment is required to develop project whic have pages of type .asp. I tried Visual Web Developer , but it uses .aspx ...
Score CodeDom conditional expression.
Kevin Burton - 7 Jan 2007 9:15 AM - 2 messages
I would like to know the sequence of calls required to create a conditional expression like: if(a != null) { } So far I have only come up with if(a) { } Which will work but I would like to know how to form expressions with '!=', ...
Score JIT Issue
Barry - 7 Jan 2007 8:44 AM - 2 messages
Hi I am a freelance developer on the internet. In VS 2003 the C# Web Application would create a DLL in the bin folder, i used to upload only all files in the project EXCEPT .cs  on the clients site ...
Next »