Answer Questions
bpeikes Listener won't accept new channel after first one is finished
Hey, I posted regarding my custom transport, and the including of security the other day. I solved that problem but it seems like the adding of security caused some more trouble. This is on the server side, where a ServiceHost is used. Without security this was what usually happened (using reliable messaging though): In the Listener, OnBeginAcceptChannel() is called, and an async setup of communication is done. When ready OnEndAccept() is called, and a ReplyChannel is returned. On this channel ReceiveRequest() is called and a RequestContext is returned. Using the RequestContext.Reply() a reply is sent. Back to (1), where a new channel is created for the next message... Now, with security, BeginReceiveRequest ...Show All
ginnyK Rendering Server Report To Printer
Having just tested my applications print function with an actual printer and not the Document Imager, I have discovered that using the reportviewer.printdialog provides printouts once in a while when it feels like it, having just posted asking how to suppress the dialog box it seems somewhat ironic that the only way I can actually get the report to the printer is to display it twice per report :) I can render an image to the printer directly and it comes out every time however I am unable to print any pages after the first page. I started by taking the following article and attempting to send a server report. This seems OK however the code sample creates a stream per page, when I render I create 1 stream. Is there an easier way to do ...Show All
RHolt BMP for Licensing Add-Ins?
If I am a VSTO solution developer, how do I ensure that my customers do not deploy more copies of the add-in I have sold to them Thanks, Tad Joe and Mike, Thanks for the replies. I will explore the shareware kit. Tad There is no direct support and as such the only way would be to use a kit like suggested and or write a simple security mechanism that validates a license such as through a webservice call, remembering the privacy and or network access. As it is a vsto template you are able to get access to the local machine if needed to ask for validation of the license key as such. I can hear your cry for a standard to help on this though. Regards ...Show All
ashk1860 "The maximum string content length quota (8192) has been exceeded while reading XML data. "
I keep getting this when I send a ton of text over the line... and this is SMALL compared to some of the text I want to move. Any ideas The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'UpdateBlogEntry'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 180, position 518. You can increase the quota in your configuration file by configuring the reader quotas for your endpoint binding, using the <readerQuotas/> element. If ...Show All
Gess Man Simple request for help regarding Visual Studio 2005 Service Pack 1 Beta
I have one simple question and I cannot begin to figure out where to ask it. 1) With Visual Studio 2005, if I install the Service Pack 1 Beta, will my project and solution files be compatible with a standard installation of Visual Studio 2005 that does not have the service pack installed I ask this because this beta release has no GoLive license, it is not recommend for deployment in production scenarios, and even if you have a support contract in place with Microsoft there is no formal support before the final release of the service pack. I have never seen such a big carrot that has no dietary value. Hopefully someone can guide me to the proper place to post this question. Connect Feedback Newsgroups Forums MSDN (Oops that' ...Show All
Badajoz95 Change Default Toggle button pressed color
Is there a way to change the background color of a togglebutton when it is pressed. By default it takes on the windows blue color. I need it to be something else but it looks like the only way is to override the control template. Anyone know a better way Figured I would answer my own question in case some else needs the answer. Bottom line is there is not easy way. You have to grab the default template for a toggle button and override its base behavior with a new template. There are no properties you can just set to do this. ...Show All
Biju S Melayil How to configure tracing and message logging in a WCF service?
Hi everybody I created a WCF webservice which is hosted by a windows service. As you can see in the following excerpt of my app.config, I configured it for tracing and message logging. Unfortunately absolutely nothing is traced nor logged. Does anybody have a clue what I'm missing Does the file "C:\Logs\Traces.log" already have to exist Or should it automatically be created by WCF Or is there something wrong with my shared listeners I'd appreciate any help. Kind regards ----------------------------------------------------------------- < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> ................... <diagnostics> <messageLogging logMes ...Show All
SkyDave Shouldn't XDocument.ToString() output declaration?
Shouldn't the ToString() method of XDocument output the document's declaration It doesn't. Here is some code and output: XDocument xDocument = new XDocument( new XDeclaration("1.0", "UTF-8", "yes"), new XElement("Root")); Console.WriteLine(xDocument.ToString()); This code outputs: <Root /> But, that actual XML document could be output as UTF-8 if created by something other than .NET, such as unmanaged C++ or java, correct You are saying that only because in .NET a char is 16 bits, it is possible the data could need UTF-16 But in my case, with this particular document, UTF-8 works just fine, correct Yet another reason to remove the "magic" ...Show All
ahmedilyas GridViewColumn + 1
Hello, I'm using a gridview for my listview.View. I have defined 2 GridViewColumn in my gridview. When I see the resulting gridview there is 3rd column, with empty space. Is there a way to instruct the GridView not to show the 3rd column and allocate all remaining space for the my last column (2nd column). < DockPanel > <ListView ItemsSource = " {Binding Path=Family} " > < ListView.View > < GridView AllowsColumnReorder = " False " > < GridViewColumn Header = " Name " DisplayMemberBinding = " {Binding Path=Name} " /> < GridViewColumn Header = " Age " DisplayMemberBinding = " {Binding Path=Age} " /> </ ...Show All
danmbuen2 AddNewRow behaviour with bound ItemsControl
I'm trying to figure out how to implement AddNewRow functionality to an ItemsControl bound to a DataTable. The simple answer would be to just call DataTable.NewRow followed by DataTable.Rows.Add but that requires all non-null columns to be pre-populated. I'd like to create the same behaviour seen in SQLServer Mangement Studio when adding records to a table. The last item in the ItemsControl should show an empty template. When the user makes the first change, a new empty item template is added underneath the current one. When the user has finished editing the current item it is validated and all constraints checked before adding to the DataTable. The only way I can think of doing this at the moment is to not use databinding but man ...Show All
Creighton Kagey The project type is not supported by this installation.
After having installed all the RC1 parts, including "Orcas" and try to create a new project in VisualStudio 2005 (Windows Application, XAML Browser Application or Custom Control Library) I get an error message: "The project file '.....' cannot be opened. The project type is not supported by this installation." I've tried reinstalling everything but it's still giving the same error message. Could it be because I'm running a swedish version of Windows XP Although I haven't had this problem with other releases. I am having the same problem with a solution I downloaded where the entire solution is in C#, and only one of the component projects doesn't work. I tried both ...Show All
Khenat.Ram Is there a way to specify the namespace in the DLinq Designer?
I am referring to the May 2006 CTP. Am I missing it Or is it not there If not, it seems like a necessary feature. Without it, some may be forced into editing the generated code. I see a setting for naming the DataContext. This seems like a natural place to be able to edit the namespace. Thanks. You guys got me on my birthday...I am not sure that one counts. ;-) I took the day off and slept all day. Been staying up way too late, far too many nights. And wouldn't you know that would be the day you guys would sneak out the release on me...and early to boot! The good news is that the March Orcas CTP and I have the same birthday. I don't suppose I could convince you guys to coordinate the RTM release for the same day in 2008, could ...Show All
feby tried making a new service with 1 method that simply calls and gets a string from the sql database
Hosted in IIS right now, directory security is set to anonymous and everything else is unchecked. My service methods all have impersonate.required attributes and principlePermission(securityaction.required,role="mydomain\domain users") on them. however, i keep getting security exception and it faults out. here is my web.config servicemodel info. < system.serviceModel > < bindings > < wsHttpBinding > < binding name = " wsHttpBindingConfig " > < security mode = " Message " > < transport clientCredentialType = " Windows " proxyCredentialType = " Windows " /> </ security > </ binding > </ wsHttp ...Show All
zensunni Can't edit text in RichTextBox (VSTO 2005)
Hi, When I add a RichTextBox to my Word document at Runtime, my textbox displays correctly my formated text. But if I try to change the format ot some text in the RichTextBox once Word is launched, nothing happens! How can I enable the formating of text in the RichTextBox Thanks, Claudia Hi Claudia ClaudiaHelpOnVSTO wrote: I already use the Clipboard to display some formated text (which is originally in html form) correctly in Word. And this works fine! My final goal is to display a sort of a form in the Word document. So I load some content (text) into each corresponding textbox in the form and I wanted to let the final user not only to change and add new text (which is displayed within the t ...Show All
joeycalisay new to crystal reports
hi I am new at Crystal Reports and am trying to create a report from data i have in a table on an SQL server. I need to query the data and create a report from those records. I'm so desperate, because I don't know where to start and I've tried for so long. Any advice or link to sites where i can find help will be really appreciated. Hi, thanks for your help. I also found a microsoft tutorial for binding crystal reports to a visual studio 2005 project and it's being useful, you can check it out http://msdn2.microsoft.com/en-us/library/ms227781(VS.80).aspx Thanks. The following walkthrough can be helpful, it applies to most versions of Crystal Reports. ...Show All
