Subj.
"Automatically" is essential here. References from GAC must not be copied.
I've seen e.g. VS2008.NET: Getting a referenced project’s dependencies to copy to main project’s bin folder, and this isn't interesting for me. I'd like all the dependencies get copied automatically.
...
In MFC, dialog boxes were designed using DLUs. In WPF, we specify in 1/96inch units. While this would indeed scale windows and visual elements, how do we make make WPF "respect" the current font settings of the user? Should we specify a certain font to be used and stick to that font?
How would one go about layout-ing a "well behaved app...
Requirement - I have a periodic task I want to run in a Windows environment for my application. It will have a simple interface that allow some basic configuration (for example, URLs and how often to run it). I want it to run every X hours (configurable) when the machine is running.
Question - Do I just create an application with a ...
I had a problem with WCF test, and the problem was solved when I moved to the top of system.servicemodel.
My question is, why does this matter? Doesn't .NET read the XML by the field names?
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors">
<serviceMetadata httpGetEnabled="true" ...
Good morning,
I have a bit of a dilemma.
I have a webservice reference in a C# project. That webservice calls upon a method called "PlaceOrder". That object has an property Item that is of type object.
When i create an instance of the webservice client i get a exception with "There was an error reflecting 'Item'.". This is a normal g...
Hi,
I am using Listview,the View selected is largeicon mode. The problem i am facing is selection.using the arrow-keys i am able to navigate only in the first row(suppose i have 3 images in a row,if i press right arrow key,it will move till the end of row and again it will comeback to the first image of the same row)But the expected beh...
Hi,
I was considering using the custom MembershipProvider / RoleProviders.
Unfortunately, the security layer we currently have requires some session stuff being set. So, when the IsUserInRole() method is called, the Session object is always null, due to the Session stuff being all prepopulated.
Any suggestions on how I would be able t...
Hi,
I wonder is there a way to prevent an enum with duplicate keys to compile?
For instance this enum below will compile
public enum EDuplicates
{
Unique,
Duplicate = 0,
Keys = 1,
Compilation = 1
}
Although this code
Console.WriteLine(EDuplicates.Unique);
Console.WriteLine(EDuplicates.Duplicate);
Console.WriteLine(E...
Hi,
there are attributes in .NET (e.g. ObsoleteAttribute) which are able to prevent compilation or at least throw compile time warnings depending on their configuration.
How to write an attribute that is able to interfere with compilation? Is there a way to do this from outside Microsoft?
...
This is the situation:
I'm browsing through some code and I wondered if the following statement takes a reference of the selected collection or a copy with which it replaces the original object when the foreach loop finishes. If the first, will it take the new found pages and join them in the loop?
foreach(Page page in Pages)
{
pag...
I'm attempting, with great difficulty, to have an WCF client communicate with a WSE 2.0. The wse service requires UserName token for authentication and it would appear that this is not possible over an unsecured channel.
I have configured the following custom bindings:
<customBinding>
<binding name="wse2Binding">
<te...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 + ASP.Net. I am wondering if I have both aspx page and html page in my web site, will session variable be transferred only in aspx page? Or session could be transferred in both aspx and html page? (transfer I mean user click link inside my web site to traverse through my sit...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 + ASP.Net. In my understanding of Forms authentication, a session variable (used for authentication identifier -- i.e. when a user passed authentication, the user will have such a session variable, and the session variable is implemneted as a cookie) is established for authe...
I need to determine all assemblies referenced by a certain .NET Compact Framework assembly. Do you think this is possible with Cecil?
This way our deployment tools could automatically resolve all dependencies of our .NET Compact Framework applications.
...
PostSharp gives this error:
PostSharp: Cannot apply an
OnMethodInvocation aspect (...) with
target-site weaving on the abstract or
external method "...". Consider
excluding the aspect from this method
or use call-site weaving.
Suggested call-site weaving is not an appropriate solution for me. Is there any way to add pre/p...
There is an email account (or possibly multiple accounts) on a Microsoft Exchange server. I want to register/attach to Exchange from a .Net application in order to receive emails from this account. From there the idea is that the emails can be archived on a file system or database, indexed, etc.
Ideally this code should work against bot...
Can ML functors be practically expressed with .NET interfaces and generics? Is there an advanced ML functor use example that defies such encodings?
Answers summary:
In the general case, the answer is NO. ML modules provide features (such as specification sharing via signatures [1]) that do not directly map to .NET concepts.
However, ...
Hi,
I know web service and have some knowledge on remoting.
Both concepts invoke methods on the client machine so where lies the difference ??
Through remoting we can also execute the method on the remote machine and the same functionality can be achieved through web service too..
Please excuse me if it is the obvious question..
...
Hi,
Does anyone have used memcached as a level2 cache or lucene.net for searching with nhibernate ? Can you please share your advances on nhibernate caching & indexing/searching.
And, is memcached (with enyim cilent on the same machine by appserver) the fastest l2cache solution with nhibernate ?
Best Regards
sirmak
...
Do any of you have any experience working with Qt and C# in Visual Studio? Is it at all possible/easy to use together? I've searched for C# bindings for Qt, but all projects seem to have been abandoned.
I'm doing an application which must be coded in C#, which also needs to be able to run on Ubuntu (with Mono). So, Qt was the first thin...