CSavage's Q&A profile
SQL Server Error connecting from classic ASP
I'm haveing some problems with using SQL Server in a classic ASP app. When trying to connect with the db I get the error: Microsoft SQL Native Client error '80004005' TCP Provider: No connection could be made because the target machine actively refused it. The Windows 2003 server runs both the SQL server 2005 express and IIS. Connectionstring: "Provider=SQLNCLI;Server=KSP;Database=KSB;UID=sa;PWD=;" I don't have a good answer for this one; it seems a bit like a permissions issue, you might want to check what user context your ASP app is running in and make sure that user has permis ...Show All
SQL Server SqlServer2005 can support merge replication with SqlCe2.0??
Hi guys, Correct me if I'm wrong. That's wat I was doing.. Try to perform a merge replication between the 2. But the following errors are wat I've got during the syncronization: Error Code: 80004005 Message : Run Minor Err.: 28557 Source : Microsoft SQL Server 2000 Windows CE Edition Err. Par. : ssce:database;password=mypassword;data source=Program Files\helloWorld\database.sdf; Error Code: 80040E14 Message : The OLE DB Execute method failed. The SQL statement is not valid. [,,,SQL statement,,] Minor Err.: 28560 Source : Microsoft SQL Server 2000 Windows CE Edition Error Code: 80040E14 Message : There was an error parsing the query. [Toke ...Show All
Visual Studio Team System Using validation rules to stop a web test
How would I trigger a yield break statement upon a validation rule failing I want to stop my test and prevent further requests from executing. Thanks From within your HandleNoOpenings event handler method, you can call another validation rule and conditionally do something based on whether it passed or failed like this: ValidationRuleFindText rule = new ValidationRuleFindText(); //set all the properties... rule.Validate(this, e); if(!e.IsValid) { this.Stop(); } I hope that helps. Josh ...Show All
Visual Studio Express Editions Installing VB 2005 Express Failed
Hi! I downloaded the setup file which is automatically run for installation. However, while on its way it prompts an error message which goes like this: vb_setup.ms_ could not be opened Pls. help. Thanks Have you tried the manual install procedure To do this you will download the ISO Image and install from there. Sometimes the web install loses the network connection and the install fails. ...Show All
Visual C++ _CRT_SECURE_NO_DEPRECATE has no effect
MSDN clearly states that if you define _CRT_SECURE_NO_DEPRECATE it "will disable deprecation warnings". I tried adding _CRT_SECURE_NO_DEPRECATE to the Preprocessor Definitions and #define _CRT_SECURE_NO_DEPRECATE to the code. In both cases I still get a C4996 warning from every single strcpy call. The only way to disable the warning, as far as I can tell, is to use #pragma warning (disable:4996) or add the warning to the C/C++ settings (Advanced > Disable Specific Warnings). But this will disable all deprecated warnings and I only want to disable insecure CRT warnings (str... functions). Is the MSDN documentation false or am I ...Show All
Visual Basic How does VB compare to C# part 2
I am sorry but my question was NOT answered at least not technically. But, what is clear is that there is a lot of strong feeling against VB's syntax that does not exist against C#. Several post indicated that they would not hire a VB programmer unless they programmed in C# syntax. I really find that disappointing. I thought the purpose of the framework having several syntaxes was to promote choice for the developer and make that choice seamless to the end user. But I am not certain MS is committed to that point. Several conferences that I have been too, the audiences has shouted down examples in VB and insisted they be presented in C ...Show All
Visual Studio Team System Different Source Control options when creating a project
If I create a TFS project with the wizard I get options to create (or not) the source control folder. However it seems that whichever option I choose I always get a source control folder , or at least source control turns up in the project explorer and the project shows up in the source control explorer. Am I missing something Is this a problem with the beta or is this expected behaviour Thanks, This bug has already been fixed post-beta3 and should be in the December CTP (and RTM) bits. Unfortunately, we always created the source control folder. ...Show All
Visual Studio Express Editions Help with an Array
I am trying to make an Array to hold 12 now every where I declareing it I get an Compiler Error C2697 http://msdn2.microsoft.com/en-us/library/zaee9xaz.aspx #pragma once #include "opt.h" #include "iostream" Using namespace bla bla namespace MyProject public __gc class plane : public System::Windows::Forms::Form { public : plane( void ) { InitializeComponent(); optObject = new opt; } protected : void Dispose(Boolean disposing) { if (disposing && components) { components->Dispose(); } __super ::Dispose(disposing); } private : opt *optObject; private : /// <summary> /// Required designer varia ...Show All
.NET Development WSE 3.0 Hands on Lab Security
Hi All, I was trying to implement the hands on lab security (WSE 3.0 ) on my system (Win XP SP2, VS2005 + .NET 2.0). I installed all the necessary certificates. At first run, it worked fine. But 10 min later it starts giving this error: "System.Net.Exception: The request Failed with HTTP status 401: Unauthorised access". I removed WSE 3.0 and and the lab and re-installed it again and still had the same problem. I looked on msdn and they recomended checking that windows integrated authentication is checked! and anonymous user is checked. this is sample of the code causing the error: When proxy.ViewInvoices is invoked it causes the e ...Show All
Architecture Windows Installer
Probabily this is wrong section, but i don't know how post it. I'm making a project installer project with windows installer 3.1. I'd like, at the end of installation, that the installer execute my application. Some one know how How exactly are you creating your installer With WiX Sadly I do not know much about creating installers other than what InstallShield Express provides (WiX is on the list to learn, it just hasn’t been achieved yet. From what I understand though, you’d need to add a custom action to your installer to carry out this task, something like this: <CustomAction Id='LaunchProduct' FileKey='Appl ...Show All
.NET Development Windows Service application handled in Service manager.
Hi Buddies, Can any one please help me to understand how Windows Service application is handled in Service manager Please help. Regards, Vinu.P.K Oh... Ritchie :) what I mean is, how " Windows service manager " detects and executes a .net Windows services installed using Installer also, working background(where the service is running) etc.. I read that, the Service Installer object writes information to registry on installation—specifically, to a sub key under the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services key. Can you please expla ...Show All
Visual Basic Make sure the application for the file type (.vb) is installed
I installed VS 2005 Beta 2 on a WinXP pro system (numerous times). It finally installed without erreors. It looks like it is basically working - I can create a new windows project and add items from the toolbox, edit the code etc. If I open an existing project (created on another box) things load properly but I cannot open any forms in designer view (I can open them in code view). When I attempt to open a form in design view I get the following error popup: ===================== There is no editor available for 'c:\....\myForm.vb'. Make sure the application for the file type (.vb) is installed. ==================== Any thought on how to cor ...Show All
Visual Basic Access an application in server by multi-users
I am a new VB.Net developer. I created a standalone desktop window-based application to query SQL server database and print them in crystal report. It is running well on desktop. My problem now is I want to put it on server of my company so that other users can easily access it without installing it on each PC. So I installed it on server and share the folder. On desktop, I allocated the shared folder of server and run it. But an error came saying: An unhandled exception of type "System.Security.SecruityException" occurred in ***.exe. I don't have any idea on how to deal with it. I appreciate if anyone can give m ...Show All
Windows Forms Problem Setting Control Width in FlowLayoutPanel
I've created a custom UserControl, WidgetFlowLayoutPanel, that inherits the FlowLayoutPanel. Its purpose is to contain one or more custom WidgetControl controls. When a WidgetControl is added to the WidgetFlowLayoutPanel, I want to set WidgetControl.Width to the ClientSize.Width of the WidgetFlowLayoutPanel. I've tried this two different ways, neither of which works: First, I did an override of OnControlAdded , and added... e.Control.Width = WidgetFlowLayoutPanel.ClientSize.Width ...right after the base call. When that failed, I tried adding the same line of code to a WidgetFlowLayoutPanel_ControlAdded event hand ...Show All
Visual Studio Tools for Office "Client" side access to cached data
I have created a Word Template (.dot) project. In the default ThisDocument class, i declare a cached dataset like so: <Microsoft.VisualStudio.Tools.Applications.Runtime.Cached()> _ Public docData As DataSet In a different project altogehter, i make a copy of the template file (to the same directory as the template), and i add data to this new template's dataset through a ServerDocument object. I have confirmed that this data is actually added, as I can read it from yet another little dummy-project that I made. (Also through a ServerDocument object). Question is: How do I read this cached data from .net code within my T ...Show All
