I am trying to write a page to host on godaddy and the code keeps throwing an exception. I believe that the problem is that the permissions on the server will not let the subclass of XmlUrlResolver get instantiated, but I'd love some help with this please...
This code does work on my local dev box, and if I use File.ReadAllText(Hosting...
I have a WinForms form, and would like to make it so that all text (e.g. labels, buttons) is anti-aliased. This is driving me crazy because I can't find anything on google, which either means it's so obvious or I'm way off-base.
My best idea has been to override OnPaint in my main form, but this doesn't seem to change anything.
protec...
I'm looking for the assembly binding log viewer executable (fuslogvw.exe), but I can't seem to find it on my machine. It's there for sure, because when I type fuslogvw in a Visual Studio command prompt the application opens.
The machine I'm working on has a clean Visual Studio 2008 installation, no previous versions were ever installed....
I only have a vague hint of spec so far, but I'm just testing the waters. I need to create a designer that will be used for creating CBT tasks and workflows. It must cater for custom objects (controls) as well as standard .NET WinForms controls.
I very lightly scanned some papers long ago on using the Visual Studio SDK and deployable ...
I am trying to enable the back button on ajax calls...my solution...when an ajax call is made, create a guid, insert into the database the variables and insert the guid into the URL...when the user hits the back button, call the database with that guid to get the variables and set the page up....so back button would work normally in ajax...
Hello i need to user writerreaderlock in my method. I want to know how use it correctly.
I got a dictionnary of ObjectA
public class ObjectA
{
public ReaderWriterLock RWL {get;set;}
public ObjectB obj {get;set;}
public ObjectA()
{
RWL = new ReaderWriterLock();
}
}
public class ObjectB
{
int TTL {get;set;}
string Value {get;set;}
}
...
I've an application that's uploading data to a server. Occasionally the server returns a 403 response from a call to HttpWebRequest.GetRequestStream(). The response contains more data than simply the response code, but I can't figure out how to access it. Is there a way to do this?
...
In my ASP.NET 2.0 web service I am trying to access Google API to translate some texts. Following code does this right :
string result = "";
// create the web request to the Google Translate REST interface
System.Net.WebRequest oRequest = System.Net.WebRequest.Create("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&am...
Is ResourceManager in .NET a singleton?
...
I have a string similar to
'l','e','t','t','e','r','s'
or
('l','e','t','t','e','r','s')
I know this should be very easy but i dont know how. I know replacing ' and , with "" is an option since both are illegal characters in the result string but i feel theres a better way to do this.
What is the easist way in C# .NET
...
Hey all, I'm wondering if anyone has ever used a tool which will take a series of .sql scripts and a manifest file of some sort and merge them into one big .sql file according to the order defined in the manifest?
I'm trying to integrate database change packaging into our automated build and I could write a tool for this but I figured ...
Has anyone got experience using the google base/data api for .net?
Just searched for a few of our products and the urls all point to something along the lines of :http://www.google.co.uk/product%5Furl?q=http%3A//base.google.com/base/a/6136004/D979653861344000755... instead of the retailers product page?
Im adding both these properties:...
Hi, I have a list of lists which I want to find the intersection for like this:
var list1 = new List<int>() { 1, 2, 3 };
var list2 = new List<int>() { 2, 3, 4 };
var list3 = new List<int>() { 3, 4, 5 };
var listOfLists = new List<List<int>>() { list1, list2, list3 };
// expected intersection is List<int>() { 3 };
Is there some way to...
Is it possible to convert Xaml into a .Net Compact Framework UI (dll, exe, etc...)? In fact any XML based representation would be nice (QT, GTK, etc...).
...
I was going through this link below:
http://support.microsoft.com/kb/819267
Here it explains to enable HTTP GET/POST calls for web service, for calling a service directly through the browser.
Questions:
While calling through browser are we
using GET or POST? How it gets
decided?
If we are using regular HTTP
GET/POST instead of SOAP,...
What is the cleanest way to ask a DataGridView to return "indexes of rows that have selected cells"? This is not the same as DataGridView.SelectedRows. I don't allow Row or Column selection. So users must select blocks of cells. I just need to find out which rows have selected cells in them.
Is there some clever lambda expression I sho...
Hello,
I'm trying to run WatiN tests through continuous build on TFS, but I can't get it to work. The errror I get is following:
WatiN.Core.Exceptions.IENotFoundException : Could not find an IE window matching constraint: Timeout while waiting to attach to newly created instance of IE.. Search expired after '30' seconds.
at WatiN...
using System;
using System.Linq.Expressions;
class Program
{
static void Main()
{
Expression<Func<float, uint>> expr = x => (uint) x;
Func<float,uint> converter1 = expr.Compile();
Func<float,uint> converter2 = x => (uint) x;
var aa = converter1(float.MaxValue); // == 2147483648
var bb = converter2(float.MaxValu...
What is the 'correct' way of providing a value in an abstract class from a concrete subclass?
ie, should I do this:
abstract class A {
private string m_Value;
protected A(string value) {
m_Value = value;
}
public string Value {
get { return m_Value; }
}
}
class B : A {
B() : this("string value...
VS 2010 Beta Code Analysis is advising me to always dispose WCF Service Clients and Data Contexts for LINQ to SQL. Is this advisable? I assume this will eventually happen regardless. What are the pros/cons of doing so implicitly or not at all?
...