caprio's Q&A profile
Visual Studio Team System Custom Checkin policy error
Hello, I made a custom checkin policy which just asks if you are sure to checkin (its a demo), i then place it in C:\test\ and register the policy under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Checkin Policies (With its path and dll name!). Then i go to the source control properties and add a new checkin policy, my policy shows up in the the dialog box, and executes the code in the public bool Edit( IPolicyEditArgs policyEditArgs){ ... } (Shows a dialog box.) Well so far so good... But... When i try to checkin or open the source control properties i get an Error message (Policy name is " ...Show All
SQL Server Merge 2 Databases?
My problem is this: I have a database file on a hard disk. I have to read that data and merge it into a database on a sql server. How can you merge The databases are set up the exact same way. The only difference in them is the data. Also, in the database file I have image names, I have to compare them to what is on the database on the sql server. Thanks Takes some logic, you could use a cursor since it's a small recordset and insert the records one by one using SCOPE_IDENTITY to determine the current ID for the child records. ...Show All
Visual C++ .Net Framework
Hi, I have an application which I did not originally create. I develop it using Visual Studio 2003 - Visual C++.net. When I click on the configuration manager for my solution I can see that this platform, for said application is "Win32". I didnt think this was the case since my work (code) is developed compiled and run correctly using visual studio.net. Then i created a completely new project, visual c++ and chose the option "Windows Forms Application". Once this had set itself up I checked the configuration manager and it also told me "Win 32". Then I added a new project but this time in C# call ...Show All
Visual Studio unused/unreferenced dlls in the \bin directory
When I build/compile my windows form app (Framework v2.0), dlls are put into the \bin directory that shouldn't be there. For example, I had a reference to the Interop.DTS.dll while testing execution of a DTS package from my app. I decided to not use that functionality and removed the refrence from my project, however the dll is still added to the \bin folder. I have a few dlls like this. Is there someplace else besides MyProject\References section that these dlls would be listed/attached/refrenced I checked all of my code and can't find a refrence/Import statement for any of the troublesome dlls. Thanks ...Show All
SQL Server Error installing SQL Server 2005 Express Manager
Hello everyone, My name is Pete and I'm new to this forum. Today, I installed Microsoft .Net Framework 2.0 and SQL Server 2005 Express June CTP. The following error pops up when I attempt to install SQL Server 2005 Express Manager: "The installer encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755" I've downloaded this package several times and reinstalled it with no such luck. Did anyone experience this same problem when you tried to install SQL Server Express Manager Thank you for your answers Peter Hi Dan, I was able to successfully ...Show All
Visual Studio Cannot uninstall Microsoft .NET Framework 2.00 Beta 2
I am trying to install Microsoft .NET Framework 2.00 RC1 but I have to uninstall Microsoft .NET Framework 2.00 Beta 2 first. I click on the link and obviously I go into Add/Remove programs. I go down to .Net 2.0 Beta but suprise there is no "remove" link to click on and no "change" button just says used and Rarely is underlined. Any ideas; Gerhard try using the uninstall tool: http://go.microsoft.com/fwlink/ LinkID=47598 ...Show All
.NET Development Serviced Component Question
Hope this is the right forum for this question! I've installed the .NET Pet Shop application on my W2K server but the Insert method of the OrderInsert component does not show up in the ComponentServices snap-in. I've declared it to be public, so what's up Any help would be greatly appreciated! It must be an instance method as well. And well ... try to remove OrderInsert compoment using CS administration utility and re-regsvcs and re-gac that component again. ...Show All
Visual C# DllImport and enumerations
I have a dll that was made in c that I would like to invoke from C#. Some of the parameters want enumeration values to be passed to them. These enums are defined within the c project. Is there anything I can do with this Hi, You may either declare the int parameter where enumerator parameter is used, or you can redeclare the enum in C# code. See below: suppose that there are following declarations in your C code: enum EWestern{good,bad,ugly}; TESTDLL_API int fnTestDll(EWestern e); Then in C# you have two options. Option 1: [DllImport("TestDll.dll", EntryPoint = "fnTestDll" ...Show All
Visual Studio Team System Breaking on exceptions immediately
When I am running my code with the dubugger I want the debugger to break immediately when an exception is thrown. I tried to follow the directions in http://msdn2.microsoft.com/en-us/library/d14azbfh.aspx which tells me to choose the Exception option in the debug menu BUT THERE IS NO SUCH OPTION!! Where did it go I have used it in the past (VS 2003). Help... Tools/Import Export Settings, Reset Settings (Don't backup if you dont want to), select general profile. You should then see the exception item on the debug menu ...Show All
SQL Server SMTP configuration for RS
Is there any complete docs for the SMTP seetings section in the reportserver.config file for setting SMTP and using RS to email reports You should add your servers hostname in the relaying-permissions in the properties of SMTP-Server. This has nothing to do with SQL-Server or Reporting Services, this is a SMTP-Server setting. ...Show All
Visual C# What's the C# version of DirectCast?
This is the VB version: Dim t As TextBox = DirectCast(FormView1.FindControl("DataTextBox"), TextBox) t.Text = "hello" How do I do the same thing in C# I don't see the DirectCast available in C#. TextBox t = (TextBox)o; t.Text = "hello"; Where o is a reference to the object you want to typecast. So for yours... TextBox t = (TextBox)FormView1.FindControl("DataTextBox"); t.Text = "hello"; ...Show All
.NET Development CAS: Set zone security without wizard
The commandline tool caspol.exe is what you should use, check MSDN for commandline options. Willy. <Daniel Rieck@discussions.microsoft.com > wrote in message news:a55674ed-3423-4dd3-9d69-d11ccf9d1c33@discussions.microsoft.com ... I have installed the Framework 2.0 Beta 2 on all of our workstations, but the ".NET 2.0 Configuration" wizard in Control Panel - Administration is missing. For my application to run properly, I need to give the Intranet zone full trust. How can I do that without the wizard ! The .NET 2.0 Configuration t ...Show All
Visual Studio Team System To those who use HarnessIt for unit testing
Hi, Can you please list some of the advantages and disadvantages of HarnessIt tool. Thanks Can't help you with that, but here's some prerelease documentation of the Visual Studio Test Tools that you might be interested in: http://msdn2.microsoft.com/library/ms182409(en-us,vs.80).aspx --- Eric Jarvi http://blogs.msdn.com/ejarvi ...Show All
Visual C++ _WIN64 error "No Target Architecture"
Hi All, Using _WIN64 as compilation flag for my x64 bit application on Visual Studio 2005 beta 2 it gives me a fatal error saying.. D:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(324) : error C23 71: 'size_t' : redefinition; different basic types predefined C++ types (compiler internal)(19) : see declaration of 'size_ t' D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(79) : fatal error C1189: #error : "No Target Architecture" Upon further investigation found the following code line. ========================= #if defined (_WIN64) ...Show All
Windows Forms In VS2005, The Component Container does not have a reference to the Form
I am trying to create a custom control that inherits from BindingSource. I need a reference to the containing form of this new control. From the BindingSource, I can use the .Container property to get the ComponentContainer, but there is no property or method to get a reference to the form from there. Does anyone know how to get a reference to the form using Windows API Thanks, what about the control's ".Parent" property (to get the container control) or the ". FindForm() " method to get the containing form an example from MSDN 2005 by Microsoft: // This example uses the Parent property and the Find method ...Show All
