I'm using .NET 4 and VS 2010 and have the same issue in .NET 3.5/VS 2008
The structure:
Table 1: Call
Table 2: AddressChangeRequest
Table 3: CallNotes
A single Call can have many AddressChangeRequests and many CallNotes. A Customer (customerKey) can have many Calls.
The LINQ code:
return db.Calls.Where(c => c.CustomerKey == '....
The examples everywhere show how to do Kerberos Token Profile 1.1 via WCF, however it uses Message security. In fact, the WCF implementation defaults to sign+encrypt. I have a requirement of using SSL, and instead using KTP for authentication and signing, and NOT encrypting.
If I change the mode to TransportWithMessageCredential, it no ...
Hello,
I'm trying to convert a generic value into an array of generic values so that I can comma delimit them. However, I can't convert from my generic type into an array of generic types. hopefully some code will help make things clearer...
public T Item
{
get { return item; }
set { item = value; }
}
...
Is there a way to promoting a Read-Only FileStream to Read-Write? I am looking for functionality similar to the Win32 SDK function ReOpenFile.
...
Iam exporting a DataTable to an Excel-file using office interop. The problem is, that Excel does not recognize dates as such, but instead it displays numbers. In another case I pass a string which it then recognizes as a date. In both cases the data is messed up.
I tried NumberFormat @ which is supposed to store the cell in text format,...
I'm about to design a client application and the server part is not designed either.
I need to decide on the communication protocol.
The requirements are:
fast, compact
supports binary file transfer both ways
server is probably PHP, client .NET
So far I have considered these:
custom XML over HTTP - I've done this in the past, but...
My colleagues tell me that table based formatting of code is bad and it is no readable and I should follow conventions. What's that bad about table based formatting? Why is it banned?
I'm asking because for me it's much more readable.
Examples (not real code):
if (res == ResultType.Failure)
something = ProcessFailure(...
When making FTP connections to some servers the server defaults the current directory to some directory other than the root.
For example:
/
abc
mno
xyz
The server might default the connection to "/" root. Other servers might default to "/abc".
When uploading a file ftp://ftp.example.com/abc/mno/xyz/myfile.dat to the xyz...
I know in C++ there are vpointer and vtable.
The virtual function table is a list of method pointers to the virtual methods in the class.
Each instance of a class has a pointer to the table, which is used when we call a virtual method from the instance.
I want to know how this implemented in C#. As I know the concept of virtual tables...
Hey guys - I just wrote an app using c# and ready to deploy it. Never deployed a c# app before.
I deployed it and VC# outputted a .application file, application folder, and an installer. One of my users ran the installer (Windows 7) and was prompted to download/install the .net framework - which took upwards of 10 minutes. This is not a...
I'm trying to organize my workspace, and want my intermediate objects to be put in the ..\build\obj folder in relation to my .csproj file. So I put:
<IntermediateOutputPath>..\build\obj\Debug</IntermediateOutputPath>
in the .csproj file. The intermediate objects are now put in that location when the solution is built, but the probl...
I'm writing a .net WCF service. I've written a few classes that I want to return to the calling code from the WCF service; hence, I decorate them with the DataContract attribute.
Let's suppose that my WCF service is called FooService. It contains a method called FooMethod which returns an object of type FooData (which is decorated wit...
Hi! all is in the title..
Is there some framework like .net in open source world?
I heard about zend framework is the same? Is not just for MVC designing?
For JAVA is there some framework as powerfull as Dotnet?
...
Is .net 2.0 an overhaul of .net 1.1? in other words if you are let's say following a book written for .net 1.1 (ASP.NET 1.1/C# 1.1) then do you have to "unlearn" something which is totally different in advance versions such as 2.0 3.5?
I am reading a book by Richter "Applied .net framework programming", that's why I wanted to know some ...
I have a Bitmap called "buffer" to which I
Paint another image (using DrawImage)
Paint a partially transparent gradient (using a LinearGradientBrush)
I call Flush(FlushIntention.Sync) on the buffer's Graphics object after each of those steps. I then paint the contents of the buffer onto an on-screen control.
However, while debugging...
I have seen that you can either do
using System.IO
and use
Path.GetDirectoryName(blah blah)
OR directly use
System.IO.Path.GetDirectoryName(blah blah);
Is there any difference between them from a point of performance?
Does using System.IO loads all static classes in the namespace to the memory resulting in using more memory...
A client is unable to use my webpart because he is behind a proxy server and they need to specify a username and password to get past the proxy. I have this in my config file right now:
<system.net>
<defaultProxy>
<proxy usesystemdefault="False" proxyaddress="http://127.0.0.1:8888" bypassonlocal="True" />
</defa...
I am looking for a tool that would allow me to use LINQ and build a .Net app rapidly.
...
Are there any existing libraries/frameworks/products for a distributed shared memory system implemented in .NET, or easily accessible from .NET clients?
Googling gives some links to academic papers, but I couldn't find any real implementations.
Note: I am most interested in something that runs on a LAN, not in "cloud".
...
I have a number with a variable number of digits after the decimal point. I want to format the number with commas and all decimal numbers.
For example: 42,023,212.0092343234
If I use ToString("N") I get only 2 decimals, ToString("f") gives me all decimals no commas. How do I get both?
...