In designing my service, I decided that I wanted to customize the namespaces that appeared in the resulting WSDL.
For the DataContracts, i came across the ContractNamespace attribute which seemed a nice shortcut alternative to setting the same namespace explicitly for every DataContract. My initial attempt looked like this:
[assembly:C...
I have a VS2010 project that needs a reference to System.Xaml. I go to the Add Reference, search the .NET references and it's not there. :?
I double checked the GAC too, and no such luck.
I just can't figure out for the life of me why it's not on the machine. This machine has .NET 3.5 SP1 and .NET 4.0 installed.
I'd much rather th...
Possible Duplicate:
Should C# include multiple inheritance?
Why doesn't c# support multiple inheritance?
public partial class Child: Parent1
{
void MakeParent1Mad();
}
public partial class Child: Parent2
{
void MakeParent2Mad();
}
...
Hello.
Python has a subversion bindings called 'pysvn' that can be used to manipulate subversion repository. Does something similar exists for IronPython?
My test platform in Windows 7 64-bit with Vsual Studio 2010.
...
It cannot be called classic, because that would get confused with classic ASP. I don't like calling it traditional because of the connotation that word has.
Do we called it:
Normal ASP.NET
Mainstream ASP.NET
ASP.NET MVP
What else?
...
I am writing an ActiveX control to run in Internet Explorer. I am using C# and the System.Runtime.InteropServices namespace.
When I register the control manually on my development machine using regasm, the control works and I can invoke methods on it using Javascript's new ActiveXObject(..) functionality.
However, for production I wan...
I have a javascript-based client that is currently polling a .NET web service for new content. While polling works...I'm not happy with this approach because I'm using system resources and creating overhead when there aren't any changes to receive.
My question is how do I notify my client(s) that there is new content for it to displa...
Hi all
I have to implement a web service in my work, the problem is that I don't have any idea what a web services is.
Can you give me some references to get started and to understand what people are asking me for?
Maybe some good book also ...
Thanks.
...
We have a function in a VS2005 project that loads assembles and get type information from them . It does not instantiate these types though. We tried to load some assembles that are compiled in 2010, but keep getting the following exception.
"Could not load file or assembly '2010ClassLibrary' or one of its dependencies. This assembly i...
I have a Visual Studio 2008 C# Project.
Here is what works:
It runs without errors in Debug Mode on WinXP and Win7.
It compiles without errors in Release Mode on WinXP and Win7.
The Setup Project builds and installs on WinXP and Win7 with no errors.
The Installed Application will run on WinXP with no errors.
Here is what does NOT wo...
I have a string that has FTP permissions - "LRSDCWAN" Is there a more efficiant way of checking the relevent CheckBox if the string contains the relevant character?
If reader.Item("home_perm").Contains("L") Then
CBoxList.Checked = True
End If
If reader.Item("home_perm").Contains("R") Then
...
I'm working on a web scrapping application and was testing it with ebay. The thing is that the application should follow the link "Next" (the one at the bottom of the page that should go to the next page of results) but it kinda stays on the same page (yea, i'm actually not sure about that). If you try to open ebay and search for any ter...
I am looking for a instruction-level virtual machine debugger for debugging .NET files. The files are release builds and disassembling and then recompiling them is not an option.
...
I have some code that access an API out on the web. One of the API's parameters allows me to let them know that I am testing.
I would like to only set this parameter in my code when I am testing. Currently, I just comment the code out when I do a release build.
Is there an automatic way of doing this based on the build configuration?
...
I'm currently using BeginInvoke(with ASyncCallback) to handle my Client\Server communications with remoting. Here is my current setup:
...
//Main
Remoter.StationDelegate svd = new Remoter.StationDelegate(IPCObjectInstance, &Remoter.GetStationInformation);
AsyncCallback callback = new AsyncCallback(this, &CentralControlClient.Sta...
I'd like to use the Caching Handler:
http://msdn.microsoft.com/en-us/library/ff648868.aspx
I may want to use some of the other features of the enterprise library, as well. Can someone point me to a reference to know the references I need to add or provide a heuristic for which modules to include?
...
This is either me not understanding the order of constructor execution or not understanding the precedence of ReadOnly fields on DataGridViews.
class Form1 : Form
{
public Form1()
{
DataGridView gv = new DataGridView();
Controls.Add(gv);
gv.Columns.Add("foo","foo");
gv.Rows[gv.Rows.Add()].ReadOnly...
I'm in the process of upgrading an asp.net v3.5 web app. to v4 and I'm facing some problems with XSLT transformations I use on XmlDataSource objects.
Part of a XSLT file:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HttpUtility="ds:HttpUtility">
<xsl:output method="xml" indent="yes" encoding="u...
I'm having a memory leak issue in a service program that runs SQL scripts and dumps the results out to files. After running queries that produce many result rows, the memory usage of the process goes up by 50+ MB each time and doesn't come down.
Here is the code that opens the connection and retrieves the results:
using (var conn = new...
Situation: I want to show the method and line number for the code that logs a message. The problem is that I have an intermediate class which calls into the log4net logger. Unfortunately, due to existing architectural issues, I can't do away with this intermediate class. The result is that I always see the method and line number as be...