H. Gøttig's Q&A profile
Visual Studio 2008 (Pre-release) How to configure MessageVersion on BinaryMessageEncoding in config file?
Hi, I can not add attribute messageVersion on binaryMessageEncoding element in custom binding while I can do that with TextMessageEncoding < binaryMessageEncoding /> I can do this in code also: BinaryMessageEncodingBindingElement encoding = new BinaryMessageEncodingBindingElement (); encoding.MessageVersion = MessageVersion .Soap12WSAddressingAugust2004; Is there a way to set MessageVersion of binaryMessageEncoding element in app.config Thanks, IndigoCowboy This cannot be done in config on WCFv1, only in code. Also notice that you can only set (in code) message versions that have Soap12 as the envelope version (i.e., MessageVersion.Soap11WSAddressingAugust2004 would fa ...Show All
.NET Development HttpPostedFile has no constructor
I'm working on unit testing some code that handles an uploaded file, the method I need to test takes a HttpPostedFile as a parameter but I don't seem to be able to construct one in order to call it. Anyone Thanks in advance ...Show All
SQL Server ActiveX Scripting Transform 'AxScriptXform' was not able to initialize
I was using the DTS Import/Export wizard and I went to edit the vbscript that does the transformation. When I run the package I get an error message -- ActiveX Scripting Transform 'AxScriptXform' was not able to initialize the script execution engine. Help appreciated. Ian O'Neil. I have a similar problem, did you ever figure out the problem http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=916232&SiteID=1 ...Show All
Visual C++ Im pretty confused, just wont compile
When ever I try to compile I get this message: e:\files\physics\Collision.h(298) : error C2582: 'operator =' function is unavailable in 'IFinder' This error is caused when I try to call create a new IFinder using this code: IterFinder = gcnew IFinder(); I havn't tried to overload any operaters or any thing, as you can see by the class definition: public ref class IFinder { public : IFinder() { // } int test; }; I have tried every thing, changing the class name, declaring it before the class it is used in, in the class it is used in, in a precompiled header. The class it is u ...Show All
Smart Device Development Slow Tab Control
I have a tab control with 8 pages each with a good amount of labels, textboxes, and comboboxes. When I create the form that contains this tab control, it takes several seconds to load. I'm a novice when it comes to programming but is any suggestions for the UI design that will speed up the load time I know that PPC is limited in resources and I was reading an article that says that Tab control in the Compact Framework isn't very good. Even when I take out all but 1 page, the form still takes 2 seconds to load. Thanks for any help. Several seconds is not uncommon, especially if you use data binding. Do you really need 8 tabs in one form To me it seems too many. One way is to reuse the form (keep it ...Show All
Smart Device Development Disable Window Mobile screen orientation changes
Is there anyway to disable the screen orientation changes on wm5 We had to port over an old .Net 2003 application to wm5 pocket PC and we don't want to change the layout of the screen, customer also agree to use only potrait view. but letting user switch the screen orientation to landscape will misleading the user where they will see a lot of garbage we hide on the right side of the screen. Someone from ms tell me to detect the orientation change and force it change back the orientation layout to portract if it is in landscape layout. I can detect the orientation changes, but what is the command to change the orientation Thank you I use this code and it work, I just remark those error. Imports ...Show All
Windows Forms Inheriting the windows form from another windows form
I'm trying to inherit one windows form (inheritForm) from another windows from (baseForm). I want to override the the baseForm's some events with the inheritForm events (let's day I want to override the form_click event). Can we really do this. I mean does the design of .net framework 2.0 support this If yes, it'd be gr8 if you can post few lines of code. Thanks, Vivek I followed ur method but i got this error Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form2 --- The base class 'Test1.Form1' could not be loaded. Ensure the assembly has been referenced and that all projects ...Show All
Visual Studio Error with installation
I would like to install Visual Studio 6 Pack and it reports me error with message that Visula Studio Service Pack 6 was not completed successfully. I kindly ask you to help me what is wrong What OS are you running. Did you logon as local Administrator Didn' it say what was not installed - any setup.logs -- SvenC ...Show All
Visual Studio 2008 (Pre-release) Getting Error when try to publish the exe with XML file.
Hi, When im trying to publish the exe, im getting 'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission' error. Actually im reading a XML file inside the code behind. If ill remove that then it wont create any problem i think. Please, can anyone help me to publish it xml file contain just three elements, in this, i have to read the data from it and to be displayed in the listview. i hve done the coding part and all. one more thing is, no need to modify it. just for display. please give me the solution for it. give me the solution for modifying the XML also. ...Show All
.NET Development Connecting to a Sybase db
When running my program I get this error, I installed the Sybase client in my local machine and I can access the tables using the SQL Advantage utility in Sybase. Do I have to do anything else Message "The 'Sybase.ASEOLEDBProvider.2' provider is not registered on the local machine." String Thank you JM Hi, I think you should install Sql Anywhere to be able to use the Sybase provider in .Net. Try searching for it in the sybase homepage. www.sybase.com cheers, Paul June A. Domag ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting Direct3D 10 Samples (April SDK) running
Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico NicoRi wrote: Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico ...Show All
Windows Forms vb.net form...linking listbox and label problem
I have created a database for a little wrestling game I'm making. In the table, Wrestlers, are the firlds WrestlerName and Morale. I have a listbox which displays the Wrestlers Name into a label at the top in huge font but I can't get the Morale label (lblMorale) to update with the selected item in the listbox. Can anyone help me please Your code looks fine and works well when I tried it with my own database and query. You might just want to preselect an item so the label is set after the form displays. Add this line to the bottom of Form2_Load: If ListBox1.Items.Count > 0 Then ListBox1.SelectedItem = ListBox1.Items(0) ...Show All
SQL Server Print event in ReportViewer??
Hi All, How can I use the Print event of ReportViewer control in my web application I am trying to print a server report automatically so that the user does not have to click on the Print button in the tool bar of the report viewer. I came across one article that talks about the Print event - http://msdn2.microsoft.com/en-us/library/ms318531.aspx But I could not find it in VS2005 version that I am using. Please let me know if there is a method to print the report automatically other than exporting it to some file and printing it from there. Any help will be greatly appreciated!!! You only get the Print event in the WinForms version of the ReportViewer control, not in the WebForms version. Perhaps you are in ...Show All
Windows Forms dataGridView doubles up the column number!
I set up a DataGridView dataGrid1 with 16 columns. A DataTable table is created with 16 matching columns. Immediately after the table is bound to the dataGrid1 I find 32 columns in the Grid: dataSet.Tables.Add ( table ); Console.WriteLine ( "column number: {0} ", dataGrid1.Columns.Count ); // the answer is 16 dataGrid1.DataSource = dataSet; dataGrid1.DataMember = "Daily"; Console.WriteLine ( "column number: {0} ", dataGrid1.Columns.Count ); // the answer is 32 !!!!!! I discovered the problem this morning because these columns remain hidden beyond the window's right edge although in retrospect I realize that I have seen them before a number of times. I thought they were just paint imprefections and " ...Show All
Visual Studio How to disable the Parameter prompt for Crystal Report using VB.Net
I'm having a problem whereby I can't disable the parameter prompting in VB.Net with the following codes:- Dim crPDV As ParameterDiscreteValue Dim crPFD As ParameterFieldDefinitions Dim crPFL As ParameterFieldDefinition Dim crPV As ParameterValues crPFD = CR.DataDefinition.ParameterFields crPFL = crPFD.Item("paramterName") crPV = crPFL.CurrentValues crPDV = New CrystalDecisions.Shared.ParameterDiscreteValue crPDV.Value = valueToPass crPV.Add(crPDV) crPFL.ApplyCurrentValues(crPV) CrystalReportViewer1.ReportSource = Application.StartupPath & "\TheReport.rpt" CrystalReportViewer1.Show() Any error with the above codes OR do i need to add any additional code(s) that able for me to pass the parameter value direc ...Show All
