.net-3.0

How to use System.IdentityModel in own client-server application

蓝咒 提交于 2019-12-03 03:56:42
问题 I've got a simple client-server application based on TcpClient/TcpListener and SslStream. Clients can authenticate themselves to the server using a X509Certificate or by sending a user name and password after the SslStream has been established. WCF makes use of the System.IdentityModel namespace for authentication purposes, but apparently that can be used in arbitrary applications--which sounds interesting. Information on how to do this is sparse though (or my Google foo is weak today). So,

How to use System.IdentityModel in own client-server application

给你一囗甜甜゛ 提交于 2019-12-02 17:18:57
I've got a simple client-server application based on TcpClient/TcpListener and SslStream. Clients can authenticate themselves to the server using a X509Certificate or by sending a user name and password after the SslStream has been established. WCF makes use of the System.IdentityModel namespace for authentication purposes, but apparently that can be used in arbitrary applications--which sounds interesting. Information on how to do this is sparse though (or my Google foo is weak today). So, my question is: What do I need to do to integrate System.IdentityModel with my application? I'm not sure

What are the best resources for Windows Workflow Foundation (WF)? [closed]

陌路散爱 提交于 2019-12-02 14:57:13
I am looking for a few books, blogs or articles on WWF. I've read the books below; however, I need resources that cover the topic in more depth. I am especially interested in local services, persistence, tracking and viewing Workflows from a website. Any suggestions?? Pro WF: Windows Workflow in .NET 3.0 Essential Windows Workflow Foundation IMHO, the best books are Essential Windows Workflow Foundation and Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# . Blogs that I read: Keith Pijanowski's Blog Kirk Allen Evans's Blog Matt Winkler Matt's

How to unzip a folder with multiple files using SSIS script task C# 2005 or 2008?

坚强是说给别人听的谎言 提交于 2019-12-01 21:32:04
问题 There is a requirement in my project that I need to unzip some zip folder. I googled and came to know without using external libraries I can not achieve this or with GzipStream class we can decompress .gz files. Is there any way we can decompress without using any external libraries? PS: I need to use only script task component for this and .Net framework is 3.0. Thanks in advance. 回答1: A) Declare a variable FileName as string datatype B) Use ForEach loop to loop through the files in the

Conditional Reference

送分小仙女□ 提交于 2019-12-01 19:51:00
I have an application that I was writing that communicates with a third-party application via a Component Object Model library. I must reference this COM library within the Visual Studio project itself in order for the application I am writing to work. There is also a .NET wrapper library that I must reference in the Visual Studio project in order to communicate with the COM library. Is there a way to to create a conditional initialization of a class, in order to use a method within a .NET class within the .NET wrapper library, that will work in a later version of the third-party COM library

Is there a way to use LINQ query syntax with .NET 3.0 projects?

[亡魂溺海] 提交于 2019-12-01 19:36:23
问题 I have a project which can only be deployed on a server running .NET 3.0. I desperately want to use LINQ to simplify some excruciatingly tedious logic. Is there a simple way to accomplish this? I'll settle for any syntax. Thanks a lot 回答1: Since .NET 2.0 through 3.5 all run on the CLR 2.0, all the LINQ stuff is just a bunch of libraries. If you include the DLLs that are missing on your version of the framework, it will work just fine. As Patrick says, the key 3.5 DLLs are System.Core.dll

How to unzip a folder with multiple files using SSIS script task C# 2005 or 2008?

本秂侑毒 提交于 2019-12-01 18:32:23
There is a requirement in my project that I need to unzip some zip folder. I googled and came to know without using external libraries I can not achieve this or with GzipStream class we can decompress .gz files. Is there any way we can decompress without using any external libraries? PS: I need to use only script task component for this and .Net framework is 3.0. Thanks in advance. A) Declare a variable FileName as string datatype B) Use ForEach loop to loop through the files in the folder and map file names to FileName variable C) Use Execute Process task to zip/unzip to individual files D)

Disable mouse scroll wheel in combobox VB.NET

為{幸葍}努か 提交于 2019-11-30 13:09:20
Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? For my purposes, combobox is all I need the answer for. I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously. The ComboBox control doesn't let you easily override behavior of the MouseWheel event. Add a new class to your project and paste the code shown below. Compile. Drop the new control from the top of the toolbox onto your form. Friend

blurred opacity

白昼怎懂夜的黑 提交于 2019-11-30 03:39:15
I need to create a transparent blurred background. Lets suppose I have a border with a white blurry transparent background. Everything that is behind the border is blurred. I'm trying to avoid dependencies; I'm currently using .NET 3.0, and want it to run with XP too. Mockup image: A VisualBrush can be used to get close to what you want, but has some limitations. As long as you only need the glass effect within the window (and not be an effect over other windows) and that the placement of the glass effect border is controlled tightly then you could you something like this:- <Grid> <Border x

Disable mouse scroll wheel in combobox VB.NET

喜夏-厌秋 提交于 2019-11-29 19:05:42
问题 Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? For my purposes, combobox is all I need the answer for. I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously. 回答1: The ComboBox control doesn't let you easily override behavior of the MouseWheel event. Add a new class to your project and