.net-3.5

How to avoid massive memory leaks on WPF on .Net 3.5?

送分小仙女□ 提交于 2020-01-13 10:21:54
问题 When I run my app targeted to .Net 3.5 it has massive memory leaks. 50mb every time I assign a UserControl to a local ref. I only ever create one instance of each UserControl. If I compile and run the same code targeted to .Net 4.0 everything runs fine hovering around the 50mb mark. Is this a known isue with 3.5? I.e. it's not usable in prod? /My clients only have 3.5 and won't be moving to 4.0 for awhile so i don't have the easy option 回答1: Memory Leak Hotfixes for WPF 3.5 SP1 http://www

How is dependency property implemented?

≡放荡痞女 提交于 2020-01-13 09:43:28
问题 Can anyone explain how is dependency property implemented? Is it just a static dictionary that is declared in base class with a reference of given instance as a key?I can't find any resources about this in internet... Thanks a lot 回答1: I see two questions: How do dependency properties work? The MSDN article on Properties in WPF is a great series on dependency properties. Should be a good overview to get you started. How are dependency properties implemented? You won't find any resources on

Facebook C# Library

陌路散爱 提交于 2020-01-13 06:00:52
问题 Does anybody know of a good library out there for developing for Facebook using the REST API in C#. I've been using the Facebook Developer Toolkit for some time now, but have more recently become annoyed at how key functionality is broken (even in the updated 3.1 beta). I looked into using the Facebook C# SDK, but this only appears to have a version for .NET 4.0. 回答1: Facebook C# SDK says Note: If you are looking for the WP7, Silverlight, .Net 35 builds of this project you will need to

Protect .net Web Service URL

☆樱花仙子☆ 提交于 2020-01-13 03:36:06
问题 I have created Web Service using Asp.net 3.5. Now it's working perfectly in live windows server, and giving me perfect xml while invoking it using some url like : http://www.somedomain.com/Service.asmx?op=fetchData Now My question is when I am accessing url like : http://www.somedomain.com/Service.asmx it's listing my created web services. What if I don't wanna list down the available web services to end users. Thanks in advance... 回答1: If you just want to disable the service help page then

Can't create xmlns reference to other project in XAML

梦想的初衷 提交于 2020-01-13 02:57:08
问题 I have a WPF project defined like this: MyApp.sln MyAppWPF MyApp.Domain In one of my xaml files in the MyAppWPF project I'm trying to reference a class defined in MyApp.Domain project. I have a project reference in MyAppWPF to MyApp.Domain. I am trying to create the reference like this: <Window x:Class="MyAppWPF.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MyApp.Domain;assembly

Can't create xmlns reference to other project in XAML

泪湿孤枕 提交于 2020-01-13 02:57:01
问题 I have a WPF project defined like this: MyApp.sln MyAppWPF MyApp.Domain In one of my xaml files in the MyAppWPF project I'm trying to reference a class defined in MyApp.Domain project. I have a project reference in MyAppWPF to MyApp.Domain. I am trying to create the reference like this: <Window x:Class="MyAppWPF.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MyApp.Domain;assembly

Entity Framework Table Per Type Performance

早过忘川 提交于 2020-01-12 19:05:51
问题 So it turns out that I am the last person to discover the fundamental floor that exists in Microsoft's Entity Framework when implementing TPT (Table Per Type) inheritance. Having built a prototype with 3 sub classes, the base table/class consisting of 20+ columns and the child tables consisting of ~10 columns, everything worked beautifully and I continued to work on the rest of the application having proved the concept. Now the time has come to add the other 20 sub types and OMG, I've just

Entity Framework Table Per Type Performance

匆匆过客 提交于 2020-01-12 19:04:13
问题 So it turns out that I am the last person to discover the fundamental floor that exists in Microsoft's Entity Framework when implementing TPT (Table Per Type) inheritance. Having built a prototype with 3 sub classes, the base table/class consisting of 20+ columns and the child tables consisting of ~10 columns, everything worked beautifully and I continued to work on the rest of the application having proved the concept. Now the time has come to add the other 20 sub types and OMG, I've just

The test form is only available for requests from the local machine

跟風遠走 提交于 2020-01-12 17:39:11
问题 Why is it that for some of my web-services, I get test forms so I can see the generated xml data, but for other web-services, I get a message saying The test form is only available for requests from the local machine. ? Both times, I am connecting to the URL of the web-service from a client side browser and all web-services are created with C#, .NET-3.5. 回答1: I googled for "The test form is only available for requests from the local machine." There were many results, and the consensus is to

Convert web service configuration to code

笑着哭i 提交于 2020-01-12 10:07:40
问题 I have a client for SOAP service in a console application, I need to move the service client to sharepoint 2010. I do not want to do config files deployment and other sharepoint-related stuff, so I decided to hardcode binding information, the only configurable option is URL. But I encountred some troubles doing this. I have a config: <system.serviceModel> <bindings> <customBinding> <binding name="SI_PMProjectMaintain_SOUTBinding"> <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16