hprasetya's Q&A profile
Visual Studio ItemGroup Include gives zero items
Hi all, In our build script we have the following construct: < PropertyGroup > < FilterTables > **\Create*\*tables.sql </ FilterTables > < FilterSchemas > **\Create*\*schema.sql </ FilterSchemas > </ PropertyGroup > < PropertyGroup > < CreateDatabaseScript > $(SolutionRoot)\DbCreateTun.sql </ CreateDatabaseScript > </ PropertyGroup > <!-- Get a list of all database projects under the solution root --> < ItemGroup > < DataBaseProject Include = " $(SolutionRoot)\**\*.dbp " /> </ ItemGroup > < Target Name = " CreateDatabase " > <!-- deter ...Show All
Visual Studio File Explorer View
I was wondering how difficult it would be to implement a "File Explorer" to go along with the "Solution Explorer" in DevStudio. We do development on embedded systems that require all external build & debug tools, but we use VS as our standard IDE. One that that would help many to convert to VS would be a simple explorer tree instead of always having to update projects. Any pointers (to examples or existing projects) would be very helpful. I am not very experienced at Windows programming, so this will be an interesting learning adventure for me Got the project renamed, now I'm just having problems with the regist ...Show All
Visual C# ToString() -- 'No overload for method ToString takes 1 argument' error
Hi: I'm trying to display a dateTime value in the format '07/31/06' but when I use the ToString() as follows I get the above errormessage, despite the fact that the documentation clearly shows that ToString( string ) exists. What's up with this string timeStr = myDate.ToString("mm dd yy"); I also tried string timeStr = myDate.ToString( "d"); with the same result... Thanks for all help! John F. try this, string timeStr = myDate.ToShortDateString() ...Show All
Visual Studio Tools for Office Unable to move outlook add in code to other machine
Hi, I'm trying to move my code to another machine so I can work from there too. But the add in does not compile once moved. It gives me errors like not reconizing thisApplication class or the declared variable outAddIn of OutlookAddin Type. Also, I run the msi on my machine for the registry entries but it didn't fixed either. Does any body know how to fix it Best Regards Hi Jhon, I could fix the application, It was related to a add in namespace. I do not know why, I have a CDAddin name and it was not able to find the out look application object. Right now, I've change it to another name space and worked. Weird thi ...Show All
SQL Server rdl document shows error due to the text xmlns="" in the rdl file.
When I run the RDL document I get the following error: An error occured during local report processing. An unexpected error occured in Report Processing. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. But when I manually remove the text xmlns="" from the below tag, then it is executed without any error. <TableRow xmlns=""> Using xmlDocument I am modifiying the rdl file So how can I remove the text xmlns="" from the above mentioned tag programatically. Any other soluation/feeback is highly appreciated. Thanks ------------------------------------------------------------------ ...Show All
.NET Development Passing a varbinary cmd parameter to stored procedure
I created a table CREATE TABLE F ( Name nvarchar (50) NOT NULL, DATA varbinary(MAX) ) Created a stored procedure CREATE PROCEDURE createfile @bytefile varbinary AS INSERT INTO F (Name, Data) VALUES ('a', 0x) UPDATE F SET [DATA] .Write (@bytefile, null, 0) return 0 I use the following program to insert data in the table static void Main( string [] args) { // Connect to DB SqlConnection sql = new SqlConnection (); sql.ConnectionString = ... sql.Open (); SqlCommand cmd = sql.CreateCommand (); cmd.CommandType = C ...Show All
.NET Development How to display Certicates list
Hi All, I am working on project related to certificates. I want to display the list of certificates based on user. I have an admin privileges. I wrote the following code, it always displaying the list of certificates for logged on user. but i(who have admin privileges) want to get the list of certificates based on the specified user. X509Store storeCertificates = new X509Store(StoreName.My, StoreLocation.CurrentUser); storeCertificates.Open( OpenFlags .ReadOnly); X509certificateCollection collection = ( X509Certificate2Collection ) storeCertificates.Certificates; foreach ( X509Certificate2 x in collection) { ...Show All
Visual Studio Team System Loads of Event ID 0 when performing a daily build
During the daily / nightly build, a lot of these errors were logged in the EventLog: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 0 Date: 2006-03-09 Time: 03:39:48 User: N/A Computer: TEAMSYSTEM Description: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Unable to open shim database version reg ...Show All
Visual Basic Shortcut key
I have an application in VB.NET 2005 and I would like to assign it a shortcut key to open it. As when you r-click on an executable. for example, if you r-click on iexplore.exe, you will see that there's a way to assign shortcut keys to start the application. How can you do that on VB.NET 2005 Thank you very much ...Show All
Windows Forms MDIChildren flickering very serious problem!!!
I am designing a MDI Application with the MIDChildren all in normall windowstate property. I create de (child)forms with a borderstyle.none, and make them a MDIChildren before I show them. This works OK, except that when the forms are created, they show up in the client area of the MDIForm, not maximized, with a caption, very shortly, before they are finaaly filling the client area. In other words, there is a short flicker when a new form is created and displayed. This process is most noticeable with a not-so-powerful PC (or is it a not-so-fast-display-card ). This phenomenon has been reported on several occasions in the newsgroups, but a c ...Show All
SQL Server average of selected members?
I got a measure caled [number of persons] Now i want another calculated meassure which shows the average number of persons within the selected time period. My timedimension is : [Date].[Period].[Month] Let's say i have jan - 1000, feb - 1200, mar - 1100, apr - 1000 So if i select "feb" and "mar" in the cube, my average should show 1150 if i select jan,feb,apr i want my average to show 1066,67 is this possible Assuming that you're using AS 2005, something like: Avg(Existing [Date].[Period].[Month].Members, [Measures].[number of persons]) ...Show All
.NET Development Soap Serializer does not support serializing Generic Types.
I tried to serialize an object contains list (List<>) of objects and I got this exception: Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List. It works fine with the BinaryFormatter. Yeah, Let me post more codes about the configuration. What I am doing here is, I have a remoting server start, also to have the capability for a client to event call back to server, we defined a delegate and an event wrapper as the book "Advanced remoting said". Here is the definition: public interface IFactory { IWorker getNewWorker(); } public del ...Show All
SQL Server Data Sources and Connection Managers
Greetings my SSIS friends This is probably a silly question but what exactly is the purpose of creating Data Sources when it is possible to set up individual connection managers Thanks for your help in advance. If you want to reuse connection managers across different packages, you can create data sources and choose new or existing data connections. ...Show All
Visual Studio Express Editions Excel Module
I have a module that I use in Excel 2000 alot. Can i just copy and paste this module in Visual Basic 2005 and use it or can expect alot of advanced programming to get it to work I'm still just a beginner so anything much past copy in paste will be a problem. Mike I should also add that this module converts feet and inches to decimal form for use in calculations, and then will also convert it back. My final goal is to use this module to create a feet/inches calculator. It totally depends. VBA code is VB6 and it will OFTEN work eactly as is. On the other hand if yo ...Show All
Windows Forms Does deployment server need to be Framework 2.0?
I think not but I'd better ask. The site that I publish to and that the users download from, does it have to have framework 2.0 installed Hi Dave, You don't need to have the framework installed on the deployment server. You may ned to configure the MIME types if you haven't alredy done so. Please check the note on MIME types on http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/ClickOnceVS05.asp Thanks, Sameer ...Show All
