all groups > dotnet framework > april 2008
Filter by week: 1 2 3 4 5
Where to find DIFxApp
Posted by Sid Price at 4/30/2008 6:15:57 PM
I am trying to download DIFxAPP so that I can integrate a driver
installation with my application installer. I keep finding myself going in
circles trying to find it and would appreciate a URL,
Thanks,
Sid.
... more >>
SharedPerformanceCounter.CreateInstance exception
Posted by Muntz at 4/29/2008 9:16:01 PM
We have written a SOAP Extension assembly that writes timings and method
counts to Performance Counter instances every time a Web Method is invoked.
This has been working stably for some years.
Recently one one server or another we have noticed some exceptions coming
out of this assembly:
... more >>
ClickOnce deployment to Vista 64 bit problems
Posted by Martin Horner at 4/29/2008 8:15:09 PM
Hello Folks,
Has anyone had any experience deploying to Vista 64 bit OS using ClickOnce?
We are having problems with two development machines where Visual Studio
2008 is already installed.
The application in question has Crystal Reports Basic for Visual Studio
(x86,x64) selected as a prere... more >>
Regex Replace Help
Posted by barry at 4/29/2008 7:56:28 PM
Hi
I have a files which contains
&
&
"e;
I want to replace & with & , but not & or "e;
Will someone please help with the Regular Expression.
TIA
Barry
... more >>
Programatically create static network route
Posted by Sid Price at 4/28/2008 5:39:50 PM
I am searching for information on programmatically creating static network
routes. We need to integrate the functionality of the command line
"route.exe" utility to create a static route. I would appreciate any
pointers to understanding how to do this with the .net framework classes.
Thank yo... more >>
System.Diagnostics.StackTrace
Posted by Peter Larsen [CPH] at 4/28/2008 4:31:56 PM
Hi,
How do i get the line number of the calling method in debug-mode.
This is what i do:
StackTrace st = new StackTrace();
string s = string.Format("Method:{0}, line:{1}",
st.GetFrame(1).GetMethod(), "??");
This method gets the callers function name, but i don'... more >>
Funky Build Shows No Errors When Compiling
Posted by Schemed at 4/28/2008 2:09:17 PM
Something got funky with my build.
I had been happily developing my web site when all of a sudden F6 (or
rebuild solution) decided it was not going to compile my .aspx.cs nor
ascx.cs code and thus I do not get error messages until I try to open
page in browser.
Could someone walk me through... more >>
XML Comments and back ticks
Posted by Bob Jones at 4/28/2008 9:43:40 AM
I am curious. When looking at the XML comments provided by .NET 2.0.
What is the difference between a single and double back tick? MS
documentation http://msdn2.microsoft.com/en-us/library/fsbx0t7x(VS.80).aspx
states;
For generic types, the name of the type will be followed by a back
tick and... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dot net 3.5 compatibility issues with 2.0
Posted by dannydenhard at 4/28/2008 6:51:30 AM
Hey,
Can someone help?
We have visual studio 2008, and our coding team have been coding new
features on our older infrastructure.
Currently it runs dotnet framework 2.0 and we are having issues when
running this or uploading any new developments.
Is there any way of selecting what fram... more >>
assembly always gets built optimized <1175581825.143153.29530@o5g2000hsb.googlegroups.com>
Posted by Kousik Chatterjee at 4/27/2008 11:43:33 PM
Hi Robert,
I recently came across the same problem. I am not able to debug parts of the code when I attach my visual studio debugger to an already launched process.
Did you find a way to get across it ? Do I need to modify the build settings for the particular assembly to solve the problem ?
T... more >>
determing file size of Bitmap object without saving it...
Posted by buu at 4/27/2008 9:30:33 PM
how could I find file size of an bitmap object downloaded from an web site
without saving it to the disk (and using system.io.FileInfo)?
is there any way to create some kind of an byte array and read it's size?
... more >>
click once command line parameters how to ?
Posted by Tom at 4/26/2008 12:07:00 PM
I want to pass parameters to a click once application run from the windows
scheduler. I have found several references that tell me these applications
are launced using a URL to the deployment manifest using query string
parameter syntax:
http://mydeploymentserver/MyApplicationFolder/MyApplic... more >>
Can dotnet Framework 3.5 used in VS2005?
Posted by chyong at 4/25/2008 8:36:00 PM
Hi, can I upgrade the dotnet framework from 2.0 to 3.5, and use it in my
VS2005 projects development?
Thanks... more >>
IsDnsEnabled
Posted by jve91@lordbah.com at 4/25/2008 2:57:03 PM
We just moved to .NET 2.0, and in trying out
System.Net.NetworkInformation and friends, I find that it always says
IsDnsEnabled=false, even when that connection clearly is using DNS to
resolve names, I can fetch back DNS server addresses, etc. Anyone else
see this? All of the other settings look... more >>
Silly delegate question
Posted by Mark at 4/25/2008 2:09:03 PM
How many superdelegates does it take to screw in a lightbulb?
No... I was wondering if an instance of delegate stateful or can it be
reused?
For example you see a lot of (new AsyncCallback (method), param) it i/o
calls. If the delegate itself isn't carrying state, it seems like you could... more >>
How to write a .NET attribute which does just like ObsoleteAttribute...
Posted by AshokG at 4/24/2008 5:56:46 PM
Hi,
In .NET there is attribute named ObsoleteAttribute which is derived from
System.Attribute Class. This attribute when applied to a target (class or
method etc.) gives a compiler warning/error. I know we can write our own
attributes by inheriting the System.Attribute but I want to make i... more >>
Windows services opens a win application form.
Posted by Andrew at 4/24/2008 6:51:05 AM
Windows services opens a win application form.
Hi,
How do I get my Windows service opens form in windows application ?
I have this bit of code :
Service1.cs
===========
using System.Windows.Forms;
protected override void OnStart(string[] args)
{
Application.EnableVisualStyles();
... more >>
identity does not have write access to Temporary ASP.NET Files'.
Posted by Naveen at 4/24/2008 6:03:45 AM
Hi Friends,
I created one ASP.Net 2.0 application and deployed that in IIS.
When I tried to access that through IE, it is giving following error.
The current identity (ComputerName\ASPNET) does not have write access
to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files... more >>
Is AJAX Extension needs Visual Studio .Net 2005
Posted by Naveen at 4/24/2008 5:37:56 AM
Hi,
Do Visual Studio .Net 2005 need to be installed for installing AJAX
Extension.
Thank you
Naveen G... more >>
CodeBase and Dependent Assemblies
Posted by Dougie Brown at 4/24/2008 2:16:01 AM
Hi
I have a question or two which I'm pretty sure of the answers, but wanted it
confirmed by those who know more than me!!
Basically we want to share assemblies across many applications and allow for
side by side execution, but for reasons that I don’t quite agree with the GAC
is rule... more >>
Xml File Reading Issue
Posted by barry at 4/23/2008 7:46:59 PM
Hi
I am trying to read a large xml file (about 69mb in size) using ReadXML()
method of DataSet, it takes very long to do so, i there some other way to
read such large XML files.
TIA
Barry
... more >>
Regex help
Posted by barry at 4/23/2008 3:59:58 PM
6Nov08
6Nov2008
26Nov08
26Nov2008
Will someone please give me the Regular Expression from the above 4 items, i
need to extract
day , Month and Year
TIA
Barry
... more >>
Hook web service call
Posted by Fred at 4/23/2008 3:20:23 PM
Hello,
A windows forms client connect to an ASP.NET 2.0 web service.
A proxy class is generated by Visual Studio 2005.
How can I simply store (on client side) the time of the last call to the
web service, without modifying the proxy generated class file ?
Thanks for yout help.
--
F... more >>
How to use in .Net path longer than 260 characters
Posted by Francisco at 4/23/2008 10:21:56 AM
Hello all,
I'm trying to use paths longer than 260 characters, but the classes
I've used like System.Directory seems to lack support of NTFS long
paths like:
\\?\d:\test
or
\\?\UNC\testmachine\testshare
Can anybody give me any clue on that?
Thanks in advance... more >>
Windows Service & System.Timers.Timer production issue...
Posted by Ollie Riches at 4/23/2008 9:28:00 AM
I'm looking into a production issue related to a windows service and
System.Timers.Timer. The background is the windows service uses a
System.Timers.Timer to periodically poll a directory location on a
network for files and then copies these files to another location (on
the network) AND then up... more >>
How can I verify .NET 2.0 installation???
Posted by C.R. at 4/23/2008 6:02:34 AM
I have found ways by checking the registry, but we have hundreds of
computers. I have a powershell script that can verify the presence of
folders and files. Is there one specific file or folder that .NET 2.0
installs that I can check for?... more >>
Error Message When I Bring Up Media Center
Posted by Joey Bear's Girl at 4/22/2008 6:03:00 PM
When this error appears it's also difficult to get out of both the error
message and media center. Here is the error:
WINDOWS - NO DISK
exception processing message c00000135 parameters 75b6bf9c 475b6bf9c 75b6bfac... more >>
CryptographicException from System.Security.Cryptography.Protected
Posted by ondrej421 at 4/22/2008 4:58:01 PM
Hi there,
On some computers running Windows XP, the ProtectData() method sometimes
throws the following CryptographicException:
Type: System.Security.Cryptography.CryptographicException
Message: The system cannot find the file specified.
Source: System.Security
Stack Trace:
... more >>
.NET winform repainting issure
Posted by rsimlote@gmail.com at 4/22/2008 11:27:31 AM
I have a winform application, and forms with several nested controls
incl. tab controls, tablelayoutpanel, groupboxes and the controls. I
also have some usercontrols that I am adding dynamically. All together
I have more than 300 controls on the application. The problem is that
when I scroll, th... more >>
Missing .Net Framework Configuration utility
Posted by John Coltrane at 4/22/2008 9:24:49 AM
I installed VS 2008 with the .Net framework and the Configuration
utility doesn't seem to be installed. How can I install this?
thanks for your help
john... more >>
DateTime
Posted by Roy at 4/22/2008 8:07:00 AM
I want to copy a DateTime value to/from an byte[] array. However, when I try
to get the size of DateTime by using sizeof(DateTime), the compiler complains:
'System.DateTime' does not have a predefined size, therefore sizeof can only
be used in an unsafe context (consider using
System.Runtim... more >>
Binding a generic List to GridView
Posted by Andreas Hartje at 4/21/2008 7:22:41 PM
Hi there,
sorry for crossposting, it's getting late in the evening here in Europe :-(
I have a little problem binding a generic list to a GridView. The List gets
filled
with data from textboxes (via properties in class Person, see below) and I
want the grid to show each new set of textbox st... more >>
Problems Background Printing PDF from C# Application
Posted by lmttag at 4/21/2008 5:47:03 PM
Hello,
We are having a lot of problems trying to print a PDF file in the background
using a C# application that is executed via SQL Server Agent. The output
should be printed to a local printer (HP Color LaserJet 1600) connected via a
USB port.
We have a C# application that calls System... more >>
EIL Logging to Custom Event Log?
Posted by coconet at 4/21/2008 3:58:09 PM
Can anyone post an example of how to log to a custom (new) Event Log?
I don't want to use Application or System or any of the other built-in
ones. I want to write to a new log called "CustLog".
I think I just need to see what the .config snippet should look like,
right?
Thanks.
... more >>
How to Send a Socket Close Event in .NET Sockets
Posted by Phil at 4/21/2008 12:49:00 PM
How do I send a Socket Close Event in .NET Sockets?
Thanks,
Phil... more >>
Binding to a datagrid
Posted by Khan at 4/21/2008 9:13:52 AM
Ha all.
I have a my custom class with few strings. Then i have a List of
my custom class. I' m adding data to list with "mylist.Add(mycustmclass)"
I wnat to bind that list to a GridView but i get an exeption
" The data source for GridView with id 'GridView1' did not have any
properties or attr... more >>
Receiving Socket Close event in .NET Sockets
Posted by Phil at 4/21/2008 9:02:01 AM
How do you recognize a Socket Close event in .NET. From what I have read on
the internet, it is done by checking if the byte count is zero in the
EndReceive() callback function in an Asynchronous type of connection. What I
can't seem to find out is how you do this if you are using a Synchron... more >>
Duplicate 0xFF in Socket.Receive(Byte[])???
Posted by Michael R. Nelson at 4/21/2008 6:30:02 AM
I use Socket.Receive(Byte[]) to receive data in server from client over
TCP/IP. All byte values of 0xFF sent by client are showing up DUPLICATED in
server receive. In other words, if client sends [0xFF, 0x01], then server
receives [0xFF, 0xFF, 0x01]. It's as if bytes having values 0xFF are tre... more >>
Form not disposing due to lingering reference
Posted by David Rosenkranz at 4/21/2008 6:11:02 AM
Hi everyone,
i've got a problem with a Form, because it is not being disposed of when I
close the form. Nevertheless, callback methods registerd to the
"Form.Disposed" event of this very Form are being called. But when the
callback method are being executed the "Form.IsDisposed" property is... more >>
typed dataset
Posted by OlivierH at 4/20/2008 7:53:05 PM
Hi all,
I need to make a typed dataset cause i import a dataset from foxpro
I use this code
Dim oDbcommand As New SqlDataAdapter(Sql, Conn_SqlServer)
oDbcommand.MissingSchemaAction = MissingSchemaAction.AddWithKey
oDbcommand.Fill(Me.DataSet, Me.TableName)
My Problem is vs 2005 or Frame... more >>
Uri and the %2f and %5c escape codes.
Posted by Paul Linville at 4/20/2008 12:40:38 PM
We need to be able to use the following URL that is given to us by a test
harness.
hTTps://000.000.000.000:000/59B9F4F20E2911DDA2C7E519FDF7B25D;59B9F4F30E2911DDA2C79DE1971E1E45/@%5C%A1%38jzrF%88K6czQq%2A~%bc%e0HMn%027Cxh:Kc)R+z%0EAPySaroF%19b-0X2G%06F)%3du%c2%55eOQY%03DZd*:8cviSj.A~CYRe.H.$%4CM... more >>
Subclassing a Singleton C#
Posted by Jeff Louie at 4/19/2008 3:27:22 PM
If you must, here is some code:
http://www.geocities.com/jeff_louie/OOP/oop40.htm
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***... more >>
ThreadPool.SetMaxThreads
Posted by Michael D. Ober at 4/19/2008 12:48:27 PM
Does the ThreadPool in framework 3.5 honor the SetMaxThreads method? The
reason I ask is that I started a program that queued 256 worker threads in
the threadpool and after a few minutes, task manager (and the console
output) showed all of them working. I have situations where I need to limi... more >>
performance - xf.server vs .net 3.5 async sockets
Posted by Gregory Stanskiy at 4/19/2008 10:24:32 AM
Hi, I know that Socket class performed poorly in .NET 2.0, was it fixed in .NET 3.5?
Can you give an expert advice regarding xf.server component(http://www.kodart.com) that pretends to be a better solution for network programming in .net
Thanks,
Gregory... more >>
cs0165 - the error that keeps on giving
Posted by ritterhaus@yahoo.com at 4/18/2008 4:42:43 PM
I'm an unashamed C coder learning C#, and in my first 24 hours with
the language I've already found my first TIDL (thing I don't like),
the inane "error cs0165." I'm sure that this has been discussed and
argued over at great length, but I'm having trouble finding useful
information about why thi... more >>
DateTime Adding Parse Help
Posted by coconet at 4/18/2008 3:41:20 PM
I have a Datetime of "2008-04-17 00:00:00.000" and a Datetime of
"2008-04-18 16:55:28.000", and I need to join them to be
"2008-04-17 16:55:28.000"
What is the best way to parse that?
Thanks.
... more >>
catching VSYNC or BLANK
Posted by MarcG at 4/18/2008 1:31:00 PM
Is it possible to catch these video signals from C#? I want to control
internal task timing with display updates.
Thx
Marc... more >>
Are primitive types like bool threadsafe ?
Posted by Ramesh at 4/18/2008 1:20:00 PM
Are primitive types like bool threadsafe ? Or do we need to use
synchronization when multiple threads concurrently access a value type ?
Thanks,
Ramesh... more >>
Setup project - Silent Uninstall.
Posted by Lamrin at 4/18/2008 6:50:01 AM
Here's the context. We have a setup program that will deploy an application
to our clients. The exe deletes all of its files when the user exists from
the application (I know this is odd, it's a requirement of the project). To
run the application again, the user must run the msi twice. The... more >>
Finding files - Directory.GetFiles not sufficient
Posted by KoenT at 4/18/2008 6:19:02 AM
Hi,
I need a fast way to enumerate files in a directory hierarchy.
I have tried the Directory.GetFiles routine with search option set to
AllDirectories, because it seemed to be useful for this task, but it has some
limitations:
- whenever a subdirectory is encountered that is not accessible f... more >>
|