all groups > dotnet framework > october 2007 > threads for october 8 - 14, 2007
Filter by week: 1 2 3 4 5
Whats needed for 3.0 apps
Posted by GaryDean at 10/14/2007 4:31:08 PM
Sometime ago I was playing around with dotnet 3.0 and was using VS 2005 with
Orcas. Now I want to write some 3.0 asp.net applications also usiung
SilverLight. I now see there is a vs 2008 beta download. Should I use that
or should I still use vs 2005 with the latest Orcas? BTW, what else d... more >>
Help for a one year fresher to enter the software industry
Posted by mrnagrajan NO[at]SPAM yahoo.co.in at 10/14/2007 10:58:47 AM
Dear Freinds,
I am hoping a postive answer from this group. I have done my
graduation currently and looking for a break in programming in C# or
VB.NET with SQL Server. After graduation i joined a computer institute
and did a one year course there. For first six months i was nearly
taught noth... more >>
LINQ and "WHERE id IN (...)" clause
Posted by Oleg Ogurok at 10/13/2007 1:57:26 PM
Hi there,
Is there an equivalent of "WHERE .. IN (...)" clause in LINQ when
querying a SQL database?
E.g. I have list of IDs and I need to get the corresponding table
records.
Thanks,
-Oleg.
... more >>
ASP.NET UserControl Question
Posted by EdisonCPP at 10/12/2007 9:13:01 PM
How can I call a function in one UserControl from another?
I have a custom sign in UserControl and another that needs
to display custom information based on the sign in along
the margin. I've been trying things I've found online, but
can't get a definition of the class.
// C#
private void S... more >>
Error: Invalid token for impersonation - it cannot be duplicated
Posted by Chavdar at 10/12/2007 4:49:01 PM
We randomly get an error "System.ArgumentException: Invalid token for
impersonation - it cannot be duplicated" when executing
IntPtr logonToken= WindowsIdentity.GetCurrent().Token;
WindowsIdentity windowsIdentity = new WindowsIdentity(logonToken); ... more >>
PropertyGrid and CollectionEditor events
Posted by ST at 10/11/2007 8:24:00 PM
Is there a way to create events in collection editor and have the
propertygrid registered for that event? For example, CollectionEditor could
have an OnRemove event that fires when a user click on the Remove button.
I'd like to know when this happens (per item based) so I could have the main... more >>
Select TableName
Posted by Barry at 10/11/2007 7:30:24 PM
Hi
I want to populate a combobox with all table names in a MS Access database,
what will the sql string be?
TIA
Barry
... more >>
Verify Username / Password combination
Posted by Peter Hurford at 10/11/2007 3:55:01 PM
Hi,
I have a dialog which the user types a username and a password into.
The actual data is tucked away for later use (in fact it is used to
set the "run as" credentials for a web service pool on IIS6, but
that's unimportant).
My problem is that the user keeps on typing the wrong password... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
multi-key InputGesture in WPF
Posted by Dave Weeden at 10/11/2007 3:22:00 PM
Hi,
Is it possible to create an InputGesture that is a multi-keystroke
combination.
e.g. like the Ctrl+E,C shortcut for the 'Comment Selection' command under
Visual Studio's Edit->Advanced menu
My first try was to OR the values together as follows:
InsertGroupCommand.InputGestures.Ad... more >>
.NET version
Posted by RedLars at 10/11/2007 9:46:42 AM
Needed to know which .NET versions I'd installed. Downloaded and
installed .Net Version Check application. This application is saying
I've got .NET 1.1.4322.2407 installed. However, when looking at
released .NET versions this exact version doesn't appear (http://
en.wikipedia.org/wiki/.NET_Frame... more >>
Get a shortcut target path
Posted by Paulo_Amaral at 10/11/2007 8:49:06 AM
Hello,
My question seens very simple: i want to write a function like
private string ResolveLink(string LinkFilePath) { ... }
that receives, for example, "c:\\myshortcut.lnk" and gives back the
shortcut's target path. Just the target's path.
Tks!... more >>
RegSvr32 & Legacy COM in .NET
Posted by Mike at 10/11/2007 6:54:00 AM
Hi. I'm not familiar with COM, but I have an upcoming .NET project in-which
I'll need to program against a COM .dll. I've been told to register the
object using RegSvr32 and then I should be able to program against it.
I tried adding the dll as a reference but that didn't work.
Is it pos... more >>
??? Which Key Encrypts .Config Files ???
Posted by Tom Baxter at 10/10/2007 11:17:18 PM
Hi everyone,
I have a small block of code that encrypts a database connection string in a
..config file, but I'm not sure where the encryption key comes from. There is
no problem with this code -- it seems to be working fine -- I am able to
retrieve the connection string with no problem aft... more >>
How to get value of nullable of unknown type??
Posted by hvj NO[at]SPAM paralax.nl at 10/10/2007 10:35:59 PM
Hi,
I have a situation that I have a nullable type that can be a int?,
double? or any other nullable type. How can I get the contained value
of the nullable without knowing its type.
I read that in the .NET2.0 beta2 there used to be a INullable
interface that could be used for this, but tha... more >>
Windows Service: Missing 'add installer' link
Posted by John Granade at 10/10/2007 3:59:01 PM
I'm trying to setup a simple Windows Service that can host a WCF service.
But I'm running into a weird problem just getting the Windows Service setup.
Every example and MSDN help I read says to click the service in the designer
so it has focus. Then right-click and select 'add installer' howe... more >>
Could not load file or assembly...
Posted by Val at 10/10/2007 12:16:01 PM
Hi,
I am developing a middle tier WCF server called BusinessLogic, using the
Enterprise Library. Although I posted similar question on the EL forums (no
answer yet), it seems to me that the problem is more general .NET related
than WCF or EL specific. The problem shows when EL exception han... more >>
Setting framework version in IIS websites
Posted by Diego Serrano at 10/10/2007 10:08:21 AM
I have a Windows 2003 server with a couple of websites published with
IIS. Every website and virtual directory is set to run .net framework
v1.1. The most used of those websites is developed for v1.1 but after
some days running right, IIS suddenly starts running it under v2.0.
Although there is ... more >>
3.0 vs 3.5
Posted by Justin Rich at 10/10/2007 10:06:30 AM
im starting to mess around with some things and a lot of them refer to .NET
3.0 but i was wondering if i could just work off 3.5 instead. i would
imagine that whatever is in 3 should be in 3.5 and i shouldnt have any
problems with developing stuff that asks for 3.0 in 3.5 but i thought i
wou... more >>
File.ReadAllText prevent write access for other processes
Posted by Marthin Freij at 10/10/2007 4:44:01 AM
Hi,
I have noticed that File.ReadAllText prevents other processes from writing
to the file while reading. It seems like the FileShare enum is set to Read
rather than ReadWrite. This is a bug in my opinion.
/m... more >>
Out of Memory Exception in a user drawn control
Posted by Alex at 10/10/2007 3:30:01 AM
Hello,
I am drawing a control with GDI+. It contains an image which turns around a
center.
After turning for a while I get and "Out of Memory" Exception. I am
disposing all the created objects(the ones which are used/created during
turning).
The image is included in the solution as an... more >>
Bulk Email
Posted by SK at 10/9/2007 9:01:40 PM
Hello All,
I'm trying to understand how one can send 5000 emails using system.web.mail
namespace. I used google, even my own smtp account information - they both
send only 500 emails/ day but I need to create a program to send 5000
emails. I know there are programs that does that but I would r... more >>
V2,0 Configuration utility
Posted by Darrell Wesley at 10/9/2007 2:04:02 PM
I am having to setup a user with a new PC which came with Version 2 of the
framework preinstalled. The problem is the Configuration Utility to Adjust
Zone Security does not show itself in Control Panel.
Where do I look or what other options are available?... more >>
load .NET assembly
Posted by RedLars at 10/9/2007 1:06:51 PM
How does an executable (managed or unmanaged) load an .NET assembly ?
A dotnet 1.0 application I'm debugging atm seems to (one computer)
load dotnet 2.0 assemblies instead of the specified 1.0 version (all
assembly reference in the vs2002 solution for the application point to
dotnet 1.0). Due ... more >>
xmlTextReader path to file
Posted by Rob Taylor at 10/9/2007 9:30:55 AM
I've inherited a .NET project that I'm debugging the code to. I'm
completely new to .net as well. I have a line in my code that reads an
XML file, however, I cannot figure out the reference point that a
relative path starts from. I.e., the following line
XmlTextReader reader = new XmlTextR... more >>
Looking for LINQ to SQL N-Tier example
Posted by groknroll at 10/9/2007 8:17:01 AM
I'm looking for an example / guidelines for leveraging LINQ to SQL in an
N-Tier environment. Specifically I'm looking for an example where there is a
presentation layer, an application layer, and a database. There are plenty
of examples showing how to create LINQ objects and then connect the... more >>
Encoding.Default Works not Encoding.UTF8 ??
Posted by Hari at 10/9/2007 7:00:01 AM
Is there any issue in Using Encoding.Default.I used this bcz when i tried to
encode some swedish special charachters its changing that special charachter
to some other charachter .I tried using differnt types of encodings nothing
working atlast i find encoding.default i tried its work fine!!!!... more >>
Toolstrip Exception - bad .NET?
Posted by Mike at 10/9/2007 5:08:07 AM
I have a program that is crashing on some machines (at a client of
ours). I have determined that it goes down on this line of code:
ToolStrip x = new ToolStrip();
I created a simple test app that only performs this one line of code.
It throws an exception so I know the problem is not caused ... more >>
Need to .net framework SDK to run my application?
Posted by Hari at 10/9/2007 2:38:02 AM
Hi,
I am facing problem now on my application, the problem is that i needed to
install .net framework SDK 2.0 in order for my application to work on another
computer. Did I miss some files during my compilation?
For more details, i first installed .net framework 2.0 in that computer but
... more >>
Listing Non-Visual Component Names at Runtime
Posted by d-barton NO[at]SPAM ntlworld.com at 10/9/2007 1:04:23 AM
Hi,
I have a number of non-visual components which I am trying to get the
name of at run time.
I have managed to reference each component using the following:
Dim pf As Type
pf = f.GetType
Dim fi As FieldInfo = pf.GetField("components",
BindingFlags.Instance Or Bindi... more >>
How to use a shared app.config file?
Posted by AAOM Tim at 10/8/2007 5:11:00 PM
..Net 2.0 I have a variety of console applications that run continuiously in
parallel using the file watcher as an event queue. In addition, I have an
ASP.Net website that needs to access the same key/value pairs as the console
apps. I have configured a separate app.config file for each cons... more >>
Marking System.IntPtr as ref ... but in MC++
Posted by Markus Eßmayr at 10/8/2007 3:50:57 PM
Hello,
I believe, this is an easy task to do, but I couldn't find the way to do it!
I'd like to code the following function
[C#]
void DemoFunction(ref IntPtr somePointer)
{
somePointer = 1234;
}
in MC++.
But how should I declare it?
[MC++]
void DemoFunction(IntPtr^ somePoint... more >>
Assembly path
Posted by Jesper Rou at 10/8/2007 11:50:55 AM
Hi everyone,
I have a windows service project, that references the assembly from a web
project.
My problem is that on the production server, the service's directory path
points at the system32 folder, and not the folder where its own .exe fil is
located which would be the normal behavior.
... more >>
trying to pass a string back to main form from a class
Posted by TheVillageCodingIdiot at 10/8/2007 9:53:53 AM
I'm creating a GUI for the NetSend service. I created a class called
Netsend. In there are to functions. The send function is public and
the NetMessageBufferSend function is private. Below is the code I
created for this class.
Public Class Netsend
Public Function Send(ByVal sTo As S... more >>
CDATA
Posted by Kumar.A.P.P at 10/8/2007 6:33:06 AM
I have the XML file content as
<resources>
<html><![CDATA[<B>Hello World</B>]]></html>
</resources>
and my html file content is
<html><![CDATA[<B>Hello World</B>]]></html>
the XML file when viewed doesnt give me any problem, but when it comes to
HTML the output that i recieve is ... more >>
Framework dependencies
Posted by rajagopal.ns NO[at]SPAM gmail.com at 10/8/2007 12:37:05 AM
An application of ours uses third party dlls and our own dlls.
Overall it works fine, if .NET frameworks 1.0, 1.1 and 2.0 are
installed.
If only framework 2 is installed, it is not working fine.
How do we find which DLL requires .NET framework 1.0 / 1.1 to run
properly. If there is a tool ... more >>
|