DennisV's Q&A profile
Visual Studio Express Editions Installation Error on project - Global Assembly Cache
I have a project which I have upgraded from VB 6.0. The project uses MS Word 2003 as an output generator. When I try to install the project on a computer that has MS Word 2003 installed, I get the following error: The application requires that assembly office Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first. The class through which I direct all my calls to Word has an Imports Microsoft.Office.Interop line to access Microsoft Office, and the Microsoft Word 11.0 Object Library (COM, Version 8.3) is included in the references. The program runs correctly in the development environment (development enviro ...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
Visual Basic Dll entry points..
sorry for asking a easy question.. can i call a dll function using ordinal or entry points.. if not what is there use.. Check out: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcreatingprototypesinmanagedcode.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconEntryPointObjectField.asp You should be able to specify the ordinal in the alias part of the function declaration by prepending a pound sign (#) (I haven't tried this myself) Another great source for p/invoke is declarations is http://www.pinvoke.net Best regards, Johan Stenberg ...Show All
Windows Forms Setting Datagridview Styles Dynamically
Hi, As part of my learning of VB express I am stuck at the moment on setting the datagridview styles dynamically. I can change the default formatting colours etc but what I would like to do is change the colour of a complete row based upon the value of a given cell within that row. I have in my datagridview a number of rows where one row has a cell with the value 10. I would like to paint this row's background red to highlight it from the rest. I have tried many ways of doing this but without the required result. I have used the .rowprepaint and .rowpostpaint events Any help would be very welcome # Re ...Show All
Visual Studio Team System Editing ProcessGuidance.XML
Hi, I downloaded the MSF Agile Beta and am looking at editing the associated Process Guidance outside of VSTS. I opened ProcessGuidance.xml in InfoPath and received an error about InfoPath being unable to locate the template.xsn file. I solved this by changing the href path to ".\template.xsn" using a text editor and then opened ProcessGuidance.xml in InfoPath again. Even without making any changes, if I try to save ProcessGuidance.xml, I get an error saying "The form contains validation errors". There appear to be a bunch of xsl files referenced that do not exist (WorkProductsMain.xsl, WorkItemsMain.xsl, for example). Have I broken somethi ...Show All
SQL Server SQL Connection error
Hi, I'm having some problems when i try to open a connection and execute any command on my data base. When i create the mdf file on my application directory, the message error is that de file is already in use by another process. If i leave the file on the original location, the error is that i don't have permission to access the file.... Please, help me... Tks. Hi Leonardo, It sounds like you already have an mdf file, so you don't need to create it, you need to attach it. As you've found, you also need to have the file in a location where the Server has permission. A good location for database files is in the Data director ...Show All
Visual Studio Add-In
I am trying to create an Add-In item in Tools menu of VS 2005. I have installed VS 2005 on Windows Server 2003 O/S. I created a very simple add-in projetc using extensibilty option and Add-In wizard in VS 2005. I have just added one MessageBox using Windows.Forms reference in Exe method of Connect.cs class.. I also created and added resuting xml files to Addin folder (for example, \Documents and Settings\All Users\My Documents\Visual Studio 2005\Addins) and Root project folder (for example, \My Documents\Visual Studio\Projects\MyAddin1) as well as *.dll in Project debug folder (for example, \My Do ...Show All
Visual C# Assertion Failed error from MonitorDocumentsService during project load
When loading a solution containing several projects (converted from VS2003) I get the following error message twice: Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue X at MonitorDocumentsService.OnBeforeDocumentWindowShow(UInt32 docCookie, Int32 fFirstShow, IVsWindowFrame pFrame) If I try to debug it just shows disassembly code and doesn't help. If I select Ignore, I can continue and things seem to be OK. Any ideas where to look Thanks! David Hi I have similar problem for VS2005 projects, when I try to view the code for a desi ...Show All
Windows Forms DataGridView Color Picker
Hi everyone, I've been struggling for the past 2 days to get this straight. I created a DataSet with a DataTable called "Customers". This DataTable has a few columns and one of them is named "Color" typeof(Color) (I want to use this Color later on to actually display the customer rows with the colors specified). I created a new ColorCell, ColorColumn (to host the ColorCell) and a ColorEditingControl (for edit mode). First attempt was to inherit this ColorCell from a DataGridTextBoxCell however the Value is a String type and cannot be converted to a Color type. So I thought I could trick this by hiding the old one with a new Color type like ...Show All
Visual Studio Express Editions How can I run a function as a different user?
Hello, I am making a small app and want to be able to perform some actions on a network drive based upon questions. I would like to be able to copy some files and folders, change the NTFS perms on them, and then open a specific text file, make some changes and save it. All of these things have NTFS permissions set for Administrator only. Since the application is to be ran by Non-Administrators I need to run the code with higher perms. I saw the impersonate command but the examples that I found were for asp.net and I didn't fully understand it. Below is a snippet of what I'm trying to run. ...Show All
Visual Studio Team System Error in VSTS Reports
Hi, When I click on "Reports/My Bugs" on a project's Sharepoint site, I get the following error. Can any one shed light on this Thanks. Server Error in '/ReportServer' Application. Gary, we're cutting this report; it's non-trivial for the report to determine who "my" refers to because of the security model we're using. You can build a work item query to do this. ...Show All
Visual Studio Express Editions Refresh the form
Hi I wrote a application dealing with intensive data processing - lots of loops and queries running behind the scene. The problem is the user form becomes blank after minimising and maximising, it seems i need to refresh the screen or form. Any one knows what I should do to deal with this problem Thanks Yuelin hi, Please use multithreading to carry out some tasks on your form. A separate thread can perform some time consuming operations. regards, nasha. ...Show All
Windows Forms Trying to scale a control
I am trying to scale a web browser control, but I am not seeing any result when I have the following code: myBrowser.Scale( New SizeF(1.5F, 1.5F)) Do I need to do this differently somehow ...Show All
SQL Server Remove sources from a transaction
Hello, I am attempting to run a (distributed) transaction in one of my data-flows. The data-flow loads data from a non-standard data source using a proprietary OLE DB Provider into SQL Server. When I run this I get these errors: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D008 "The requested isolation level is not valid or supported.". An OLE DB error has occurred. Error code: 0x8004D008. COM error object information is available. Source: "ProductionPPDM" error code: 0x8004D008 Description: "The SSIS Runtime has failed to enlist the OLE DB conne ...Show All
Windows Forms can anyone help me to getrid of this error....
hello i have made deployment for my windows application but when i make request for the my report i have got an error:cannot find keycodev2.dll or invalid keycode. note i have include my report in the deployment thank you for the help and for the time Try doing a search in your Visual Studio help for "Deploying Windows Applications with Cr ...Show All
