Bastiaan Molsbeck's Q&A profile
.NET Development XSLCompiledTransform error
Hi! I've got an InvalidProgramException occuring when transforming an xml file using XSLCompiledTransform.Transform method. I'm using a large xslt and xml input file. The same transformation works fine if I'm using XslTransformer class instead. Also if i'm reducing the xslt size, XSLCompiledTransform works too. Is there a limitation on the file sizes used by XSLCompiledTransform Thanks Below are the details of the exception: System.InvalidProgramException occurred Message="Common Language Runtime detected an invalid program." Source="System.Xml.Xsl.CompiledQuery.2" StackTrace: at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/s0:REPC_MT002000.CareProvisionRequest"> ...Show All
SQL Server Alternative to Merge Replication?
Is there a simpler alternative to merge replication I am concerned about the splash of GUID across the DB, performance issues, and the complexity of the deployment. According to http://msdn2.microsoft.com/en-us/library/ms151718.aspx , Updatable Subscriptions for Transactional Replication DOES require a GUID. "Replication adds the msrepl_tran_version column to published tables for tracking purposes" And Peer-to-Peer seems to be for Server-2-server, not for Server-2-DisconnectedClient. ...Show All
Visual Studio Tools for Office History for bookmarks in MS Word
Hi, As I can't find solution to my problem, I ask you here. Let me explain the context : I have a Web Service, who acces a XML file. A MS Word Template displays a Form by clicking on a button (created by myself). This Form lists datas from the Web Service, and updates the template with a bookmark, having a right-click event who displays a menu. This menu allows to update the bookmark's text with another data from the Form. My problem is that I want to keep history of these changes in the bookmark, but I haven't found how. Any suggestions ps : I'm a french guy, and I'm not sure that my english is quite good. so don't hesitate asking me questions :-P thanks a lot, Dave. it works wit ...Show All
Smart Device Development Memory Copy for USHORT Buffer
Hi, I'm developing a device driver using Visual Studio 2003 Pro. I need to transfer ushort buffer to this device (voice board). I tried to use WRITE_REGISTER_BUFFER_USHORT but this is too slow. The RtlCopyMemory doesn't work properly, because this transfers byte. Do you know any efficient functions to do this job Mauro. ...Show All
SQL Server Credentials in Reporting Services??
I have created several reports in SQL Server 2005 reporting services and I am viewing those reports in my C# application using a report viewer control. I want to pass the credentials for each report through my applications. I do not want to use any web service. Is it possible Any help will be appreciated!!! TIA Hi, I am facing the same problem. I used ReportDataSourceInfo then it gives error that DataSource doesnt support it. Error of rsdatasource So what should be the Connection Methods in Shared DataSource Nilesh ...Show All
SQL Server Problem querying Excel doc as a distributed database in SQL2k5
SELECT * FROM OPENROWSET( 'Microsoft.Jet.OLEDB.4.0' , 'Data Source=C:\Book1.xls;' , Sheet1$) I keep getting this error: OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not find installable ISAM.". I have tried all kinds of data source string variations w/ extended properties or not etc., Same if using a linked server instead of ad hoc. SELECT * FROM OPENQUERY( MyLinkedServer , 'SELECT * FROM [Sheet1$]' ) or SELECT * FROM MyLinkedServer ... Sheet1$ OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "MyLinkedServer" returned message "Could not find installable ISAM.". Any help please. I am ready to jump out the window... Carl ...Show All
Internet Explorer Development How to get a SHDocVw.InternetExplorer through its HWND ?
Hi How to get a SHDocVw.InternetExplorer through its HWND Thanks There's no great way to do this, particularly in the world of tabs. http://support.microsoft.com/kb/249232 covered how to do this in IE6. ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather In Console application Main method, you have to replace cipherText = enc.Encrypt(plainText, ...Show All
Visual Studio Team System Lock project for administrative purposes
What is the easiest way to 'lock' a Team Project for access So that users can no longer access the Project. This may be necessary while uploading new workitem templates or in a migration situation where you want to control the moment that users can start using the Team Project. As Luis said, denying all of your normal users access via the group membership/security features should do it. The specifics would depend on what users/groups you've established for your server and the team project. ...Show All
Windows Forms Cannot install WSUS (Microsoft SQL Server 2000 Desktop Engine fails to install)
Hi there, It seems that I cannot install WSUS, for some wierd reason the Microsoft SQL Server 2000 Desktop Engine fails to install: The log: === Verbose logging started: 08-02-2007 18:16:58 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: e:\fdb2914e58e02b2aac2130eb2466\WusSetup.exe === MSI (c) (C0:54) [18:16:58:265]: Resetting cached policy values MSI (c) (C0:54) [18:16:58:265]: Machine policy value 'Debug' is 0 MSI (c) (C0:54) [18:16:58:265]: ******* RunEngine: ******* Product: e:\fdb2914e58e02b2aac2130eb2466\WMSDE\SqlRun03.msi ******* Action: ******* CommandLine: ********** MSI (c) (C0:54) [18:16:58:265]: Client-side and UI is none or basic: Running entire install on the server. MSI (c) (C0:54) [18:16:58:265]: Gr ...Show All
Visual C++ Please help I am new at C++
Help Please!! I am stuck on this I am new at C++ I am writhing this program, the program ask the user for 5 values numerators and denominators, so far is doing something like this Enter numerator 1: 1 Enter numerator 2: Enter numerator 3: Enter numerator 4: Enter numerator 5: It display the numerators and the denominators BUT when I try to get the maximun value using this function: It gives me the error the variable MinValue is being used without being defined. I will appreciate any help on this, or if there is a better method to display the highest value in the array int FindMaxDeno() { int MinValue; int nume; int max; ...Show All
Visual C++ hosting ActiveX controls with ATL80.DLL
Hi All I am trying to host an ActiveX contorl within my application from a Dll. I am working with VS 2005. My code is like: in my Dll.dll: AtlAxWinInit(); m_hwnd = ::CreateWindowEx(NULL, "AtlAxWin80" , "{88549C3B-EC98-4a46-8E19-EDA844674ED2}" , WS_VISIBLE |WS_BORDER | ES_LEFT | ES_MULTILINE |ES_AUTOHSCROLL | , 10, 10, 500, 300, NULL, NULL, ::GetModuleHandle(NULL) , NULL); but nothing! m_hwnd is return empty! But it is working fine in VS 2002 ! Any idea Regards David ...Show All
Visual C++ question about dlls
hey all i am using visual studio express and i was wondering if it was possible to creat dll files. i am putting a hook procedure in it. if it is please tell me thanx. Yes it is. The best avenue is to create a new DLL project to see how it is set up. New Project->Win32->Win32 Project, Application Settings->type=DLL. MSDN can also be used to understand how DLL's are used. Brian ...Show All
.NET Development connection leak in ado.net 2.0 pooling under com+
Hi. I think I have encountered a leak in the SQLConnection class in ADO.NET 2.0, under a COM+ transaction and wondering if anyone else has encountered it. I reduced it down to the following: run the following code in a loop 50 times: [block is inside a COM+ transaction] SQLConnection con = new SQLConnection(...) con.Open con.Close [END COM+ transaction] Aothough, there is only 1 open DB connection at any point in time, I get peeks of 100 open connections (which is the max pool size). it is as if the connections are closed in delay. I would greatly appreciate it if someone can resolve this problem thx amir ...Show All
.NET Development gridview style problem
hello there; i am trying to modify some properties of the gridview, such as arranging rows and columns heights and widths, since my data from source is not regular.Can anyone show me the way how to do, thanks Not something I've ever wanted to do but I have seen this solution posted in the past I haven't tried this code and I can't vouch for it being the best method but give it a try. If e.Row.RowType = DataControlRowType.DataRow Then Dim td As TableCell For Each td In e.Row.Cells td.Width = <whatever> Next End If ...Show All
