Is there a way to get Automapper to map a complex source graph like:
public class Source {
public string Name { get; set; }
public SourceSub Sub { get; set; }
}
public class SourceSub {
public string ValA { get; set; }
public string ValB { get; set; }
}
to a flat destination that looks like:
public class Dest {
p...
When I try and use code that makes use of the Enterprise Library Caching Block I get the following error:
The "cachingConfiguration" section is not available in the supplied configuration source.
The section is in my app.config file for that particular assembly though. If I copy the file into the unit test assembly that makes use of th...
In .NET WinForms I want to display message in a status bar and suspend the program execution until user moves mouse or presses keyboard. How can I do that?
...
I have .NET 3.5 SP1 installed on my machine and VS 2008.
I wanted to work with the ADO.NET Entity Data Model, but when clicking on ADD-> New Item and under data tab I am not able to see the option for Entity data model..Why is it so?
Didnt the Ado.NEt Entity framework come with the .net 3.5 sp1?
...
Is it possible to get .NET 4.0 on the server without having to install it? Well! It may sound crazy by just reading the title without actually going into it.
My senior developers(who used to do VB6/ASP programming back then) doesnt want .NET 4.0 on the server for two reasons. 1) They fear that all their existing applications will break...
Is there a way to read the windows registry from a web based application with no user interaction? im open to language suggestions, any language will work i just need to know how to pull a certain string from one particular registry key.
EDIT: incase this wasnt clear, im operating inside of a web-browser, obviously.. its a web applicati...
Hi,
My user.config is created in the following location
<Profile Directory>\Microsoft_Corporation\<App Name>\<Version>\user.config
The user.config file is created in the folder Microsoft_corporation, not the name I have used in my AssemblyCompanyAttribute. My application is an excel addin. I'm using ApplicationSettingsBase to read an...
I've got an application (that is targetting .Net Framework 2.0) that is running on startup of the System, and I'm trying to get a NotifyIcon to display.
When my program starts up when a user either Runs it normally or is started as a child process after the system has already logged on everything is fine.
If my application starts up as...
I need to programmatically determine the name of the users who are administrator on a given machine on a windows network. How can I do it?
I intend to use C# but if i need to use PInvoke to achieve this, that wouldn't be problem.
...
Hello all,
I have been working on Facebook.NET SDK since last week.
After some searches on internet, i decided to develop an application as iframe within xfbml for my .net site
But I could not find any document for web site design ?!?
I wonder that how can i prepare a site as html (for client side) like apps.facebook.com/ilike/ ?
C...
Hello ;)
I've got the following problem:
I have a table with long/lat values and another table with a project-id and long/lat/radius (circle).
Now I need to find out which project matches the long/lat values from the first table.
Is there an easy way to do that?
I'm using VB.net and a SQL Server.
Thank you very much for your help.
...
I have large amount of data been passed around in my application as byte[] objects. Which is also turing out to be memory problems in a lot of cases. What about if i wrap byte[] in a class like
[Serializable]
public class MyClass
{
public byte[] Data { get; set; }
}
Do you guys think i would gain any performance becoz now a referenc...
I have an asp.net content page which is used inside of a master page (with header, menu and some links). I would like to reuse it in a different context without the master page (to not display the header and menu there), or with an empty master page if this is somehow possible. I don't want to violate DRY principle by taking the whole pa...
I am calling a 3rd party web service, during testing I am simulating what would happen if the web server lost internet connectivity by disabling the network adapter during a web service operation.
I have a simple try/ catch scenario.
The ex.message is : There is an error in XML document (1, 1709).
The ex.InnerException.Message : Una...
I am working on a mailSender Class. I can't use the Server.MapPath method from the System.Web.UI Namespace. What reference should i set to make this work? I have referenced to the System / System.Web / System.Web.UI.
This is the msdn i have checked.
...
Perhaps I am missing something obvious here but...
I have built a reusable generic C# class library project say (A.dll) which references 3 other assemblies say (B.dll, C.dll and D.dll)
However if I want to reuse my component A.dll in another project I still have to include the references to B.dll, C.dll and D.dll.
Is there any way you...
I've created an Outlook 2007 AddIn that among other things has to perform some actions when user creates a new email. I've hooked to proper events and everything works correctly in all but one case.
The problem is that if Outlook is not running and user clicks mailto URL then Outlook opens only one explorer where user can compose the e...
Hello,
I have a simple question: is there a way in Windows Mobile to schedule a specific task, for example running a .NET program or send a mail, to a precise date and time? Whatever the technology is, I mean native API, .NET classes or even an existing Windows Mobile program.
I am about to start a project but before I want to be reall...
I have multiple devices connected to a TCP/Ip port and i want to read all these devices through sockets in .Net how can i do this before this i had a single device connected and it was working fine but now i have multiple devices can anybody help me in listening multiple socket connection?
...
I'm using the .net TimeZoneInfo FindSystemTimeZoneById method which I understand queries the registry. Are the values for Time Zone ID strings stored in the registry at "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zone" dependent on the language of the Windows installation of the machine?
The registry key cont...