Eric D.'s Q&A profile
Visual Studio Team System Cannot access Documents in Team Explorer when not logged on as TFSSETUP
I have the Beta 3 Refresh of TFS installed. I logged in as TFSSETUP and created a new Team Project (AdventureWorks). In addition, I added my personal id to the admin groups in the Team Foundation Server Security Group and Windows SharePoint Services Role. In the server/reports server, I added BUILTIN\Users to the Properties\Security (this was not enabled by default and thus everyone other than server administrators received security errors for the project portal web parts... which was not well documented, btw) When I connect in Team Explorer as TFSSETUP and access the Adventureworks Team Project, everything is fine. However, when I log in ...Show All
.NET Development WSE question
Hi, I was using test certificate with WSE 3.0. Since test certificate was signed with Root Agency so I get warning dialog when I try to access web service from IE. My web service is hosted under IIS and I am using SSL( Using test certificate). Through code I can by pass this warning by using a class ServicePointManager. But if I have to use client certificate how can I tell the server to ignore this warning. (Client certificate for client authentication which I can set in IIS that client has to submit the certificate which I can add in the proxy ClientCertificates collection) Thanks This is just for testing only. In real world th ...Show All
Visual Studio Express Editions Installation problem with 2.0 Beta
I had previous .Net Framework 2.0 beta 1 installed and followed instruction of beta 2 installation from http://lab.msdn.microsoft.com/vs2005/uninstall/ But, I keep getting error message Microsoft .NET Framework 2.0 Beta 2 Setup has stopped because item listed above could not be downloaded And I followed trouble shooting from instruction below. Then I still get same problem. Any idea Eddie Hello Eddie, Try the manual un-installation instructions found here: http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx ...I had the same kind of problems, followed these instructions, installed .Net2 Beta 2 and everything worked great a ...Show All
Smart Device Development Directory.Exists not reliable?
My code basically steps through a loop, creates directories if not already exist and saves files into the directories and the root path is "Storage Card", which is a shared folder set in the Pocket PC 2003 emulator the loop goes fine for a few rounds, directories and files are created and stored correctly; then fails at this point( the CreateDirectory call below ) if( ! Directory.Exists( dirPath ) ) { Directory.CreateDirectory( dirPath ); } and the fact is that dirPath already exists but somehow the check has given a wrong result and goes on teh execute the CreateDirectory method, which results in an IOExc ...Show All
.NET Development Removing a Relationship in a Microsoft Access Database
I am a C# developer, using a Microsoft Access Database for data storage. How can I remove a relationship between two tables from within my C# program You first need to determine where the relationship is in your code and what it's called. Then you can delete it like this: DataSet1 ds = new DataSet1 (); ds.Relations.RemoveAt(0); ... or ... ds.Relations.Remove( this .myDataRelation); I'm assuming you had the designer create a DataSet for you with all of the related tables, constraints, relationships and so forth Of so, finding the relation is easy: open up the DataSet in the IDE and fi ...Show All
Software Development for Windows Vista What is the difference in calling CoCreateInstance(CLSID) & CoCreateInstance() with five parameters?
Hi All, What is the difference in calling CoCreateInstance(CLSID) & STDAPI CoCreateInstance ( REFCLSID rclsid , LPUNKNOWN pUnkOuter , DWORD dwClsContext , REFIID riid , LPVOID* ppv ); Windows CE help says we should use CoCreateInstance()with 5 parameters instead of single param. Please explain. Thanks Kiran I assume the CoCreateInstance you are calling is associated with a smartpointer of some sort. Which would mean that at the bottom, it's calling the same api. ...Show All
Visual Basic Global Assembly Cach link is wrong
Hello, my problem ist, that I print Documents with Word. To Use Word I have to following Assembly importet in my Programm. C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\11.0.0.0__71e9bce111e9429c\ After Debugging my Programm the Link is set to D:\Programming\Projekt\bin\release\Microsoft.Office.Interop.Word.dll How can I set the Link back to the GAC When i open my Project on my Laptop an error occured, he tells my that the Version of D:\Programming\Projekt\bin\release\Microsoft.Office.Interop.Word.dll is not the Version who is installed on my laptop, how can i solve this problem. Hindin H ...Show All
Windows Forms Find/Replace in a datagrid in vb.net
I'm a new programmer and i'm writing a wizard to pull in files for end users to edit. I have successfully bound a dataset to a datagrid but would like to be able to give my end users the option to find/replace on columns in my datagrid. Does anyone know how i would go about doing this, or have any source code which might help ...Show All
Windows Forms Hot Key function for whole program
Hi all Are there any good examples for a hot key class. I would like to implement hot key functionallity for the whole application I am creating standard text when user presses ALT or CTRL + F-key. Any links / urls you know of Lars E Hi There are 2 ways that i've discovered, the easy way and the hard way! The easy way is using the Win32 API ... [DllImport("kernel32.dll")]public static extern IntPtr GlobalAddAtom(string lpString); // ATOM [DllImport("kernel32.dll")]public static extern IntPtr GlobalDeleteAtom(IntPtr nAtom); // ATOM [DllImport("user32.dll")]public static exter ...Show All
Visual C++ error LNK2019:unresolved external symbol
Hi guys!! I have a big, big problem. I'm using Visual C++ 2005 and i'm tryng to compile 2 projects one is a library .lib and in the other one I put my function Main: this is the code: Proj1 : .h #include <iostream> using namespace std; template<class T> class Test { friend ostream& operator<<(ostream&, Test&); template<typename T> friend ostream& operator << (ostream&, Test<T>&); }; and in .cpp : #include "TestMicro.h" template<typename T> ostream& operator<<(ostream& os, Test<T>& tt) { return os; } PROJ 2: Main function #include "TestMicro.h" int ...Show All
Visual Studio 2008 (Pre-release) Installation troubles
Hi, All! I've downloaded winfxsetup.exe that is supposed to install Indigo. The setup installed .NET 2.0 Beta 2 ( v2.0.50215 ), so far so good, Indigo installed also with no problem. The next item was Avalon Beta1 and WinFX Runtime Beta1. On this point setup failed Application event log shows interesting info Source: MsiInstaller Description: Product: Microsoft "Avalon" Beta 1 v6.0.4093.40928 -- You must install v2.0.50215 of the Common Language Runtime before installing Microsoft "Avalon" Beta 1. What is the problem here .NET v2.0.50215 is already installed... What I think is worth mentioning is that on my development m ...Show All
Visual Studio 2008 (Pre-release) Using custom base page in Browser app (February CTP)
Hi! I'm building a Browser app and would like all pages in my project to subclass my own implementation of Page (which is a subclass of System.Windows.Controls.Page). The only problem is that the class is partially defined in the "code behind" file of the XAML document, and partially in the .cs file generated by Visual Studio. If I specify my own base page as the base class of my page, the compiler gives me the folloing error: Partial declarations of 'WinFXXAMLBrowserApplication1.Page1' must not specify different base classes. How would one go about doing this Thanks for any help. ...Show All
.NET Development Cryptography custom sink
Hello! For my thesis i would like to contruct a custom sink wich encryptes my data. I tried with tcp, binary formatter and Rijndael as crypto algorithm.. but it doesn’t work. Here ist my encrypting code: public Stream Encrypt(Stream source) { try { RijndaelManaged myRijndael = new RijndaelManaged(); byte [] toEncrypt = new byte [( int )source.Length]; ICryptoTransform encryptor=myRijndael.CreateEncryptor(key,IV); &n ...Show All
Visual C# Asynchronous Method Calls - Whats the max?
I have a class that creates worker threads using Asnychronous Method Calls using an Array of Delegates each one is invoked by iterating through the array and calling BeginInvoke (have posted an excerpt below *not the actual code*). My question is what is the suggested maximum number of Asynchronous items to have working in the background at the same time. I know each is a new thread and by default there is a maximum of 25 threads available in the pool on a normal single processor workstations. I also know that when the maximum is reached the additional ones are serialized and put into a holding area (qued ) until another thread becomes avail ...Show All
SQL Server WebParts not found for Reporting Services
I created my first Webpart .aspx page in SharePoint 2003. I created a new Document Library and assigned my webpart page to that library. Now when I go to Document Libraries, click on that webpart, I get the page but I no longer see the buckets for the layout..nor do I see the Explorer to allow me to try to add webparts. How do I get to this screen again that allows you to drag and drop items into my page It's just a blank page with a header right now....whereas when I first created this webpart, it asked me for the layout then showed me the layout after...I just want to get back to this edit page for the layout and to add webparts again. ...Show All
