O.k, this is really irritating, I had noticed previously that the code generated by WPF for loading XAML resources did not appear to use strong names and therefore may be problematic for scenarios where you need to support side by side versions of WPF assemblies.
This has turned out to be the case, and it's now causing me problems - I h...
Looking for alternatives to the WCF REST start kit, ideally OSS frameworks.
Anyone got a list?
Cheers
Ollie
...
Hi,
I understand that a dictionary is not an ordered collection and one should not depend on the order of insertion and retrieval in a dictionary.
However, this is what I noticed:
Added 20 key value pairs to a Dictionary
Retrieved them by doing a foreach(KeyValuePair...)
The order of retrieval was same as the order in which they we...
In .net, I need to securely transfer files 4mb in size from client machines running my software to a central server, process, and securely send back results consisting of a pdf file, a jpg image, and xml data.
What .net technology would be most appropriate for this? (web service. remoting, etc)
...
I've been using linq2sql on a few projects, but i decided it was time to try out EF as its supposed to be more powerful and better. There are a few things that is really annoying tho.
One of them is projecting a result into a list, this works well in l2sql but not in EF.
public class bo.Transaction
{
public long Id { get; set; }
pub...
I have an ADO.NET connection object to an SQL Server (which will use connection pooling and all the nice things about it) in one Winforms application.
We're adding some new stuff to this application and we thought that we could do it in LINQ to SQL, the question is, if we open a new connection like this:
MyDataContext dc = new MyDataCo...
I compile my code using CSharpCodeProvider, and dynamically create instance of some class in result assembly. Than I call some method. If the method has recursion I get StackOverflowException and my app terminates.
How do I avoid this?
using System;
using System.Runtime.Remoting;
namespace TestStackOverflow
{
class Program
{
...
I am looking for a .NET Compact plugin or extension framework similar to the full framework Managed Extensibility Framework (MEF) provided by MS Patterns and Practices.
It is to be used to dynamically and generically load and manage assemblies that will provide both hardware capabilities as well as user feature modules to the client app...
If I have a web application (with its own web.config) and a .dll it uses happens to have its own app.config which settings file wins when there is a conflict?
...
What I want?
I want to display weather information on my page.
I want to display the result in the browser specific culture.
What am I doing?
I use MSN RSS for this purpose.
MSN returns the report in XML format. I parse the XML and display results.
What problem am I facing?
When displaying the report, I have to parse an XML no...
I have a web service implemented in VS2005/C#. The ASMX page has a few web methods that are pure SOAP, and I want to add an additional method that has a RESTful interface.
I want one of the methods to simply return a JPG image (image/jpeg), and not an XML response. Now, I know that ASP.Net automatically creates a REST interface for web ...
I use SQLBulkCopy to copy a .NET datatable to a temporary SQL Server table.
Is there a way to dynamically create this temporary SQL Server table from .NET code without using SMO?
E.g. dynamically creating a "CREATE TABLE" statement in .NET?
If somebody has a solution / some running code for this problem I would really appreciate it!
...
Due to target audience I am using .net cookieless sessions in auto-detect mode and time to time I get visitors redirected with cookiless session url like
domain.com/(S(jdhdghdghd))/default.aspx
Problem is, if I call this url after session expired .net will re-create it. What I want to find out is a way to force .net to create another ...
I have an regular expression validator for emails in .NET 2.0 which uses client side validation (javascript).
The current expression is "\w+([-+.']\w+)@\w+([-.]\w+).\w+([-.]\w+)" which works for my needs (or so I thought).
However I was getting a problem with apostrophes as I had copy/pasted an email address from Outlook into the forms...
Hi,
I how to get the windowproc for a form in c# for .net compact framework 3.5,
i want to know how to get the window proc of particular form.
By default we cant overide the window proc of a form in c# 3.5 compact, please let alternate
method to get the windowproc
...
I have a very annoying exception which freeze my application thrown by WPF, when the content of this popup seems to have to much element.
In the output windows I see approximatively 50 times this exception.
'System.Runtime.InteropServices.COMException'
occurred in UIAutomationProvider.dll
Then sometimes after the freeze I have th...
When using Word 2007 MailMerge with an Excel 2007 (xlsx) as a datasource, the .XLSX file is locked and cannot even be copied using Windows Explorer. It is possible to connect to the Excel file as a datasource (using Visual Studio 2008 and .NET 3.5) but it is not possible to use the Office automation or similar third party components.
We...
.NET Programming guidelines state that we should not catch general exceptions. I assume the following code is not very good because of the general exception type catch:
private object CreateObject(string classname)
{
object obj = null;
if (!string.IsNullOrEmpty(classname))
{
try
{
...
Both LogonUserExEx() and LsaLogonUser() accept a PTOKEN_GROUPS pTokenGroups parameter. I am having trouble marshalling my structure correctly for this parameter.
I have the following structures defined:
[StructLayout(LayoutKind.Sequential)]
public struct TOKEN_GROUPS
{
public UInt32 GroupCount;
// Followed by this:
public S...
Hi,
I am using the SharePoint Object Model via a console app on the same server as the SharePoint installation, and using the following code:
SPSite MySite = new SPSite("http://server/");
SPWeb MyWeb = MySite.OpenWeb();
MyWeb.AllowUnsafeUpdates = true;
SPList MyList = MyWeb.Lists["Test"];
const string EmptyQuery = "0";
SPQuery q = new...