evoltix's Q&A profile
Visual C# How can I know if the Microsoft Media Player 10 has been installed in user's PC? thanks!
How can I know if the Microsoft Media Player 10 has been installed in user's PC thanks! Player.versionInfo <CLICK THERE ...Show All
SQL Server Self refrencing tree hierarchies and CASCADE actions
I've already filed a bug on this but it hasn't been picked up yet, so I'd like to get at least some discussion and feedback. I mean doesn't anyone think this is something usefull to have quote me: I've had a possibility to see SQLServer 2005 on a MS developer's PC and I made him try to create a table that can't be created with MSSql2000. As this kind of tree rappresentation (I think it's called adjacency list) is the most common way in Operations Research (many uses: networking, optimisations etc.) I think the DB engine should be able to support them. I don't pretend I understand why it may cause problems but it's a valid requirement. Stra ...Show All
Windows Forms Where is sqlexpr32.exe?
I have built a C# application that I'd like to distribute on CD with all prerequisites included on the CD so that the end user doesn't have to download any of the redistributables. They include .NET framework 2.0, Windows Installer 3.1, and SQL Server 2005 Express Edition. When I initially tried to publish with the "Download prerequisites from the same location as my application" setting, I was presented with errors such as: Error 5 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'SqlExpress\sqlexpr32.exe' in item 'SQL Server 2005 Express Edition' can not be located on disk. ...Show All
Visual Studio Tools for Office Excel SaveAs() method
I'm having trouble saving a workbook. I show a SaveFileDialog, the user specified where he wants to save the file, and where. When the user clicks on Save button, I say SaveAs... and do something else with the file (after the file is saved). Anyway, that's what it should do. My code for saving is this: this.SaveAs(fileName, Excel.XlFileFormat.xlXMLSpreadsheet, missing, missing, false, false, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange, missing, false, missing, missing, true); It simply doesn't save the xls file. It doesn't throw any exception, but the file is not at the destination path. Does anybody have any idea why ...Show All
Visual Studio Signing Assemblies with InternalsVisibleTo
I have a number of assemblies that use the InternalsVisibleTo attribute. For example: MyProject\AssemblyInfo.cs [assembly: InternalsVisibleTo("MyServices")] When I try to sign the MyProject assembly, I get an error: error CS1726: Friend assembly reference MyServices' is invalid. Strong-name signed assemblies must specify a public key token in their InternalsVisibleTo declarations." So, I add the PublicKeyToken value to the assembly name: MyProject\AssemblyInfo.cs [assembly: InternalsVisibleTo("MyServices, PublicKeyToken=aaabbbcccdddeee")] This allows MyP ...Show All
SQL Server SSIS datatypes issue.
Dear all, I’ve made a SSIS package which take a sql statement and carry on to the .xls file but when I launch that package appears these errors: Error at Data Flow Task [Excel Destination [31]]: Column "descripcion" cannot convert between unicode and non-unicode string data types. (Microsoft.DataTransformationServices.VsIntegration) Source table have the following structure: CREATE TABLE [dbo].[SIN_Siniestro] ( [Siniestro] [numeric](9, 0) NOT NULL , [Descripcion] [varchar] (1000) NULL , [FAlta] [datetime] NOT NULL , [Estado] [tinyint] NOT NULL , [FModif] [datetime] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIM ...Show All
Visual Studio Team System Certified for Team System
I just wonder if microsoft going to have another type of ceritification for team system, and any training available. Best Regards, yes, we will be releasing our certification strategy on Nov 7th at the teamsystem site. We will have full training and exams roled out after this. There will be a number of new changes, which will make it easier to be certified as different roles and disciplines. ...Show All
Visual Studio Team System Files Excluded
Hi all, I'm triying to do a list of files that must never be under version control, files like .csproj (.vbproj) and all that contain user settings in a solution or in a project. Also, I would like to kwon if there are any way to exclude it in the verson control configuration. Any help will be apreciated, thanks. Please be aware that .csproj and .vbproj files SHOULD be under version control. Those project files contain the common definition of what your project is (what files are in it, its name and common build settings, etc). It is the .csproj.user and .vbproj.user files that should never be che ...Show All
Visual Studio Team System "Unexpected token was encountered" error after schema import
Greetings, After importing a schema from a SQL Server 2000 database to a project targetting SQL Server 2000 the parsing engine seems to have some problems with specific constructs... IF dbo.fnIsBillPullError() = 1 "Unexpected token was encountered" error being generated for User defined Functions. RAISERROR ( '%s (%d)' , @Severity, 1, @sMsg, @iErr) "Unexpected token was encountered" error being generated for some RAISERROR calls. ALSO if an error is detected relating to a UDF then some stored procedures are showing "Unexpected token was encountered" errors relating to the END part of a B ...Show All
SQL Server Load a SSIS package via Web Service: The package failed to load due to error 0xC0011008 "Error loading from XML.WHAT IS THAT?
Hello, I have a big problem and i'm not able to find any hint on the Network. I have a window2000 pc, VS2005,II5 and SQLServer 2005(dev edition) I created an SSIS Package (query to DB and the result is loaded into an Excel file) that works fine. I imported the dtsx file inside my "Stored Packages". I would like to load and run the package programmatically on a Remote Scenario using the web services. I created a solution with web service and web page that invoke the web service. When my code execute: Microsoft.SqlServer.Dts.Runtime.Application. LoadFromDtsServer(packagePath, "." , Nothing) I got ...Show All
Visual Studio Not able to install Visual Studio.NET
I got new laptop with Windows XP Home.In that .Net Frame work is already installed. I have tried to install the Visual Studio 2003, I get error you running different version already in your machine and Install fails. Please let me know what should do i have remove already installed .Net componets like framework,pre requisites Thanks Jayanth Hi, Certainly you can use a network drive to install it. Are you using a CD version of the installer If so try replacing the cd into the next disc if an error occurs about not finding the file. eg. while installing disc1 and an error that xxx.dll is not found, try inserting Disc2... When copying ...Show All
.NET Development Need Help With Resource Files
I have no problem using resources if I am doing everything from withing Visual Studio. However, if I am compiling my resource files (.txt) separately, how should I name them My situation: I have a module called Messages.cs which contains the following: using System; using System.Resources; namespace G { public class M { static M() { System.Diagnostics.Debug.WriteLine("M constructor runs..."); RM = new ResourceManager(typeof(M)); M101 = RM.GetString("M101"); } static ResourceManager RM; public static string M101 = ""; } } There is a Messages.resx (I can't rememb ...Show All
Visual Studio VS2003 ->VS2005 Addin not adding Macros
I've got a Visual Studio Addin that adds macros to the user's environment. It worked fine in VS2003 but is broke in VS2005. I get an exception saying "Item can not be added to a project when multiple or no items are selected in the Solution Explorer." It seems the AddExistingItem method no longer works for adding Macros. Below is some sample code that throws an exception on the last line: private DTE2 _applicationObject; _applicationObject.Windows.Item(Constants.vsWindowKindMacroExplorer).Activate(); UIHierarchy tree = (UIHierarchy)_applicationObject.ActiveWindow.Object; tree.GetItem("Macros").Select(vsUISelectionTyp ...Show All
SQL Server Problems with SQL 2005 Export Wizard
I am trying to transfer data from SQL Express to SQL Server 2005. The data is from Paypal Commerce Starter Kit from ASP.NET site. I have tried several options (Optimize for many tables, Run in Transaction). However the data is not exported. This is the error I am getting: TITLE: Operation stopped... ------------------------------ The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails. --------------- ...Show All
.NET Development How to get local directory of a web service
I swear MSDN gets a little more useless all the time, as I've searched the .NET documentation to no avail on this one. I've created a web service, and I need to get the local path to the webservice directory. For instance, my webservice is located at the usual C:\Inetpub\wwwroot\MyWebService. I just need to get this string dynamically (without hard-coding it) so I can save off some files there at runtime. I tried Assembly.GetExecutingAssembly().CodeBase, but that gives me the "Temporary ASP.NET Files" directory that my assembly gets copied off to. Thanks, AJ I know that in W32 you can use Ge ...Show All
