I've been trying for more than a week without any success at all, to host wcf service using netTcpBinding.
With http, everything is ok. But with tcp problems arise.
I have performed all the steps I'm supposed to, in order to host my service in WAS:
.Net 3.0 Features are enabled, including http and non-http Activation
. At IIS Manage...
DateTime date = new DateTime(1970, 1, 15);
string sdate = date.ToString(value_i_will_forget as string,
CultureInfo.InvariantCulture);
// some lines later
string format_string = MagicParse(sdate,
CultureInfo.InvariantCulture);
I have an arbitrary date that I write to a string with CulturInfo.InvariantCulture. The .Net format I...
I have been reading a lot of documentation on how to create an internationalised ASP.NET application, using C# 3.5. They all seem to give the general impression that font fallback and font linking will make font choice a non-issue.
However, the documentation I have seems to imply that it will be fine on Windows, but doesn't mention othe...
I am using a DataBinder.Eval expression in an ASP.NET Datagrid, but I think this question applies to String formatting in .NET in general. The customer has requested that if the value of a string is 0, it should not be displayed. I have the following hack to accomplish this:
<%# IIf(DataBinder.Eval(Container.DataItem, "MSDWhole").Trim...
I'm getting this EndpointNotFoundException on a webservice call from a website, while the same exact call works if I do it from a console application.
Here's the more detailed exception message:
Could not connect to https://******. TCP error code 10060:
A connection attempt failed because the connected party did not properly
respond aft...
I am using Lokad shared libraries, which in turn depends on Mono.Cecil.
I am a little confused what the following properties mean (they are to do with .NET internals and thus have equivalent .NET internals):
PackingSize (they are to do with types as it is in TypeDefinition).
Mvid (in ModuleDefinition).
ExplicitThis (something to do wi...
I'm using SubSonic 2.2 and sqlite and have encountered a problem when dealing with tables with an INTEGER PRIMARY KEY column that isn't AUTOINCREMENT. According to the faq:
If you declare a column of a table to be INTEGER PRIMARY KEY, then whenever you insert a NULL into that column of the table, the NULL is automatically converted ...
I understand how to use Events according to Net Framework guidelines, but what are the benefits of using this pattern?
http://msdn.microsoft.com/en-us/library/aa645739%28VS.71%29.aspx :
The .NET Framework guidelines indicate that the delegate type used
for an event should take two parameters, an "object source" parameter
indic...
I'm using SubSonic 2.2 and the .net provider for sqlite in a client application. I'm calling SubSonic.DataService.Provider and it's taking ages, e.g. 30 seconds, to return. Stepping through the SubSonic code it appears to be taking the time on this line within DataService.LoadProviders():
ProvidersHelper.InstantiateProviders(section.Pro...
when do the custom activity in .net 3.5, I tried to add a datetime property to show user when the activity completed, however as this property will be assigned value during workflow runtime, it cannot been show up the value to user, do you guys have any idea?
...
I have a System.Drawing.Pen _pen.
When in some iterations is setting _pen.Width = 3 it gives me:
System.ArgumentException
Message="Parameter is not valid."
Source="System.Drawing" - System.Drawing.dll
StackTrace:
at System.Drawing.Pen.set_Width(Single value)
at MyProject.ctlPanneauGraphique.CustomLine.set_BorderWi...
Given the following stack trace:
MESSAGE: Value cannot be null.Parameter name: key
SOURCE: mscorlib
TARGETSITE: Void ThrowArgumentNullException(System.ExceptionArgument)
STACKTRACE:
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary'2.FindEntry(TKey key)
at Syst...
I want to add an Cut/Copy/Paste ContextMenuStrip in a RichTextBox, but the problem is, I want to enable or disable the Paste button with respect to the current condition of the windows clipboard.. I mean, if any text is copied already, then that button should be Enabled, otherwise disabled.
Any idea how I can accomplish that?
...
I'm trying to figure out .NET serialization stuff and experiencing a problem. I've made a simple program to test it and got stuck with using attributes. Here's the code:
[Serializable]
public class SampleClass
{
[SoapIgnore]
public Guid InstanceId
{
get;
set;
}
}
class Program
{
static void Main()
...
The respected open source .NET wrapper implementation (SharpBITS) of Windows BITS services fails identifying the underlying BITS version under Win7 x64.
Here is the source code that fails. NativeMethods are native Win32 calls wrapped by .NET methods and decorated via DllImport attribute.
private static BitsVersion GetBitsVersion()
...
Possible Duplicate:
What are the best C# .NET books?
Hello,
I m sorry this obviously is not a programming questions, hope it s fine.
Can you please recommend a book on C# ?
I have been programming with C# for a year. I have Java and OOP experience. Looking to learn more about C# .
Thanks.
...
Let's say I have an arbitray list of A
class A
{
string K {get;set;}
string V {get;set;}
}
...
List<A> theList = ...
Is there an easy way to compose a dictionary from theList? (something like the following)
Dictionary<string, string> dict = magic(x => x.K, x => x.V, theList)
I don't want to write the following code:
var d = new D...
I'm looking for good, searchable C# documentation (might as well throw in .NET while we are at it) that I can follow while developing. Similar examples include Qt Assistant or JDoc.
I tried looking for similar posts on SO already, but couldn't find any.
Please feel free to close this if it's a duplicate.
...
I am using vb.net master pages and .net is putting ctl00$CPHContent$ and ctl00_CPHContent_ before the control ID and control name.
I am trying to use the findControl to look for my control but it is not finding the controls.
any ideas or suggestions..... I can't use javascript to find a solution
...
I have a simple winforms application in VB.NET 2008. I am using a form with a completely custom look, so there is no title bar, thus no minimize, maximize, and close buttons. I've created custom controls to replace those.
If I have my app running, and I click the 'Show Desktop' shortcut, all the programs minimize properly, including mi...