B-RETT's Q&A profile
SQL Server How to pass .net application's parameter to a TRIGGER?
How can i pass my .net application's Userid to the trigger I have a audit trail trigger on myTable. I dont know how to pass the userid (not the sql server user) to the trigger when a user delete a record from the application(.NET Application). The trigger saves the modifications on the table including the userid of one who does the changes. There is no way to send a value to a trigger directly other than in the inserted table by adding a column to the table. This is proably your best way to do it anyhow, to add the userid to the table of the person who last updated the row, then you will have it for the delete. There i ...Show All
.NET Development Keep getting Invalid Invalid SoapAction error no matter what....
Hi, I have a remote object exposed using a Http channel with Soap formatter, which publishes itself to the remoting system programmatically. The Http channel is configured in the application configuration file. [ WebServiceBinding(Name="NotificationBinding", Namespace="http://tempuri.org")] public class MyService : MarshalByRefObject { public MyService() : base() { } p ...Show All
Visual Studio Crystal Reports 9 .Net Server Setup
Can anyone assist Have been trying to deploy a website that uses crystal reports and am getting the apparently common error that keycodev2.dll is missing... Have tried all the fixes set out in the Business Objects and MS Visual Studio sites but all to no avail. Have just tried running the CR 9 .NET Server Setup on the web server and when prompted for the 19 digit licence code and being told that is not valid or had expired. The code i have starts AAP50 GS00000 and then another 7 digits. Does anyone know if this code is invalid for some reason - have just tried installing a trial version of VS 2003 and have got the same keycode. Many thanks f ...Show All
Smart Device Development Receiving SMS example
Hi all, Have anyone tried the Receiving SMS example from the MSDN library There seems to be a problem... It seems that I can deploy it to my PPC but an error of MissingMethodException at the function call to DllRegisterServer() will always occur. Need help urgently!!! Hi Vnewbie U asked for a converted app for VB but then said got tat exmple already, wer did u get it from can u pls help me... cz i even need the same in VB... Tanx in advance... ...Show All
Visual C# "unable to load dll" in IDE but fine to run
I have a UserControl which references a managed C++ assembly M, and M has PInvoke functions from unmanaged Dll U. All work fine in VS .Net 2003. In VS 2005, it can still run well, but when I open the Form Designer for a form containing that UserControl, it shows "Unable to load DLL U: The specified module could not be found." Those dlls are in the same directory, and the project can run without a problem. Just the form designer cannot find the Dll U. Any clue Hello qrli! I'm not completely sure that we both are experiencing the same problem, but I have a problem as well with the form d ...Show All
Visual Studio Team System Individual Website settings versus Default website settings / Websites not available
If you choose to import settings from all Websites and Create a New Web site endpoint per site, the LDC correctly creates endpoints for each web site. Problem: There are no settings available for the individual endpoints. I have to configure settings on the Default Website node in Settings and Constraints Editor (SCE), and this applies to ALL websites. Example: I want to set the AuthFlags for an individual website to NTLM. Currently, I can only do this on the Default Website in SCE. However, in IIS, I am able to configure the individual websites separately. Why the discrepancy between the LDC and the physic ...Show All
Visual C# Coading Standards
Hi I need some general project coading standards for c# and asp.net. pls help me. Thanks and Regards kumar m Have a look at the free tool that my team develops; FxCop . It uses rules to validate assemblies against the .NET Framework Design Guidelines . ...Show All
Visual Studio Tools for Office MS Word, XHTML, and Ordered Lists
We have developed an application for a customer that uses a Rich Text Editor control (XHTML) - and we have several users who want to copy and paste from MS Word. Most things come over without any issues - but ordered lists only seem to work up to 2 levels deep - for example: List Item – Level 1 First List Item – Level 2 Second List Item – Level 2 i. First List Item – Level 3 The first 2 levels are pasted with standard <ol> and <li> tags and the rest comes in with paragraph tags. My question is this - is there a way to force MS Word to produce ordered lists greater than ...Show All
Visual Basic Including data files in "Click Once" deployment
Hi all, I have an application that uses one of 9 different data files dependending on the application requirements at any given time. How do I include these files in the deployment file in the correct directory so the program can find them. Thanks Dick Hi David, I really , really appreciate this reply. I too am confused about why the data doesn't show up in the published output, I always thought it would until I tried it. I have nothing but time until I get an app I can publish to a web site that is being built. If you will email me at dcroose@comcast.net I will attach the entire application fol ...Show All
Visual C++ AddString() and InsertString() in CCombobox/CListbox
I'm using Visual Studio 2005 for an MFC application. AddString() and InsertString() do not work in both CListBox and CComboBox classes. With class members properly defined for DDX and the method correctly called within OnInitDialog() of a modal dialog, I contiuiously get a debug assertion. Tracing that assertion leads to a failure of IsWindow() call on the control handler somewhere within MFC. In release session, as well as in runtime, there's no assersion but the control appears empty (no strings added). If I use GetDlgItem() instead of variables' DDX, the assertion does not occur but there're still no lines added to the control. I ...Show All
Smart Device Development Smartphone and scrollable dialogs
Is there a way to programmatically scroll a Smartphone full-screen dialog (initialized with SHInitDialog) and set the focus to a control initially not in the visible portion of the dialog The purpose is to bring the user to the control that had the focus before screen rotation (dynamically switching from portrait to landscape). It must be possible, as this is thebehaviour of the standard Smartphone dialogs. According to CESpy, scrolled controls are moved outside the client area so I've been trying several combinations of DM_RESETSCROLL and MoveWindow, DeferWindowPos, SetWindowPos, etc. ...Show All
Visual C# Missing C# Templates
How many Templates should be installed with a new installation of VS 2005 It looks like we are missing them. I see there was a problem with this with C# Express Beta's. We have three different installations and none of the installed templates are the same. It is dependent upon what you installed. C# itself for projects has 4. Windows Application Windows Control Library Class Library Console Application For Windows-based projects I have the above plus Empty Project Web Control Library Web Service The last two will probably not be available if you didn't install the web de ...Show All
Visual Studio Team System Is Active Directory required for Dual-Server installations?
...or can you use Workgroup-based installations in this configuration AD is required for a dual-server configuration. While it is possible to construct workgroup service accounts that would allow the AT to access the DT using matching names/passwords, we do not recommend or test that deployment option. I think it is probably also true that the TFS administrative utility (tfsadminutil) options to manage service accounts would be broken in that setting. That would leave management of the distributed accounts and permissions (app pool, NTFS, DB security roles, ...) as a manual exercise for the admin. ...Show All
Visual C++ Problem using argv in main
Hello there, I am pretty new at this C/C++ I am writing a console program, and from what I read here, and around the internet is that the argv array in main() is supposed to hold any arguments entered on the command line... argv[0] is the name of the program, and argv[1] to argc is the arguments. So if I were to write a program that opened a file in binary mode. To run it I would type executable and then the file I want to open and operate on. example: C:// binaryopen binaryfile.bin binaryopen is the name of the program, argv[0] binaryfile.bin is the file being operated on, argv[1] at least that's what the internet ...Show All
.NET Development Enterprise Library 2006 Error when referenced from GAC
I get an error when trying to execute this code referencing Microsoft.Practices.EnterpriseLibrary.Data from the GAC, but it works if I reference the assembly locally from the bin directory: Database db = DatabaseFactory .CreateDatabase(); DbCommand dbCommand = db.GetStoredProcCommand( "storedproc" ); db.AddInParameter(dbCommand, "@ID" , DbType .Int32, "2" ); DataSet ds = db.ExecuteDataSet(dbCommand); The following is in my app.config file: < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > < ...Show All
