EHerb's Q&A profile
SQL Server Permission problem
I get the following error at times: The permissions granted to user 'PMS\rforkner' are insufficient for performing this operation. (rsAccessDenied) (Report Services SOAP Proxy Source) The user is me and I am the administrator and owner of the SQL Server 2005 database. SQL Server is running on Windows 2003 Server Enterprise SP1. How is it I don’t have permission to change a change a permission. For the past several days I have added users and set the permissions (in Report Server). What I had done was uncheck Browser for my account and that worked. When I tried to check Browser and OK is when I got the error. Any ideas, sugg ...Show All
Visual C# Word Automation -- what a bind!
Hi everyone, Before I go completely insane , can somebody please help me solve this single, simple problem: Using late binding, how on earth do I get hold of a single Section in a Word document I can get hold of the full Sections collection like this: object sections = theDocument.GetType().InvokeMember("Sections", BindingFlags.GetProperty, null, theDocument, null); ...but can I hell get at the individual Section objects that it contains. Surely it can't be that hard, but I've been stuck on this for days now! Any help or guidance would be greatly appreciated! Thanks in advance, -tegs ...Show All
Visual Studio MSBuild file for .Net 1.0, 1.1, 2.0, Compact Framework 1.0 & 2.0 and Mono
Greetings, Intro: I'm currently working in a library that has to target both .Net 2.0 and .Net Compact Framework 2.0. My initial approach was to have two projects for each assembly. The source code would be all the same, with #if's testing for the compact or the full framework. One of the projects would have all the files, and the other all the files from the first linked. As the number of source files and assemblies growed, this turned into problematic. At some time, I also wanted to test if my code worked in mono, even if it wasn't required. So I thought of using msbuild to customize my build. I started googling, and found msbuild files fr ...Show All
.NET Development P/Invoke - importing data
Dlls can export data as well as functions. However, it seems that P/Invoke does not allow one to import data, only functions. I ran across this trying to access a struct that was exported directly as a global const struct, not through a function. Is this an oversight or intentional design Karl Yvan wrote: I don't know of a work around, but easy enough to work around; either add a function to the DLL to return the data segments, or use the Windows API via P/Invoke to acquire the data segments. One does not always have control over a Dll. The second option will work on Windows only. Thanks ...Show All
Visual Basic running code on tab change
Hi All, i just need to know how i can run some code when a user changes tabs in a tab conntrol. Thanks, Mark I was just looking for the answer to this, and I believe the events you need to handle are the following four events: Deselecting Deselected Selecting Selected I found this discussed in the online documentation: http://msdn2.microsoft.com/en-us/library/system.windows.forms.tabcontrol.aspx Once I added a TabControl to my project and put a TextBox on each TabPage, I used this code: Private Sub TabControl1_Selecting( ByVal sender As Object , ByVa ...Show All
SQL Server DTC - Transaction context in use by another session
Hi I have a master package that executes a series of sub packages. The master package is run from a SQL Agent job. The packages are reading from and writing to two databases on the same instance of SQL Server 2005. If I set the Execute Package Tasks for the sub packages without any precedence constraints between them and set TransactionOption = Required at the master package level (and supported from there downwards) I get the following errors. The event log shows me: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction.". ...Show All
Windows Forms How to implement Datasource property on custom controls?
Im building a custom control called DataEntryControl and want to be able to setup a DataSource on property window, same way as DataGridView... Here are some parts of my code: Public Class DataEntryControl Private _DataSource As IListSource <Category("Data")> _ Public Property DataSource() As IListSource Get Return _DataSource End Get Set(ByVal value As IListSource) &nb ...Show All
Visual Studio 2008 (Pre-release) ServiceCredentials
using ( ServiceHost host = new ServiceHost ( typeof ( MyService )) ) { ServiceAuthorizationBehavior sa = host.Description.Behaviors.Find< ServiceAuthorizationBehavior >(); sa.PrincipalPermissionMode = PrincipalPermissionMode .Custom; sa.AuthorizationDomain = new AuthorizationDomain ( new IAuthorizationPolicy [] { new DevLeap.WSSecurity. DevLeapAuthorizationPolicy () }); ServiceCredentials original = host.Description.Behaviors.Remove< ServiceCredentials >(); host.Description.Behaviors.Add( new DevLeap.WSSecurity. DevLeapServiceCredentials (original, null )); host.Open(); Console .WriteLine( "Host listening ... ...Show All
Visual Studio Team System fxcop
Can anyone tell me if the api's used in fxcop are documented anywhere I want to interrogate a dll for a specific method - which I have done using the visitMethodCall, and then interrogate that method to give me back the variable calling the method and the method parameters, e.g. public void someMethod() { a.someothermethod(anobjectinstance, "abc"); } I would like to extract the following information from the above method body a the class type of 'a' anobjectinstance (the variable name) "abc" (which I can get by following the ExtractsArguementToMessageBoxShow example) Is this possible ...Show All
Smart Device Development How could i create a database application in VB 2005 for windows ce?
hello! i've been searching the internet for the answer to this question, but i didnt find any that is useful to me. i would also like to know everything that is connected with the database application im intending to write. thanks a lot. Hi, You can use the EDB class to create,copy and delete database. I hope the following links will help you. http://www.developer.com/net/cplus/article.php/3327171 http://msdn2.microsoft.com/en-us/library/ms173041(SQL.90).aspx ...Show All
Visual C# User Control functionality
hi Can any one clear up my mind when do you really need to add the usercontrol form to your project/solution, what exactly is its funtionality. pls show me few basic samples. When you only need a container, you should use Panel's. But when you want a full functional control that you can use in your whole project and even can be reused in other projects you need to create a UserControl. A Panel is only a contrianer for controls, nothing less, nothing more. You use this to dock some labels, comboboxes etc on your form. But when you build a LoginControl for example, that check usernames and passwords and does some login logic you cr ...Show All
Visual Studio Team System Continuous integration
I have been given the task of determining if the Team Build feature in Visual Studio Team System is able to perform the following tasks (compared to other tools used in previous projects i.e. CruiseControl.NET , NAnt , NDoc , FxCop , NCover and Vil ) : Build automation - performing a nightly build. (Obviously it can.) Unit tests - Running suite unit tests to after a successful build Code coverage analysis - Calculating code coverage by unit tests Conformance checking - Checking for coding standards Automated documentation generation - Documentation generated by NDoc If someone could i ...Show All
Visual Basic Save\Load values as text file
Hello In VB6, I was able to save and load values as text file, it saves them like this form: "V1","V2","V3" I was using this code: Dim A As String, B As String, Op Op = FreeFile A = "Value1": B = "Value2" Open "D:\File.txt" For Output As Op Write #Op, A, B Close Op How can I do it in VB2005 Thanks & Regards The following code will do the trick in VB Express/2005 making use of the My.Computer.FileSystem.WriteAllText method Dim A As String, B As String Dim Content as string =A & B My.Computer.FileSystem.WriteAll ...Show All
Visual C# How can I use the C code "#include "mysql.h"" in C# to connect to MySQL???? How to include the mysql library to C#
Hello, I know how to connect to mysql with c++ but I want to do the same with C#. my problem is that I don't know how to include the mysql library and API to csharp. Do you know how can tell the C# to use the command "#include "mysql.h"" or how can I connect to mysql with c#, but not with ODBC. If you don't want to use ODBC, you can download a native MySQL database provider for .NET. This page on mysql.com lists two of them. ...Show All
Windows Forms Bug in C# only in Windows 2003 .NET framework 2.0
Hello, I am encountering a bug, and I can't figure out what it is causing. I am catching all what I can, but still it exists. The funny is that it is only available on Windows 2003. Here is the output. Can someone help me finding/killing this bug Thanks. ESTAN See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentOutOfRangeException: InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index at System.Windows.Forms.ListView.GetItemState(Int32 index, Int32 mask) at System.Windows.Forms.ListV ...Show All
