bishoycom's Q&A profile
.NET Development Web.config and "The entry 'KEY' has already been added"
My connection string of my web app (.net 2.0) is in the web.config: <connectionStrings> <add name="KEY" connectionString="VALUE"/> </connectionStrings> Everything was working fine until i got this error message System.Configuration.ConfigurationErrorsException: The entry 'KEY' has already been added. (...path...\web.config line 14) To solve the problem, i added a <remove name="KEY"/> before the <add/>. My question is: The key isn't anywhere else in the project, except in the web.config. How can it be duplicated The KEY is "OGPCnString". >> are you using a connection object that maps to the configuration file, Didn't get the q ...Show All
Visual C++ Launch a process with shell() question - unmanged code
Hello, I need to start another app from an unmanaged code . WHen I use System() it pops up a console window which is very annoying - is there a way to do it *without* that happening (I need to start a regular exe file) Thank you Sol Hi, and thanks for the answer :) CreateProcess gives me a compiler error - is it avilable in unmanged envierment Whats the exact syntax than ...Show All
Visual Basic VB.NET & EMAIL
I am trying to figure out, for a friend, how to write a VB program that will launch multiple IE's and when those IE's launch fill in the appropriate login name and password for that site. Is there any way that this can be done couldn't he set up a forwarding option from each one of the sites to forward to a central address possibly use an anonymous email forwarding service if he is worried about links between the addys ...Show All
Windows Forms Software Upgrade with DB Changes
My desktop application uses an Access DB as data storage. What is the best way to release a new version of the software that have DB changes ...Show All
Software Development for Windows Vista Compile and run a .xoml
Hi, first of all, please excuse my english ^^ I'm having trouble wih compiling and running a workflow stored in a .xoml here is my code: ok I've found it I added this line in the constructor: AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve); and this method in the class: static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { if (inMemoryAssembly.FullName == args.Name) { return inMemoryAssembly; } else { return null; } } ...Show All
Software Development for Windows Vista selectable ";" char after meta tags should not be
*I'm using Vista rtM* I have lots of metadata in my files, particularly pictures. Two fields that always have something in are the Authour and Comments fields. Sometimes when downloading an image I would insert the URL into the authour for lack of available specifics: namely the authours name. Obviously URL's are not best placed in the Authour field, o I swap them round. The thing is every 'tag' has the ";" character after it, which is fine. But when I cut and paste data it cappys that over. Which is not good for a number of reasons like c&p the url into a brower and general annoyance. So what about that, I don't think that the ";" character should be selectable, a seperation method yes, but not selectable. Hi Wilbour, ...Show All
SQL Server Loggin userid from trigger using APP_NAME
Hi I have to implement table level loggin on a bunch of tables. The problem is that I also have to log the user that made the changes Obviously the right way would be to run everything tru stored procs - but that is not possible for me because there is a lot of existing functionality built already - some direct sql and a super large number of sprocs. So I wanted to go with a trigger based approach .However since the changes are being made by a web app SQL has no idea who the actual web application based user is. I originally tried to solve the problem by adding a LastUpdatedBy column to some of the tables and forcing the functions to update that too - so that the trigger can read that column but that has turned out to be v ...Show All
.NET Development Serializing an ArrayList and adding an attribute
For a platform independent communication I want to serialize an object from .NET, using C# and the XmlSerializer, and deserialize it by a C++ derserializer. The C++ deserializer needs additional information to identify the classes. This has been done by adding the attribute (1). public class EngineConfigDTO { [ XmlAttribute (DataType = "string" , AttributeName = "class" )] (1) public String _className; private ArrayList _cylinders = new ArrayList (); public EngineConfigDTO() { _className = this .GetType().ToString(); } [ XmlArrayItem ( typeof ( CylinderDTO ))] public ArrayList Cylinders { get { return _cylinders; } set { _cylinders = value ; } } } The ...Show All
SQL Server sql server management studio does not show correct fillfactor
env: sql 2005 sp1 I created an index with fillfactor say 90. Then from management studio -> object explorer, Databases -> dbname -> Tables -> tablename -> Indexes ->indexname, double click, select options, the correct fillfactor for the index is NOT shown. If I script the index, the fillfactor is correct. Is this a known problem already Thanks. likong Please file a defect report for this issue on http://connect.microsoft.com/SQLServer . Issues reported on the connect site go directly into our internal defect tracking system, so we won't lose any information. Also, issues reported by customers carry additional weight when we are prioritizing future work. Than ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Microsoft recommendation to solve the issue is: Rename MDIMON.DLL Remove OFFICE DOCUMENT IMAGING Restart Install OFFICE DOCUMENT IMAGING Restart I just change the repice: Rename MDIMON.DLL Remove ...Show All
Windows Forms How determine if control activated via mouse or keyboard?
It's important for some of my application controls to know whether they were activated by the mouse or keyboard. How can I determine this I thought that the EventArgs for the Enter event could tell me, but they don't. I thought of checking if the mouse was in the control.. but that doesn't mean the mouse was actually clicked. Then I thought that I could just trap the MouseClick, and flag this for subsequent Enter event, but no such luck. A mouse click causes the Enter event to fire FIRST as follows: <do the click> Enter Event Focus Event MouseDown Event MouseClick Event etc. By the time I catch the MouseClick event, the Enter event has already been processed. There must be some simple way to ...Show All
SQL Server CLR Trigger -> Send Insert/Update/Delete Message to Windows Service
Hi, I have an c# windows service, which is running on the same machine where my mssql server is installed. This service must be informed for each insert/update/delete event on one specific table. My idea was to create an CLR Trigger for this table which can communicate with this service via .NET remoting. But the problem is, that the system.runtime.remoting assembly is not integrated within the mssql clr enviroment => i can't use remoting. Are there any other idea's how can i solve this Best regards, Thomas Hi, what about using Query Notification HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Tools for Office Cannot Install VSTO 2005
Hi, I have been unable to install the Visual Studio Tools for Office 2005. When running the installer I get to the point where I am told I need to have office 2003 SP1 installed. I already have SP2 installed - according to the SP2 download site, SP2 contains SP1. What gives I am getting desperate and will have to try reinstalling the whole machine. Regards Have you installed the .Net framework before installing MS Office 2003 as this is the likely cause as the PIA's may not have fully installed. You dont say which Installer you are trying to run that error's is this the VSTORuntime. Regards ...Show All
SQL Server Domain group logins failing on SQL 2k5 workgroup
This question is regarding a brand new out-of-the-box SQL Server 2005 Workgroup Edition install. The old SQL Server 2000 server is working properly with regard to the issue we're having: We are using Windows Authentication, and have created SQL logins for about 40 different groups on our domain. We've given those logins the appropriate permissions on the databases they're supposed to be able to access. The SQL Server is not a domain controller, but is a member of the domain, and domain logins do work for Windows-login purposes on this box. The problem is that when users try to connect to the SQL server, they are denied access. An error 18456 is thrown, and logged in the Application event log stating "L ...Show All
Software Development for Windows Vista BS_SPLITBUTTON new style - no SDK sample
in the latest Windows SDK there is no sample in WinUI folder for BS_SPLITBUTTON (a new type of button in Vista) Are there any plans to add one ...Show All
