I've made a very simple aspect, and found a problem when debugging it (see code). I set a breakpoint on the method exit, and it hits inside "entry" method actually. PostSharp 1.5, Visual Studio 2008 SP1
Is this a known bug, are there any workarounds?
class Program
{
[MyAspect]
static void Main(string[] args)
{
Console.WriteLine("bo...
What are the best sites for reference in programming for .NET development? Websites on WPF would be great but if you have some on other types of technologies from .NET, I am opened to that too (just write it though).
...
I understand that for Silverlight to be able to make a cross-domain request using the WebClient class, there needs to be a clientaccesspolicy.xml at the root of the server. I got this working, and when the Silverlight app has been compiled in debug mode, this works great. When the Silverlight app is compiled in release mode, however, I g...
How, in a .NET, do you search a sorted collection for a key, and get the index, or if it doesn't exist, get the index of the next highest item?
For example there is a list that contains elements {1,5,8,10}. I search for 7. It doesn't exist, but the next highest key that does exist is 8 with an index of 2.
Example:
SortedList<int, int>...
On a site that receives a very high amount of traffic some small percent of requests come like this:
http://cheezburger.com/ScriptResource.axd?d=zaVpgH63ePt90pn</a> <br /> <br /> <p> <a id=
On the page refer...
How to convert XML xpath as case insensitive?
XmlNodeList elements = mConfig.SelectNodes(path);
path can be - Config/Setting/Name or config/setting/name
...
Is it possible to disable individual list box items in WPF? It should appear greyed out and the user should not be possible to select it.
...
Can anyone tell me the best way to call FoxPro 9 code from a .Net 3.51 application?
I have a legacy production application that is written in Fox 9. I want to expose as much of the logic and business processes as I can so that I can reuse it from .Net. Ideally I want to do this in a way which makes it invisible to the .Net application s...
I have a .NET Windows application that needs to call another .NET executable. I want to distribute this other exe as part of the main project, and was wondering what is the best way of implementing this. We don't want to take the code from this second exe and put it in the main project as we need the exe to effectively remain sealed, as ...
I'm having a problem running the following code om Windows 7 x86
when creating an Image from a lzw encoded cmyk + alpha TIFF file.
The FromStream call throws a System.ArgumentException: Parameter is not validRunning
When I run the code on Vista or Server 2008 (both x86 and x64 bit) it just works.
using System;
using System.Drawing;
us...
I have a PDF created in memory using iTextSharp and contained in a MemoryStream. I now need to translate that MemoryStream PDF into something the printer understands.
I've used Report Server in the past to render the pages to the printer format but I cant use it for this project.
Is there a native .Net way of doing this? For example, G...
I want to store a password in a config file but i would like it to be encrypted so that in the app it can be read, decrypted and used. What's the best way to encrypt a password like this?
Edit: I want to encrypt only password, not whole config, or whole section.
...
I've got a class that receives an object from other unknown modules and so I have to do reflection on the object to get its data, call its methods, etc.
To simplify the code to reflect on the object, I'm building this class:
using System;
namespace ApplicationCore.Helpers
{
class ObjectReflector
{
public object TheObje...
I have a web application which calls WCF service to get an object.
I requre the object after post back.
I am using session to store the object for later use.
The use of session comes with an associated cost.
The other option i have is to call the service again to get the object.
I am not sure what is the good way of doing this?
Anyone an...
I have a Linq query that will search a column for a word and return the number of entries found with the said word. I then loop this for each word I'm looking for.
var results = new List<WordCountResult>(words.Count);
foreach (var word in words)
{
var wordCount = (from s in _searchResult
where s.Date>= startD...
Hello
I'm having problems with RotateTransform behavior.
I have a user control inside a grid and it's rotated -135º, but when I move that shape to the limits of the grid, it starts to disappear, acting like it has no rotation.
Anyone with the same problem?
Many thanks,Paulo
...
Hi,
How can I write one abstract class that tells that is mandatory for the child class to have one constructor?
Something like this:
public abstract class FatherClass
{
public **<ChildConstructor>**(string val1, string val2)
{
}
// Someother code....
}
public class ChildClass1: FatherClass
{
public ChildClass1...
Problem:
I have a WCF Webservice which can be used by customers to upload multiple datarecords. To validate the data I use Enterprise Library Validation Block. The records can be nested several layers deep.
Question:
How to identify in which record the validation failed?
Example:
Consider the following datastructure. For each Contin...
VisualStudio 2008 has a few options when it comes to ASP_Folders (ASP_GlobalResources, ASP_LocalResources, ASP_DATA, etc). I have a few dependency DLLs like (DotNetOpenAuth) that I will like to store in SVN so that when people checkout the solution they don't have to install anything in their development machine.
...
I would like to send e-mails through a Microsoft Exchange server. Is it even possible through SMTP for example? The server is "be01.ix.netplace.com" in case this will help in anything. I tried many sample codes but they all didn't work.
Thanks for trying to help :)
...