How to map one object to multiple object using entity frame wrok MCV...
Hello,I have problem I already asked about entity frame work and they fixed it to me but it give me the same result I could seed data using ProjectDataSeeder.cx and the output was I have one Site and...
View ArticleAccess is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) in...
Hi,when try w3ith this code to access the remote computer Dim options As ConnectionOptions = New ConnectionOptions options.Username = "shambhuremote" options.Password =...
View ArticleCalling Dispose() method on a XmlTextWriter (While writing file to a Low disk...
Pre Requisites: 1. Have a drive location with no free space(0 bytes). 2. In the Try block , Create a Xml Text writer instance and start writing the file to the Drive location mentioned in Step1. a...
View ArticleHow to include & filter Children in Lambda expression
public static MyEntity GetData(this IQueryable<MyEntity> source, int id, int year) { var result = source .Include(x => x.ChildrenCollecton) .Where(x => x.ID == id) .Where(x =>...
View ArticleEnum should Include "All"?
Dear AllThank you for your attention.My web application using an enumOrderType { New , Completed, Voided }There is a search page for view history order records.User could search 'All', 'New',...
View ArticleExpose PCL as WinRT types
I want to implement a Brokered WinRT component and want to expose types written in PCL as WinRT types without explicitly wrapping them.As announced in the .net team blog I was not able to determine how...
View ArticleMemory Monitoring question
I think I've found and fixed a memory leak with multi-threading in an app I wrote. (Actually, a customer found it in an uncomfortable "Can't allocate memory" kind of way. :blush:) I'm now trying to...
View ArticleIs there a .NET library that will provide the same information as the command...
Is there a .NET library that will provide the same information as the command line command "net file" ?Thank youMisterT99
View Article“Request-URI” HTTP field in .NET HttpWebRequest class
I would like to create HTTP-request with method OPTIONS using an object of HttpWebRequest .NET-class. RFC 2616 says that this request should look like this:OPTIONS * HTTP/1.1 where "*" (asterisk) is...
View ArticleMicrosoft.Practices.Unity configuration issue -...
Hi to all, I have implement the Microsoft unity application block in one of my project. Project's Unity configuration file is:<UnityConfiguration...
View ArticleWebBrowser Probem in WPF !!! (Updated)
Hi everyone, I want to show some website on webbrowser. I'm creating WB dinamically at run time foreach (Border b in formBorders) {switch (boardTypes[counter])...
View ArticleReflectionOnlyLoad example error: FileLoadException was unhandled
Hello,I'm trying to use the example C# program from this article: https://msdn.microsoft.com/en-us/library/ms172331(v=vs.110).aspxOn a Windows 8.1 computer using Visual Studio 2013 Pro.When I run it,...
View ArticleHandle leak with Sql Connection and MARS
Hello I'm not able to report a bug via connect (because everything is japenese when I select .Net Framework ... and my japanese isn't the best) so I landed here.I'm experiencing a handle leak whenusing...
View ArticleBuild fails when targeting .NET 3.5 with BlurBitmapEffect class
I am building a project that targets .NET 3.5 and uses the BlurBitmapEffect class. I am using Visual Studio 2013. This project is used with 2 solutions, one that includes only projects that target...
View ArticleActive Directoty search
I want to get the group principal based on display name instead of SAMAccountname.GroupPrincipal group = GroupPrincipal.FindByIdentity(ctx, "My Testing Group");My Testing Group is display name while...
View ArticleLoad specific userControl from DLL
Hi,I have created a DLL class and added two UserControls in it, UC01 and UC02.In my WinForm application, I want to reference to the DLL using:Assembly objAsm =...
View ArticleReflection: How to get Parameter Type for Generic Method
This is the sample code:using System; using System.Linq.Expressions; public class MyClass<TClass> { public void MyMethod<TMethod>( Expression<Func<TClass, TMethod>> expr ) {...
View ArticleDatetime - Persian calendar
HiAs I know .net framework is supposed to support Persian calendar via DateTime Type. And there is tools to convert between different calendars inducing Persian calendar.There is one problem storing 2...
View ArticleWrite on file "realtime"
hello,I'm receveing from serial port an array ob bytes [60] every 20ms from my thread in DLL C#.when data is ready, DLL send to my program an event. With data I must do 2 functions: write on file and...
View ArticleKERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf Exception...
Hi all just am getting this error with KernelBase.dll, what's happening at my application end is that I am using .NET Framework to determine if network connectivity is available, raise an event from...
View Article