-
- Authenticate several security tokens with the same service
by Matt_
- 7 Replies
- Last post
by Matt_
- Hi.
Can a wcf service authenticate clients with different security tokens on the same endpoint
Example: The same service authenticates a client that sends a UsernameToken, and authenticates another client sending a Kerberos ticket.
If so, what I'm trying to do is to extend a little the CustomToken wcf sample (CreditCardToken) to also authenticate clients that sends a username/pass
-
- Synchronizing two (or more) ScrollViewers
by No-spam Sam
- 2 Replies
- Last post
by Sam
- Anybody got a good way of synchronizing two ScrollViewers My Scenario is that I am creating a custom control where the scrollbars are on the main body of the control, but there are vertical and horizontal headers in their own seperate scrollviewers that need to be kept in sync.
My solution so far has been to use an Attached property to set a SynchronizerGroup attribute on a ScrollViewer. When t
-
- Adaptive context menus
by Mattias K
- 8 Replies
- Last post
by Mattias K
- Hi!
How should I implement my context menu items in order to enable/disable (or show/collapse) them depeding on the item selected
Best regards,
Mattias
-
- Intellisense issue with CodeSnippets
by Benjamin Gopp
- 1 Replies
- Last post
by sravanik
- The new intellisense features in Orcas are great!
But, it's kind of desturbing that codesnippets won't get executed when pressing the TAB key.
For example:
- CodeSnippet shortcut: p
- writing p
- pressing TAB
- keyword "Partial" is written on the screen
Benjamin
-
- Unremove ChangeSet.RemovedEntities
by Rick (Rytis Ilciuk
- 2 Replies
- Last post
by Rytis Ilciukas
- Hi,
is there any way to make ChangeSet.RemovedEntities not removed again I've tried adding removed 'child' entity back to it's parent like this:
foreach (ChildEntity child in changeSet.RemovedEntities)
{
myParentEntity.ChildEntities.Add(child);
}
but that has no effect. Any ideas
-
- Empty <wsdl:types>
by Nikeru
- 9 Replies
- Last post
by Christian Weyer
- Hi.
I am making an application using WCF. I replacing Old Web Service with WCF Service. It is need for me that new WCF Service will interoperable with old clients, which works with old Web Service.
Here example of WCF Service code and generated wsdl:
WCF Service:
using System;
using System.Collections.Generic;
using System.Text;
using System.Servi
-
- How to retrieve the query portion of the startup Uri of the Xbap
by joyrider
- 6 Replies
- Last post
by joyrider
- I want to pass some data into the xbap application via the query portion of the startup Uri. However, I couldn't find a way to retrieve it. I have tried AppDomain .CurrentDomain.SetupInformation.ActivationArguments.ActivationData and BrowserInteropHelper .Source, but both of them have the query portion removed.
Is there a way to retrieve the query portion of the startup Uri of
-
- Any limit on Encryption Key length allowed for export from the US?
by paddyO
- 7 Replies
- Last post
by paddyO
- I am trying to secure a web service that can be deployed to customers in US and other countries.
If I were to use a long encryption key (e.g. 256 bits) to secure the message exchanged with the web service, can such web service be freely exported from the US
If not, what is the maximum encryption key length that can be exported from the US
Thank you.
-
- Best way to close proxy channel?
by vtcoder
- 7 Replies
- Last post
by vtcoder
- I have the following code that cleans up a proxy/channel by closing it. I wanted to see if there are other states I should be checking for when closing.
I think the remaining states I'm not looking at (i.e., that the code below assumes it is okay to call Close() on) are:
- Opened
- Opening
- Created
What about Created Would it simply be better to check for Opened or Opening
-
- GridView problem
by Maik Liebing
- 4 Replies
- Last post
by Atanas Koralski - MSFT
- Hello, in our project we want to show a data grid with name-value pairs within every item of a ListBox. To achieve this, a ListView and a nested GridView is defined in the item's DataTemplate. The xaml and code-behind files of a simple project are attached at the end of this message to show our approach. After the program is started, click the "Populate" button, to fill the list with ite
-
- Cast Proxy to IClientChannel
by jan.haug
- 3 Replies
- Last post
by Ram Venkatesan - MSFT
- I tried to cast a ChannelFactory-created proxy to IClientChannel to find out the State of the Channel like joe zhou - MSFT said; http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1125710&SiteID=1
But in Debug-Mode when I add a watch of DirectCast(MyProxy, IClientChannel).State it says that it is unable to cast MyProxy to IClientChannel.
Thx for helping.
-
- Adding properties to entities in partial classes
by Miha Markic
- 2 Replies
- Last post
by Miha Markic
- Imagine this query:
Code Snippet
ObjectQuery c = new ObjectQuery("SELECT VALUE c FROM Northwind.Customers");
It works just fine. And then add something like:
Code Snippet partial class Customer { public string Tubo { get { return "Help"; } } }
You'll get an exception:
Code Snippet + $exception {"Sp
-
- Net 1.1 client fails to connect to WCF service
by Dani-CH
- 5 Replies
- Last post
by Drore
- Hi I'm having a WCF-Service on an IIS-Host with two endpoints - on is wsHttpBinding and the other basicHttp. As long as I generate my clients with svcutil, all works fine. But when I'm using the classic "Add Web Reference" to consume the basicHttpBinding under VS 2005, I got the exception "An error occured when verifying security for the message.". I'm using TransportWithMessag
-
- SecurityToken encryption
by Maarten van der Wilt
- 1 Replies
- Last post
by Maarten van der Wilt
- I want to override the GetInfoCardSecurityToken function in the ClientCredential class. In this override i return my own GenericXmlSecurityToken class. I create a SamlSecurityToken and put in into the GenericXmlSecurityToken class. So far everything goes fine. When the RSTR message is send i get this error:
An unsecured or incorrectly secured fault was received from the other party. See th
-
- connection string issue
by lee d
- 2 Replies
- Last post
by lee d
- I am trying to create a wpf application using entities. I created the model
the app.config looks like this
< xml version="1.0" encoding="utf-8" > <configuration> <connectionStrings> <add name="NorthwindEntities" connectionString="metadata=.\Model1.csdl|.\Model1.ssdl|.\Model1.msl;provider=System.Data.SqlClient;provider connection string="
-
- Capturing user changes to controls and playing them back
by Neil Stoker
- 2 Replies
- Last post
by Neil Stoker
- Hello,
I have a query about an application I am currently in the very early planning stages for. My apologies if this isn't the right place to post this, or it is too high level (any suggestions on other places to post etc etc would be most welcome!)
I'm trying to establish:
a) whether WPF might be a sensible platform to use b) how easily my requirements might be met and c) if anyone
-
- Installation of Visual Studios 2008 Visual Web Designer Express Edition Fails all the time on WinXP SP2
by Doug N
- 4 Replies
- Last post
by BobFromTula
- Every time I try to install Visual Web Designer 2008 Beta 2 Express Edition, the installation fails. I did not download the "img" file, as I did it with the actual site download. I do get the files to "download" as it seems, but when it comes to install, I get hit with errors. I understand that this is a BETA product, but for people to actually test this product, the installa
-
- Channel Factory - Load balancing
by singhhome
- 2 Replies
- Last post
by singhhome
- Regarding MSDN suggestion for using Channel factory for better perfornance
http://msdn2.microsoft.com/en-us/library/aa738757.aspx
I just wanted to know, how channel factory will work in case of a service hosted on Load balancing sever. Is it Ok to use channel factory in such cases or will a channel factory couple the client to a specific server machine
-
- Retrieve CheckBox Value from Listbox
by Itzik Katzav
- 4 Replies
- Last post
by Dennis Cheng - MSFT
- Hello all
I have a ListBox with DataTamplate which contains a checkbox (not binded) and a textblock (binded).
I need window ok button click to retrieve each item CheckBox value.
How can I do this
How can I even retrieve the CheckBox object from an Item
ListBox.Items is actually a DataRowView because of the binding and not a ListBoxItem
Please only answer to me on how to retrieve
-
- how to get the value of a component before resizing and after resizing in a inkcanvas?
by bruce.du
- 1 Replies
- Last post
by bruce.du
- hello,everyone:
I add 4 button in a inkcanvas. the positions of them is different.I set EditingMode ="Select".
now, I select two buttons of them, and then,I resize these two button.
I want to get the position information of every selected button before its size is changed and after its size is changed.
how can I do it
I know that I can add SelectionResizing event to t
-
- Maximizing Response Stream Performance
by Tyke
- 8 Replies
- Last post
by Kenny Wolf - MSFT
- I've successfully tested a WCF client & service using both basicHttp and netTcp bindings with Streaming enabled. The code on the client looks like:
using ( Stream stream = client.GetImage(ir))
{
...
int readbytes = stream.Read(image, offset, 10000000);
...
}
However, when using HTTP the readbytes are always 4K, and when using TCP the readbytes are ~64K. My ul
-
- SvcUtil generating bad proxies against interface extending generic interface
by GMan6
- 6 Replies
- Last post
by T.R.Vishwanath - MSFT
- We have several empty service interfaces (one per service) which ALL extend a base interface that uses generics (interface foo<T>).
We can generate the proxy just fine for 1 service, but when we try to bulk generate for all our services that extend the base generic service things go haywire... one service proxy will generate with return types for other services, etc.
Anyone hav
-
- PresentationCore exception / unspecified error on the render thread
by Michael Grau
- 6 Replies
- Last post
by Scott Saponas
- Hello everybody.
I keep getting a PresentationCore exception sometimes when I start my WPF program and I cannot figure out how to solve it. Below is all the error information, I could collect:
First of all, the stack traces:
- If I catch the error in my apps DispatcherUnhandledException event handler , I get the information:
Source: PresentationCore Message: An unspecified erro
-
- RichTextBox Auto-Resize for text
by Chrismanster
- 3 Replies
- Last post
by Rob Relyea
- I am using a RichTextBox and I am trying to have it behave similar to a TextBox in that it automatically resizes to the width of the text. MSDN says that the functionality is not provided. Anyone know of a way to create the functionality, or if it is possible at all
-
- Cannot install VS 2008 Beta 2 on Vista
by BartC78
- 14 Replies
- Last post
by itoleck
- I am getting an error stating that the .NET 3.5 framework cannot be installed. It keeps failing with an error like this:
[07/30/07,14:10:35] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 2.0SP1 (CBS). MSI returned error code 34
[07/30/07,15:01:46] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for comp