peppereyes's Q&A profile
.NET Development AppDomain.Load
Hi! I have some problems with loading assemblies in a new AppDomain. When I invoke myAppDomain.Load(string) I get the following exception: File or assembly name ...dll, or one of its dependencies, was not found. I have tried loading an assembly that does not depend on any assemblies other than those referenced by console applications. I have googled a lot, but have not found any magic line of code that fixes this. This is roughly what I do: Evidence currentEvidence = AppDomain.CurrentDomain.Evidence; Evidence newEvidence = new Evidence(currentEvidence);; AppDomainSetup domainSetup = new AppDomainSetup(); AppDomain newDomain = null ...Show All
Visual Studio Tools for Office How to open an Infopath form from Outlook VSTO2005 add-in.
I can open my form with Process.Start("Iexplore.exe", ls_Filename), but cannot Process.Start("infopath.exe", ls_Filename) if ls_filename is a long file name with spaces in it. Infopath startst, but gives a file not found error with the name up to the first space. Any help Is there a better way to start Infopath from an Outlook VSTO2005 add-in Can I inclide the Infopath namespace somehow Filenames with spaces need to be enclosed in quotation marks when passes to the command line. The second parameter that you pass to the Process.Start must have the filename enclosed in "". I believe that thi ...Show All
Visual Studio Team System Source Control Disabled
I've been configuring (well trying to) security. somehow I've managed to disable the Source Control menu option under the Team project settings menu accress all projects. What have I done Sorry for the delay. I am still having this issue. I tried to replicate on another project, and having files checked out does not seem to be my problem. I'm still unable to change the options for one of my projects. ...Show All
Windows Forms Question on DataTable return types
Hello, I have a DataTable called dtblPasswords. I access and use the "password" value like so: arrUsers = dtblPasswords.Select( "name='" + strUsername + "'" ); if ( arrUsers.Length > 0 ) { if ( arrUsers[0] ["password"] == strPassword ) return true; else & ...Show All
Windows Forms Data Grid View with Databinding
Hi, I'm having a problem with Data Grid view control. Its is bind to a sql server 2005 table and it is displaying data. The problem i have is that I can't manage to capture that data and copy it into excel file. If someon knows how to capture it so that i can copy it into an Excel file. P.S I have one butoon which is select all, I want it to select all rows and then when i place copy it should export to Excel. Any specific property. Thanks Supes I want to give the user the option to either select all by clicking a button or select any no of rows and then the rows data should be transfered to an excel file, click an ...Show All
SQL Server Aggregation Design Wizard hangs after Count
After clicking the Count button in this wizard, the counts are entered, but the Next button remains greyed out. This started to happen recently on a small development database. Not sure what development changes caused the wizard to stop working. The wizard still works fine on an AdventureWorks database on the same instance of AS2005. Any comments/advice appreciated. Thank you Aggregation Design Wizard needs to obtain estimated counts of members in a dimensions. For that it will try to connect to relational database and issue query to obtain counts. If database is not available or it takes long time ...Show All
Visual Basic Reporting Visual Basic Express
Hey everyone, DOes anyone know or is it even possible to just produce a very simple report in VB Express 2005 i.e. a letter with an address on with info taken from a form, which can then be printed. Surely this must be bread and butter programming Hope you can help Hi, Sadly, VB Express doesn't include any reporting tool. But you can use third party products to display your report. One example of this is Excel. You can use excel's API's or PIA's to throw your data and format it to enable the user to print it. Its not as elegant as crystal reports, but still, you can produce a report... cheers, Paul June A. ...Show All
Visual Studio Integrating validation information within XML
I am designing a client tool, similar to Microsoft's Security Baseline Analyzer, that will validate the parameters in the configuration files of services my team deploys. The tool will prompt the user for a number of questions. These questions are displayed on the tool's UI by reading off an XML question file. This has been done for scalability. Validation begins after getting the user's responses. My initial design involved hardcoding which validation parameters to check, which sub-routines to call, etc. in the tool itself. Not too scalable though and tedious when newly added parameters need to be validated. Is there some way I c ...Show All
Visual Basic image conversion component..
hi ppl.. well i m developing a wallpaper changer.. and i am not to expert to write a code to convert a .jpeg or .jpg file to a .bmp file.. while the bit depth should remain 24 bits.. like windows does.. i have searched a function in vb6 ,but it isn't there or any winapi function that i can call.. as i am a student i can not buy anyone's properietery component also.. all u guyz are proper developers .. it would be really nice if u guyz can give me a site from which i can freely download them.. plzz help me. ashish I know the bitmap object allows you to save the file, i'm not sure it if retains the color depth however. You would have to ...Show All
.NET Development SQL no connect
I can look in server explorer and see my Server along with the database i am wanting to use but when i run the program it will not connect and tell me i do not have sql. I am trying to run one of the quick start samples. Public Class frmMain Inherits Form ' AssignsData will hold order information that is returned from ' SQL Server. Protected AssignsData As New DataSet ' Used to reference the table containing product information in ' AssignsData. Protected Const Assigns_TABLE_NAME As String = "Assigns" Protected Const SQL_CONNECTION_STRING As String = _ "Server=lo ...Show All
Visual Studio Express Editions Can't Download .NET Framework 2 and VB Express
I've downloaded the setup file and can run it. It's reached the point where it says it is downloading 60MB of stuff comprising .NET Framework 2.0 and VB 2005 Express Edition but it just sits there with a transfer rate of 0KB/sec. Went to the troubleshooting guide and tried a few things that did not work (the BITS stuff which required Genuine Window checking which did not work - says it is no longer supported or something like that - after downloading the GenuineCheck.exe). Oh yes, I've tried rebooting the PC and tried running setup again at least 6 times without success. I'm feeling lost and a bit disillusioned by the initial " ...Show All
SQL Server “AcquireConnection method call to the OLEDB Connection Manager for SQL Server failed” Error
I have an SSIS package which takes input from Flat file and transfer the data to SQL Server using OLEDB Destination Data Flow Item. The OLEDB Connection Manager used for the destination is configured to use SQL Server Authentication for the user ‘sa’. The package works fine without enabling the configurations. But when I enable package configuration and save the configuration of the various connection managers in an XML configuration file and then run the package it gives the following error in the validation phase: [OLE DB Destination [21]] Error: The AcquireConnection method call to the connection manager "<Connection Mana ...Show All
Visual Studio 2008 (Pre-release) Hyperlink within a TextBlock?
Hi again folks, It used to be you would use RepositionWithContent() -- that method went away with the PDC CTP. So, I'm feeling mighty dumb here (although the sparse documentation on this might be contributing to that feeling...) -- how on earth can I shove a hyperlink within a TextBlock now (and is that even the right way to approach it anymore ) Thanks in advance, John I'm still learning this stuff - can you give a short example of what you used to do, and what it accomplished What I know so far is to do this: <TextBlock> Click <Hyperlink NavigateU ...Show All
Visual Studio Team System Invalid system time
Hi! I have TFS beta 3 refresh installed on a VMWare server. Today the system time was set to the year 1999, probably due to some VMWare problem. After this happend, I cannot access the work items any more. Team Explorer gives me this message: "TF26198: The work item does not exist, or you do not have permission to access it." I can add new items that I can access, but the old ones are gone. If I try to access the work items a couple of times devenv.exe crashes with this exception: "Microsoft.TeamFoundation.WorkItemTracking.Client.DeniedOrNotExistException". How can I get my work items back It is a re ...Show All
Windows Forms Binding custom business object in a dataset to datagridview
Hi, I'm having a problem with a datagridview. I have a custom business object as following: public class Employee { private string m_szName; private int m_nAge; public string Name { get{return m_szName;} set{m_szName = value;} } public int Age { get{return m_nAge;} set{m_nAge = value} } } I also have a dataset where it's only datatable's 3 columns are of type 'Employee'. When I bind this dataset to a datagridview, datagridview is shown with word 'Namespace.Employee' in datagridtextboxcell. I want to display 'employee' class's name and age in each cell of the datagridview so instead just binding the dataset plainly ...Show All
