Twindagger's Q&A profile
Visual Studio 2008 (Pre-release) BehaviorExtensionSection for Web Service
Hi there, I have web service i want to implement Behaviour Extension for it. How to do it. I have created three classes Following are its brief details 1. CustomBehaviorSection : BehaviorExtensionSection protected override object CreateBehavior() { return new CustomBehavior (); } 2. CustomBehavior : IEndpointBehavior , IServiceBehavior //IEndpointBehavior Members public void ApplyDispatchBehavior( ServiceEndpoint serviceEndpoint, System.ServiceModel. EndpointDispatcher endpointDispatcher) { endpointDispatcher.DispatchRuntime.MessageInspectors.Add( new CustomMessageInspector ()); } //IServic ...Show All
Visual C# Transparent background
Hello.I have a question.I use VC# and I wan' to create a nonrectangular form.I have create the background image with the transparent key: blue, but when I compile the project the application is not transparent! Are you sure that the color you specified to the TransparencyKey property has the same RGB value as the image you are using for your background ...Show All
Visual Basic Delegate - Addressof problem
HI all I am trying to transfer a program over to .NET and am having trouble with the delegate Function. I think I understand what its trying to do but as I don't have any api programming experience so I don't really know what I am doing. This section of code is part of another SDK which I use in my program. Public Sub Hook() 'UPGRADE_WARNING: Add a delegate for AddressOf WindowProc Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm keyword="E9E157F7-EF0C-4016-87B7-7D7FBBC6EE08"' lpPrevWndProc = SetWindowLong(hMainWnd, GWL_WNDPROC, AddressOf WindowProc) End Sub The whole reaso ...Show All
Smart Device Development Device Emulator and connection to internet
Environment vs2005 windows mobile 5.0 ActiveSync 4.0 Question: how Device Emulator connection to internet thanks Hi! I have installed the MS VS 2005, and active Sync 3.7.1, but i cannot connect to the emultator. It says " cannot conenct to device, Error:0x89731304" What can i do ...Show All
Windows Search Technologies Cannot search Chinese characters/words in Outlook message body
It seems WDS (ver. 2.6.5, build 5378) cannot search Chinese characters/words in Outlook message body, but it's able to search Chinese characters/words in subject line. Is this the expected behavior Thanks! BTW, this is the same for MsgFilter also. I'm using Windows 2003 with Asian fonts installed (locale EN_US), Outlook 2003. Here is a sample message: (when I search "中文", I can find the message, but when I search " 公司 ", there is nothing returned.) SUBJECT: This subject has Chinese subject 中文 BODY: 11月30日消息 市 研公司Gartner在 未 展 ,5年 IT 人士的需求 下降40%左右。 Hi George, It so ...Show All
SQL Server Reading compressed files - problem with x00
I am trying to read a 36 byte files that contains compressed data. I create my Flat File data source and SSIS reads it fine UNTIL it hits a x00 in the file. Then it stops reading and I can't get any data after it. There is data after the x00. Here the entire hex string: C7 C7 CF 6A 00 00 05 02 3D 03 21 01 E0 02 00 00 00 00 00 00 00 00 3D 3C 1E FD 02 C8 00 00 00 AE 41 E3 28 7C To test, I changed the two x00 in bytes 5 and 6 to x01 and SSIS read until the next x00. Anyone have any ideas Thanks, Jack Lavender Compressed data, and null characters all say this is a binary file, so I would not expect ...Show All
SQL Server Unable to access reports able to access on ReportServer
1. Root of Reports appears with folders. Click a folder. 2. Report list is displayed. 3. Click a report. 4. Authentication dialog appears. 5. After authentication, instead of reports, the root folder appears again. This cycle keeps repeating. Running latest RS with latest Service Pack on latest SQL 2000 with latest Service Pack. Thank you for any help! The problem is resolved. I had dropped a closing tag in the ReportServer configuration file when adding < ReportServerExternalUrl>. I could not see any error until restarting the services (ReportServer and IIS). Once I did that, I got an error that point ...Show All
SQL Server Error by converting string to decimal
Hi, I'm trying to import a text-file into SQL2005 by using SSIS. Unfortunately it doesn't seem to work in the way I thought. Because I'm using the german version of SQL2005 I need to translate the items of my toolbox, so dont wonder if their names are not exactly the same as in the english versions. Try number1: a) My datasource is a flatfile, in the connection manager I changed the DataType for the input column to DT_DECIMAL. In my destination table the data type of ths column is decimal(20,4). Name of the column is "NXT_PUT_PX". b) Running this package results in this error: "Fehler bei der Datenkonvertierung. ...Show All
Visual Studio Team System .testrunconfig and automation Buid
Hello All, To make my tests work correctly I need to deploy some extra text files. So I have edited my localtestrun.testrunconfig file to add my files as deployment items. This is working fine locally. I get my file using the following code: string path = Assembly .GetExecutingAssembly().Location; path = string .Format( @"{0}\{1}" , Path .GetDirectoryName(path), fileName ); First question: Is there an easier way to get back this file Second question : when running my tests during an automated build, it doesn't work, my files doesn't get copied. My testrunconfig file is even not deployed in the binaries ...Show All
SQL Server Grouping question
Hi guys, on my report i have 3 separate matrices with monthly sales results, each gives a different view on the same data. This all works nicely, but the customer wants these matrices grouped by product (the product is a parameter of the report, they can choose several or all products to report on). Exactly what would be the best way to achieve this grouping It seems i can't house them within a table, and i can't put them in another matrix without running into scope errors. Thanks!!! sluggy Sounds like those three matrics are using the same dataset. In that case, you should be ...Show All
SQL Server Help
I've just learned an asp.net 2.0 web app with vs 2005 and am using a SQL Server 2005. But after running programme the error occur. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) please help me! Fix it I have finished the remote connection but my program not running. it still inform error: Server Error in '/TipcGiaLai' Applicatio ...Show All
Visual C++ Problem with x64 hello world app...
Hi all, I've been trying to port a 32bit app to 64bit these past days, and finally got the thing to compile and link after a long struggle. needless to say, the thing refuses to run on my x64 XP machine, it's missing a number of libraries (assemblies, or whatever the term en vogue these days may be. God, does anybody remember the days when code was just code Sigh.) Anyhow.... I thus am now trying to create the simplest of all apps, a hello world app built to the x64 target. Same thing happens though. Now interestingly I ran 64bit dependency walker, and on my (big) application it finds that MSJAVA.DLL is missing (what a load of bollocks. ...Show All
Windows Forms DataGridView issue
I have been using the DataGridView in Windows forms 2.0 (beta 2) and have observed inconsistent behaviour. In a recent project I am binding a DataGridView to a DatSet (Using the MS Oracle Data provider). The DataSet is being created manually in code. The DataGridView is populated correctly with the data, but I cannot set the column properties. For example, I cannot change the column headers or make other columns invisible (the respective properties that I set are being ignored). If I generate the same functionality using the design time tools, i.e. drag a DataTable onto an empty form from the Data Sources window, So that a DataGrid ...Show All
Visual FoxPro Automate appending data from an MS Access.mdb to two different Foxpro tables (including memo fields)
I have 1 MS Access table calles Notes.mdb. I have two FoxPro tables called Measures.dbf and Special.dbf. I need to take data from Notes.dbf and import it into the FoxPro tables. Notes.mdb Special.dbf ID Number local.id Date/time datein comment code scode comment stext ARKS=yes SUP=yes Notes.mdb Measures.dbf ID Number local.id Date/time mdate Weight mvalue Weight unit munits ARKS=yes Sup=yes Need ideas for coding this. Tried to do an append query but the memo fields were empty. You could drop autoinc field from the list (select field1,filed2 ...Show All
SQL Server Creating relationships between 2 databases
Is it possible to create relationships and enforce constrains thereof between two fields with the same data type from 2 different databases ( i.e. 2 different .mdf files ) altogether, attached to an instance of SQL Server 2005 Express This would help overcome the limitation of the 4GB database size it imposes, by splitting the info required into different databases, rather than just different tables. All the relationships could be then created and a program could be created using Visual Basic or C# or C++ to access all the data meaningfully. I also say this, because in a scenario like where some common piece of data, like contact info, has ...Show All
