SourceControl_IC's Q&A profile
SQL Server Failure to run when using DTC
Does anyone hany any experience of using SSIS with MS DTC I have a package that runs successfully. When I switch it to using transactions (i.e. TransactionOption= Required ) it fails. I get the following messages in the log: -Starting distributed transaction for this container. -Failed to acquire connection " <connection-manager-name> ". Connection may not be configured correctly or you may not have the right permissions on this connection. -Aborting the current distributed transaction. So - it seems it is having trouble enlisting that connection manager in a distributed transaction. My connection manager p ...Show All
SQL Server Does anyone know of an easy way (read without going into the XML) of deleting a dataset?
Please see above In report designer, go to the data tab and in its toolbar click the icon with the red X (deletes the currently selected dataset). -- Robert ...Show All
Visual Studio Express Editions Supposed Virus on VB Express Download
When I try to download the install file, my virus scanner jumps in saying that it is a virus... Is this actually correct Many virus scanners respond to cab and msi files. Mine does all the time. This is a sign of a good scanner. That's about all. ...Show All
.NET Development Generic types and the property grid
Hi, I'm struggling with generic data types and the display of properties of that type in the property grid (C#, VS 2005). My requirement is to have certain properties which can either get a constant value at design time, or, alternatively, a "rule" assigned to them (basically a declarative expression) which will be evaluated at run-time and set the property value. However, I want to avoid creating appropriate rule-bearing types for every required base type (e.g. RuledBool, RuledInt, RuledString etc.) So I created a generic class RuledType<T> which holds a reference to the rule, along with a type conversion operator for the t ...Show All
Visual Studio 2008 (Pre-release) How WCF support generic ?
Hi, Does anybody know if I can uses generic with WCF ..or not I tried : [ ServiceContract ] public interface IHello { [ OperationContract ] IList <T> SayHello<T>() where T : IData1 , new (); } public interface IData1 { string Field1 { get ; set ; } } [ Serializable ] public class Data1 : IData1 { private string _field1; public Data1() : this ( "alex" ) { } public Data1( string field) { _field1 = field; } public string Field1 { get { return _field1; } set { _field1 = value ; } } } public class Hello : IHello { #region IHello Members public IList <T> ...Show All
SQL Server How to Deploy .mdf Files
Hi Guys, I have a problam. I wanna deploy my application that it has data.mdf file. When I install and test it I get this message: --------------------------- Microsoft SQL Server Login --------------------------- Connection failed: SQLState: '42000' SQL Server Error: 5133 [Microsoft][SQL Native Client][SQL Server]Directory lookup for the file "C:\Program Files\MyDic\Database\Data.mdf" failed with the operating system error 5(Access is denied.). Connection failed: SQLState: '42000' SQL Server Error: 1832 [Microsoft][SQL Native Client][SQL Server]Could not attach file 'C:\Program Files\MyDic\Database\Data.mdf' as database 'MyDic'. ...Show All
Visual Studio Some errors after installing a visual studio 2005 beta2
Hi, After installing a VS2005 Beta 2 I have a problem with "creating controlls from Toolbox". 1. Before an installation I completely removed all necessary components! 2. I've installed a VS2005 B2 3. I've installed a MS SQL 2005 B2 Developer Edition 4... 5. I've tried to reinstall all components ...!... In a project (not important wheather VB or VC# or ...) I can create only first control for example "Date Time Picker" - so I can save, compile and run !... but if I want to add next control (also Date Time Picker or Label and so on...) in my environment occurs an error : "Failed to create component: 'Label' System.IO.FileNotFoundException: Co ...Show All
Visual C# Using a C# dll in VB6
Hi, I would like to know if it is possible to use a dll that has been created in C#, in Visual Basic 6.0. If so it would be great if you could let me know how I can make this possible. Thanks & Regards, Frenz Yep! it's possible... You just have to create your C# class and compile it to a dll, then use regasm.exe for assembly registration and typelib generation... regasm YourAssembly.dll /tlb:YourAssembly.tlb This command makes the appropriate registry entries and generates a typelib (.tlb) from the .NET assembly so that it can be referenced from VB 6 and just use the referenced library just as y ...Show All
Visual Studio Express Editions Tiny app consumes lots of RAM
I just created a small app for my contacts and it uses a small database with one table and single Windows Form. IN the Vb IDE, all I did was a simple drag and drop from the data sources panel onto the form. I let the ide create the controls, on the form, to interact with the database. Other then the binding navigator, no other controls are used. No menus......nothing. I compiled and published the project and installed it on my pc and ran it. I was surprised when I looked in task manager and saw that it was consuming 29 megs of ram. That seems really high for an app so small. Especially when VB Express (as big as the app is) was shown as ...Show All
Visual C# Readonly attribute
How to remove the readonly attribute in a project code file display The more information you give in your question, the easier it is for people to answer it , so if you could be a little more specific If your problem is that you can't edit a file in Visual Studio because it says it's read-only, that's on the file level, so right click on the file in solution explorer, select 'Properties'. Under 'Full Path' in the properties window you'll see the path to the file. Open windows explorer and go to where the file is on disk, right-click on the file and select 'Properties'. Now make sure the 'Read-only' check ...Show All
Visual J# Swing plug-in in jsharp
Hello I am basically trying to run a java(sun) application in J#. It's a htmlparer wich gathers newslinks from various newspages and displays them on a single webpage. The application uses the javax.swing.text.html and javax.swing.text.html.parser packages to extract and handle html tags. What i have done so is to install the Supplemental UI Library plug-in wich i s ment to cover the swing-package. But when i import the javax.swing.text p ackage , the "html" package is not included there! Could anybody kindly tell me how i can get this spesific package, so i can b e able to include it in my J# program Thanks a lot! Hi Shahid, Ri ...Show All
Visual Studio Team System How can I make VS understand that a project is a test project?
I have a project that was not created as a test project. But it was running tests in a very unit test like way, so I added using Microsoft.VisualStudio.TestTools.UnitTesting; to each source file along with the apropos [Test*] attributes so that I could run the unit tests from VS. However, VS doesn't recognize the tests. If I choose Test.Windows.TestView, my tests are not showing up there. Is there a way to get VS to recognize these tests Thanks...Rick Hi Rick, There are two ways to solve the problem. 1. Locate your project file (e.g. .csproj or .vbproj) on the file system, open it using a te ...Show All
Visual Basic opening files
hi i installed visual basic 2005 express edition beta, but for some reason i can't open my files from school on it. another thing when i make programs how am i supposed to save them because they save but when i open them they won't run Hi, What version of VB Express (CTP build) is installed in your school and in your house Is there any error displaying upon opening the file cheers, Paul June A. Domag ...Show All
Windows Forms Anyway to stop SelectedIndexChanged from firing on form load?
Just wanted to know if there was a way to stop the SelectedIndexChanged event of my comboboxes from firing on form load. It screws with cbox driven textbox fields on load when they should start defaulted. Thanks in advance... private void Form1_Load(object sender, System.EventArgs e) { //Load data into combo boxes first PopulateComboBoxes(); //Now we can hookup e ...Show All
Visual C# ListViewItem checked status change
All I need to do is enable a few buttons whenever at least one item in my ListView is checked. I tried using ItemCheck event but it seems to execute my code before it actually changes the Checked property of the item I change. That might be just fine if it weren't that if I have a ListView with only one item in, and that item is checked, trying to uncheck it results in enabling of those buttons too, when I really want them to be disabled. Question is, what event and what kind of code do I need to exploit The ItemCheckEventArgs contains both the old and new check state values. Use the NewValue property ...Show All
