-
- Force the session to be closed when something went wrong in the service
by jotagrande
- 9 Replies
- Last post
by jotagrande
- Hi,
I'm making a service with reliable sessions (WSHttpBinding) where I have the following method:
[OperationContract(IsInitiating = true, IsTerminating = false, IsOneWay = false)] int Login(User ^ user);
This method is the only one thar has the IsInitiating attribute set to true.
I want to force the session to be closed when a condition is not met inside the Login met
-
- typeof(Queryable).GetMethod(¡°OrderBy¡±) - ???
by Vladd
- 13 Replies
- Last post
by Maximilian W.
- Although this is not quite a LINQ subject, I got into this problem because of LINQ. I wanted to apply an OrderBy<TSource,TKey> to an IQueryable<TSource> instance without knowing the TKey parameter until runtime. For that I needed the MemberInfo for Queryable.OrderBy, but because the method is overloaded I couldn¡¯t use GetMethod without specifying the parameters types, and when I¡¯ve sp
-
- Several where clauses
by &#35;nunojpg
- 3 Replies
- Last post
by Bltfast
- Hi,
I need to query my sql database by a name field. In T-SQL I would use "where name like '%name1%name2%nameN%'". With DLINQ I was thinking about using something like
string [] names = new string []{ "Jonh" , "Trico" , "Pir" };
var res = from a in db.Membros
select a;
foreach ( string var1 in names)
{
-
- Text Image Button
by I.Katzav
- 1 Replies
- Last post
by I.Katzav
- Hi All
I created a style for TextImageButton, you can see xaml below.
The button template has border in 45 degree transform and a content presenter.
Both in tsack panel with horizontal stack.
Sounds simple so far.
Everything works great so far. and I can use the same template for several buttons.
Now I want an image being set inside the rotated border, if set it stati
-
- Eager loading and the Including extention.
by Michael.NET
- 14 Replies
- Last post
by Matt Warren - MSFT
- Hello. In the May 2006 CTP for VS2005 there was a neat feature when working with a DataContext to eagerly load 1:M relations like [Customer, Order], by simply tagging along the .Including(c => c.Orders) With Mars 2007 CTP on Orcas this extention method is not there anymore. After a long session with google, I finally had a look at the updated samples from Mr Calverts blog. In those updated samp
-
- How to add a extension method to a template class/interface.
by &#91;CN&#93; T
- 2 Replies
- Last post
by [CN] Tony Huang
- I want to add extend some methods to the IEnumerable<T> interface, and I hope these methods will be availabe for IEnumerable<int>, IEnumberable<bool>, and etc.
So what's the syntax to write this extension method.
Thank you.
Tony Huang
-
- ListView lags with more than 200 Items
by IsisTheDamned
- 5 Replies
- Last post
by IsisTheDamned
- Hello there, My application makes heavy use of the ListViews sorting and grouping functionallity. Now this works pretty fine for <100 items and then the ListView starts lagging to death. Even if the window containing the list is not displayed(Z-Ordered behind another window) or minimized to task bar it doesn't get better. Meanwhile I know this is about some virtualized stack panel thing but I n
-
- WARNING TO HAVE CONSIDER I AM PROGRAMMING WINDOWS APPLICATION WITH C#
by ehsano2
- 1 Replies
- Last post
by LesterLobo - MSFT
- hi
would u give me the codes in C# for windows application
So please answer the question " change textbox backcolor when it is focused " in C#
Thanks
-
- Endpoints behaviors and IWsdlImportExtension
by Pedro Felix
- 5 Replies
- Last post
by Brian McNamara - MSFT
- Hello I'm extending WCF in order to support HTTP GET (non SOAP) services. In order to do so I defined proprietary bindings and endpoint behaviors. I'm now trying to customize the WSDL export and import process, using IWsdlExportExtension and IWsdlImportExtension . I've already managed to export correct WSDL from the service description. However I have one doubt in the import process: - In the Impo
-
- Generating Images with WPF on Webserver
by theblob
- 3 Replies
- Last post
by Drew Marsh
- Dear community, currently I am generating dynamic images with GDI+ and .NET 2.0 on my webserver in an http handler. Is it possible to install .NET 3.0 on my webserver and then use the new WPF features for text rendering My server is a Windows 2003 Server with a very low tech graphics card ... do I need to install DirectX on the server to use the features Note: I do not want to display anything on
-
- Assmebly problem validation rules
by Itzik Katzav
- 10 Replies
- Last post
by Itzik Katzav
- I have ValidationRules in a different Dll and get this exception:
Cannot find type 'WpfUtils.RequiredValidator'. The assembly used when compiling might be different than that used when loading and the type is missing. Error at object 'System.Windows.Data.Binding' in markup file 'PowerJobsDll;component/security/userwindow.xaml' Line 45 Position 20.
assuming everything else works great what do
-
- A couple of questions
by SnowJim
- 3 Replies
- Last post
by Todd West - MSFT
- Hey!
I have a cuple of questions:
1. How do ASP.NET membership send username and password over the http is it in clear text Do I have to use SSL(https)(certificate) to get a good security
2. If I build a WCF application and want to make a secure username and password login, do I need to use SSL(https)(certificate) or are there somthing in the membership that could help me with thi
-
- Encounter Illegal XML character: � while calling a WCF Web Services
by jliao
- 9 Replies
- Last post
by jliao
- Hi All, There is a WCF Web Services which will echo binary array as string with UTF-16 encoding. (Service URL: http://131.107.72.15/MTOM_Service_Indigo/Soap11MtomUtf16.svc ;Operation Name: EchoBinaryAsString). The client side which is based on Java StAX XML parser always fail on parsing the following response from WCF, but I test it with WCF client and it works. 200 OK X-Powered-By: ASP.NET Conten
-
- WPF Themes
by Josh_G
- 4 Replies
- Last post
by Moon Flower
- I have seen several articles that discuss WPF "themes" that are based on operating systems.
http://msdn2.microsoft.com/en-us/library/aa358533.aspx
http://msdn2.microsoft.com/en-us/library/ms745683.aspx#styling_themes
http://nerddawg.blogspot.com/2006/05/theme-support-in-windows-presentation.html
These articles seem to indicate that resource dictionar
-
- Failure at the start of the download
by Bob Stokesbary
- 9 Replies
- Last post
by AnnieW
- When trying to download C# I get a failure early in the download of the .NET3.5. The troubleshooting guide says to be sure Background Intelligent Transfer Service is working OK. I did everything on the list and everything is OK. I even downloaded BITS 2.0 from MS, but the load says that my version of BITS is later than the one (version 2.0) suggested by Microsoft. I also downloaded the Bitsadmin t
-
- Rendering problems of TreeView on ElementHost
by Hansen Steve
- 8 Replies
- Last post
by Hansen Steve
- When you add a TreeView in an ElementHost the headers are rendered incorrectly. Anyone knows what is causing this
-
- Kiosk mode
by godzilla9
- 2 Replies
- Last post
by Eddie Li
- Hi,
I am trying to create a fullscreen window to play a movie in.
I added this to my window in the xaml file.
ShowInTaskbar = " False "
WindowStyle = " None "
WindowState = " Maximized "
WindowStartupLocation = " CenterScreen "
It almost works. I can still see the border on the left side and the bottom on my screen. Just one pixe
-
- AccessViolationException
by Jay L.
- 5 Replies
- Last post
by Xun Sun -MSFT
- Hello, I'm a "programming apprentice". Currently I'm working on a small project based on LINQ to SQL. I really like the new concept with linq. Using: IDE: Microsoft Visual C# 2008 Express Edition (beta 2) Virtual Machine: Virtual PC 2007 Virtual Host: Windows XP Pro SP2 Host: Vista Business 64bit I wrote a simple converter, which converts ascii text files to sql server compact editon (3.
-
- Bad request?
by KevinBurton
- 14 Replies
- Last post
by Lukasz_S
- I am getting the following exception:
TestCase 'TestGetBasket'
failed: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (400) Bad Request.
System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.
-
- Listbox databinding with Observablecollection
by Ha Duo
- 4 Replies
- Last post
by Ha Duo
- Hi I am trying to bind and Observablecollection to a Listbox The Observablecollection is a list of Student oject. class Student { string Name; int ID; } So i want to bind the name to show in the listbox and and ID is hidden to use later on. I am quite new to WPF so can you please tell me how to do it in WPF. Thank you very much Best regard
-
- WCF Client Behind ISA: HTTP Error 407
by Khubieb Al Omari
- 14 Replies
- Last post
by Hao Xu - MSFT
- I am moving this thread to WCF from .NET Networking and Communication
Situation:
We have to connect to a 3rd party XML Web Service outside our LAN by adding a WCF Service Reference to a simple console application
Problem:
When attempting to invoke any of the generated client class methods, we recieve the following error: "The remote server returned an unexpected response: (407) Pr
-
- Can't connect to sql in wcf
by JDPeckham
- 10 Replies
- Last post
by Gcoates
- Hi, i keep getting:
Login failed for user ''. The user....
Currently i'm hosting my wcf application within IIS (it worked fine when i self hosted it in an app running as me).
So i tried to impersonate my user account in the web config (just to see), but that didn't work either.
In IIS 5 how do i host WCF and make it run as a specified domain account (So i can windows auth to my
-
- I suspect I am missing the big picture...but...
by Shawn Wildermuth - MVP &am
- 14 Replies
- Last post
by Shawn Wildermuth-MVP
- For a myriad of reasons I am devling into the Entity Provider and using the Query<> stuff its easy to query the model to get back an object graph. Great...really...
I am looking at how to tackle the enterprise data problem here (e.g. Reporting and such). The Entity Provider is simililar (though clearly not the same) as any other ADO.NET Managed Provider (e.g. no DataReader or DataAdap
-
- Dependencies, .NET 2.0 + LINQ?
by Chimme
- 1 Replies
- Last post
by David M. Kean - MSFT
- I'm writing a program for a schoolproject and we only have .NET 2.0 on the computers in school so i have to make sure that i'll be able to start the program when it's time to present it.
My question is: can i use orcas to develop .NET2.0 apps and can i use linq for .NET 2.0
I'm using Orcas C# express and in the new project menu there is only .NET 3.5 options. I tried to open an old .
-
- How to Embed image in FlowDocument and save
by srinivasulu reddy
- 3 Replies
- Last post
by Rashad Rivera
- How can i embed the Image object in side flowdocument (In richTextBox) and save the flowdocument in a flie(.xaml) and image should not take a file path from local machine. I mean it should be embedded inside flowdocument. Image object is in byte array.
Thanks
Srinivas