I am working on a .Net server application that uses SslStream to provide its SSL sockets. It works with some clients (such as those based on libcurl), but other clients throw errors due to the lack of the intermediate certificate(s). How can I associate the intermediate certificate with the SslStream or X509Certificate2 object to make ...
I'm new to System.Reflection and I've stumbled on the following.
I am using a third party executable, A, that has a custom interpreter engine class B that allows me to build simple 'tasks' that run on a mobile device. 'A' also has a class C that, when using A's default interface, shows a list of 'tasks' that are running within the inter...
I have an app using the ADO.NET entity framework (the VS2008 version, not the newer, cooler one) and I need to be able to make a call down to the underlying DBMS (it's postgres) in order to call some SQL that Entity Framework doesn't support.
Is there a way to go from an Entity Framework ObjectContext to something that will let me exec...
What solution/s are recommended for working disconnected?
I have a web application (asp.net) 3.5. Part of the application consists of visiting clients at home and completing a questionaire.
My question is, how should I collect this data if no connection to the internet. I presume store as xml document, what do I use for the UI applic...
I have a com callable wrapper written in C#. The wrapper uses a Socket internally to SendAsync and ReceiveAsync. In order to make this appear synchronous to the VB6 code that calls this wrapper, I use Monitor.Wait.
I can't figure out if Monitor.Wait pumps messages while it blocks. According to cbrumme's blog over on MSDN -
I mentio...
Hi there
I am using .NET 2.0. I have 2 objects one is: PhoneService and the other one is ChartOfAccount. The relationship between this to is many to many.
public class PhoneService
{
private List<ChartAccount> chartAccounts
private ChartAccount chartAccount
public Int64 ID
{
get { return id; }
set { id = valu...
I want to learn C# with standard libraries. For now I know C/C++ and basic OOP concepts. I would like to learn more complex OOP also. Is there any book which matches my needs?
...
Hi Experts,
I have two tables in a LINQ to SQL dbml file. I am trying to get all the changes submitted to context, which I can get by using
var myOtherContext;
var changes = context.GetChangeSet();
foreach (var change in changes)
{
Type t = change.GetType();
if (change is Product )
{
myOtherContext.GetTable...
Inserting the floating div through BHO in C#.NET modifies the existing DOM for the web page. I do not want to modify the DOM. Is there a way in which i can dispaly a text without even touching DOM? Like a floating panel or something?
...
Hello everyone,
I am using VSTS 2008 + .Net 3.5 + C# + SQL Server 2008 Enterprise on Windows Server 2003. I am using the following connection string, and labtest1 is the local machine name and I connect from local machine using ADO.Net. Then it always fail with connection error. But when I change in the connection string from "labtest1"...
Are there any good Reasons not to use LINQ in my projcts? We use .Net 3.5 and VSTO 3.0.
...
I am looking for a .Net component to allow reading and generation of powerpoint files. So far the only thing that I have been able to find is the component by Aspose. Can anyone recommend other possible tools to use for this?
...
Consider the following code:
public class SystemManager<T> where T : ISettings
{
public SystemManager()
{
T implicit1 = default(T);
T implicit2 = default(T);
if (implicit1 != implicit2)
{
// This will not compile saying the compiler cannot compare
// using '!=' two objects ...
What ORM frameworks for .NET and Oracle Do You Like Best?
...
I've recently stumbled upon T#. It seems a nice concept but I'm wondering if it's worth switching from nUnit to this? I love the pros but hate the cons so I'm still undecided
Pros:
specialized language for unit testing (keywords)
relative assertions
compile time warnings
focus on test intentions
Cons:
lack of (integrated) tool sup...
Say I want to be informed whenever a file copy is launched on my system and get the file name, the destination where it is being copied or moved and the time of copy.
is this possible ? how would you go about it ? should you hook CopyFile API function ?
Is there any software that already accomplishes this ?
thanks.
...
Hi,
I'm implementing a wpf application which display a list of items, and provides the functionality to filter this list by typing in a textbox (quite trivial use case i think).
We're using a MVVM structure.
My question is, whose responsibility is it to filter the list? The view or the viewmodel?
Should I implement an "OnTextChanged" ...
I have a paging worked with NHibernate:
public IEnumerable<Answer> GetAnswers(int page, int pageSize)
{
return HibernateTemplate.Execute(
session =>
{
var criteria = session.CreateCriteria(typeof(Answer));
return criteria
.SetFirstResult((page - 1) * page...
Guys,
I see that time to time localhost port number changes (http://localhost:1519/ ....).
Basically how does it being set or chosen? And when does it change?
Thanks!
...
I'm fighting an issue where my resized images looses color saturation when I manipulate them using GDI.
I'm loading an JPG as original, resize it and the resulting image has a lot less saturation (color intensity) than the original picture. What can I do to improve that? this is my code:
using ( var original = System.Drawing.Image.F...