Answer Questions
Sarah71 ASMX client with a WCF service
http://windowssdk.msdn.microsoft.com/en-us/library/ms751433(VS.80).aspx I have created an application similar to the example ( ASMX client with a WCF service ), but in my case, the service is not hosted in IIS, but in a standalone application. The client was originally created with the service running in IIS, and the proxy was generated with the IIS- service. Now, the client runs fine with the new WCF standalone server. The problem: If I change the interface of the WCF standalone server, how can I generate a new proxy so that the client can work with the new interface Thanks for your answer. I am trying to find out how to implement it in code (not in configuration files). My server is just a con ...Show All
R-Cyclone-S Set version for Guidance Package
I've created my first guidance package, but every time I enable it, it appears with the same version number (1.0). How can that be changed Thanks a lot in advance Glad it worked! Worked like a charm... Thanks a lot, Victor Hi Javier, Enabling or rebuilding a package doesn't automatically increase its version number. In order to chage the version number that appears on the Guidace Package Manager when listing installed packages you will need to use the Version attribute of the <GuidancePackage> element in your package's manifest file, i.e: < GuidancePackage xmlns = " http://schemas.microsoft.com/pag/gax-core " Name = " Yo ...Show All
Jeremy Lew problem during WCF proxy creation.
using XSD.exe I've generated .cs file from XSD and added that generated file to the Server side. DSCRQuery is the name of the class in the generated file. One of my service contract is [OperationContract] DataSet RunQuery(DSCRQuery dscrQuery); I've created a proxy file using add service reference option and added the proxy file in the client side. The proxy file also contains the DSCRQuery class, as it is there in service contract. I've created an instance of DSCRQuery class of proxy and manually populated the DSCRQuery object. When the DSCRQuery object is serialized using XML serialization, the serailized XML is not getting validated against the XSD. The Attributes in the XSD are getting converted to separate Nodes in t ...Show All
ChopperDavo Changing the value/content of a property/control in a DataTemplate doesn't update UI
In my application, I've got this XAML code: < Page.Resources > < SharepointListItemsViewer:NodeTemplateSelector x:Key = " nodeTemplateSelector " /> </ Page.Resources > < Graph:Graph Name = " theGraph " NodesBindingPath = " ChildNodes " CoefficientOfDampening = " 0.7 " FrameRate = " 0.5 " NodeTemplateSelector = " {StaticResource nodeTemplateSelector} " > < Graph:Graph.Resources > < Style TargetType = " {x:Type Button} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type Button} " > < Border ...Show All
Suneel VLN Problem in Hosting in IIS....
Hello All, I successfully host in console application but the problem in hosting in IIS. I have Contract : using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace ContractProg { [ ServiceContract ] public interface IContract { [ OperationContract ] string hello(); } } And Service class : using System; using System.Collections.Generic; using System.Text; namespace ContractProg { public class Hello : IContract { string IContract .hello() { return ( "Hi How are you " ); } } } == My Service.svc file is <% @ServiceHost language= ...Show All
RamiEmad Binding ListView to infinite lists
Out of pure curiosity I decided to try the following on a ListView since I heard it uses the VirtualizingStackPanel. I bound the ListView's ItemsSource property to a getter property defined as public IEnumerable<int> InfiniteList { get { int n = 0; yield return n++; } } It only displayed the first item. How does the ListView populate itself from a databound collection I thought any collection implementing IEnumerable would be fine. Cool question. The problem is in your iterator. It is only returning one value and then it's done. I changed it to: public IEnumerable<int> InfiniteList { get { int n = 0; while (true) { ++n; yield return n; } } } However, my CPU just ...Show All
mitasid Loading Specific Parts of Model Metadata Into an ObjectContext
Loading an ObjectContext with an entire model's metadata is a costly operation. NHibernate allows me to explicitly add specific pieces of metadata into its object context. I deeply appreciate this feature since it allows me to significantly truncate the time and resources needed to instantiate a context. This is especially useful in session-per-request scenarios in web apps. Is this ability also in ADO .NET Orcas' ObjectContext class or the metadata containers that it uses I don't see that you've really got an option but to deliver more performance with the metadata system for ADO .NET Orcas RTM. Well, I suppose you can, but NHibernate bloggers might have a field day with the inability for a well-funded, ...Show All
SSAS sample service doesn't work on Windows XP 64
Hello, I tried to make a windows service that hosts a WCF service. Naturally, I've tried the sample first. It crushes raising an error: System.ServiceModel:Incorrect function at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen() at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelLi ...Show All
Ayman_Hdaib The project type is not supported by this installation?
VS2005 Team Suite RTM with SP1 Beta - XP SP2 - latest patches Hi, I have been learning XAML at the intro level. I had an old version of dotnetfx3 and wpf templates and I could create a project and run it. Yesterday I removed the old templates and the old framework with a removal tool and installed the RTM framework and new templates. However now I cannot open create a new project. The error message I am receiving is: "The project file c:\documents and settings\renee\localsettings\temp\4t4baj4.dyv\temp\WindowsApplication1 cannot be opened." The project type is not supported by this installation. I have not installed the extensions. I never have. I don't have enough disk space on the current system. What ...Show All
Bassam72 ListView row value warp
Hy, I wrote a ListView with a GridView that populates from a database, the columns have fixed widths, my question is: Is it possible to warp the data in a row so that you can see the whole text on multiple lines, now the text is only in 1 line and not completly visible. Thanks for your help, you can add TextWrapping = " Wrap " to make the text wrap I guess ScrollViewer.HorizontalScrollBarVisibility = " Disabled " should be also set, shouldn't it ...Show All
95five0 Underlining content in WFP RichTextBox
Hi, I have the absolute start index and the last index of a section of text I would like to underline in a RichTextBox however there seems to be no obvouis way to do this easily. Bonus points if you know how the underlining can be nice and red and wigglely. Thanks, Rob The thing I really looking to be able to do but can't find a solution to is convert an index, an integer representing the start and end, into a TextRange. Hi, Thanks for the info, and yes it looks like I got the wrong forum (what is WFP/E by the way ), but helpfully an adminstrator has moved it. Unfortunatly that post does not cover exactly what I what to do, here is some pseduo code for what ...Show All
jenjen13 Detecting cached domain logon
Hi, I'm working on project, in which I use WCF for communication. User is authenticated by using Windows Authentication. I have to detect that user has logged into the computer using cached credentials (connection to Active Directory was unavalible). How can I programmatically detect it on service (or client) side. Is it possible at all thx, Mark It's not possible through WCF, unless you plug in your own code. Calling LsaLogonUser() with MSV1_0_SUBAUTH_LOGON on yields a MSV1_0_LM20_LOGON_PROFILE whose UserFlags field will contain LOGON_CACHED_ACCOUNT if cached credentials backed the logon. Vista adds a UserFlags field to the SECURITY_SESSION_LOGON data returned by LsaLogonUserSessi ...Show All
Kallex I need help!
I would really appreciate it if someone could help me out on this I'm having problems with the security permissions of the word document customization assemblies. Even after giving permissions to the assembly from the .Net framework configuration, it's still telling me that the customization assembly does not have the required permissions to execute. I've been facing this issue for a long time.. plz if anyone has the solution to my problem, i'd really appreciate your feedback thanks Maha Which version of VSTO are you using and how did you configure permissions -- SvenC yeah i added \* to the folder path i gave full trust but what do u mean by: "Y ...Show All
newyuppie Selection state not retained by report Viewer control
Hi, I have created a aspx page with a reportviewer control which refers to a server report. the report has several parameters of which one(customerId) is being passed from the aspx page and the other parameters like City,State, Date etc(whose values are calculated based customerId which is passed form the aspx page) are defined in the report and are exposed to the user for selection. when the user selects city,state or date parameter values and clicks on view report, the report, instead displaying the data according to the selected parameter values, is reverting back to to the default parameter values that is set in the reports. It is not accepting the selected values of the parameters whose values are not coming from the aspx ...Show All
OwaisM Exception handling
How can you ensure that no exceptions escape the entry point of an WPF application. In .NET 2.0 this was simple since you could enclose all of your code in the main method with and try/catch blocks. However, in WPF we now have the App.xaml and App.xaml.cs files. I need to ensure that if something bad does happen where an exception is accidentally not caught for whatever reason, we can at least crash gracefully. I'm guessing that I will need to form my entry point completely in code, but am not sure of the proper way to accomplish this in WPF. Thanks. Thanks Drew. Just hook the Application::DispatcherUnhandledException event. HTH, Drew ...Show All
