vtortola's Q&A profile
Visual Studio Automating opening of a Website in VS2005
Hi I like to automate a process of opening a website in VS2005. ie i want to automate the folowing manual action. File -> Open ->Website (location could be passed) How could i do It would be helpful if i could get reply ASAP. Thanks Natarajan Arumugam The following code worked as expected. VsWebSite.VSWebPackage webPkg = (VsWebSite.VSWebPackage)DTE.GetObject( "WebPackage" ); webPkg.OpenWebSite(path, VsWebSite.OpenWebsiteOptions.OpenWebsiteOption_None, false); Thanks Natarajan Arumugam. ...Show All
Visual Studio Team System Support for workitemtracking/v1.0/clientservice.asmx web service
There doesn't seem to be any documentation for this web serivce. I've managed to make some progress on it by capturing the HTTP traffic while Team Explorer is making queries and cramming that into a test app, but I've run up against a wall. When I make a call to the PageWorkItemsByIds method both the DataSet returned by the call and the DataSet passed as an out parameter come back empty: data = tfs.PageWorkitemsByIds(ids, columns.ToArray(), textColumns.ToArray(), System. DateTime .Now, false , entries, out ds); And yet if I look at the HTTP traffic I can see the DataSet gets returned from the call. It's not compressed, but the data is there. So how is it being returned What am I missing ...Show All
Windows Forms Custom Action does not run
I am setting up my first deployment project on VB.NET 2005, and I'm running into a problem with custom actions. I have a test custom action that puts up a msgbox. I added that to the Commit phase, built the solution, then ran the install. The custom action did not work. Somewhere I read that is a known bug, and you have to also add the same action to the Install phase, but that it is not active. So I tried that, still it does not run. Thinking maybe you cannot show anything to the user with custom actions, I took out the msgbox, and added a file append. Still nothing. The custom action project runs fine if I run it on it's own (outside of install). I have the custom action project in the current solution. A ...Show All
Visual Studio Team System HELP!After modify WSS,All developer Can't link to VSTSSERVER in IDE,and VSTS website can't open.
1--I wan't to add alert/notifications email, so I use sharepoint to manage vstsserver web , 2--now in manage virtual webpage ,list three website "default website, http://vstsserver:8080 , http://vstsserver proxy:8081", the version of vstsserver is no install, 3--I click "vstsserver" link , It tell me extend and create content database, I do that. 4--Then the vstsserver website create . 5--Then all developer can't use VSTS!!! 6--All developer can't use VS2005 IDE to link TFS. 7--When open Project Website , It tell "Http 404 error" 8--When add new Project , it tell "TF31001 error" It sounds like you let WSS (SharePoint) extend the TFS web site (the one on port 8080). This breaks all the ...Show All
SQL Server Not enough storage is available to complete this operation
I get this exception after awhile of browsing thru my application, i dunno what causes this because it never happens in the same place. I would like to know if anyone else is experiencing this situation and if there is a solution. SqlCeException Not enough storage is available to complete this operation. em System.Data.SqlServerCe.SqlCeConnection.ProcessResults() em System.Data.SqlServerCe.SqlCeConnection.Open() em System.Data.SqlServerCe.SqlCeConnection.Open() em System.Data.Common.DbDataAdapter.QuietOpen() em System.Data.Common.DbDataAdapter.FillInternal() em System.Data.Common.DbDataAdapter.Fill() em System.Data.Common.DbDataAdapter.Fill() I get the same message but it is not on my first connection to t ...Show All
Visual Studio Tools for Office Excel Edit Delete Disabled
I created an Excel Workbook project using Visual Studio and VSTO. This project uses the ListObject control bound to a DataTable to display and update data in SQL Server 2000 database. When deployed to the user's workstation, this application has an annoying habit of disabling the Delete item on the Edit menu, preventing the user from deleting columns, rows or cells. Actually this is more than annoying - it's a show stopper. Researching the problem online produced very little in the way of amswers. Are other people seeing this behavior I did find a reference in this forum article: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=309265&SiteID=1 which suggests deleting Application Data\Microsoft\Excel\Excel11.xlb. Thi ...Show All
Visual FoxPro appending to a grid
ok - this is kind of a weird question - is there a way to append to a grid in the background What I would like to do (if it's possible) is to still have functionality to my form while the program is taking the time to append. Does that make sense If so is that possible Forgive my inaccuracies - It's grabbing from an SQL Database and copying to a cursor which is bound to the grid. The basic reason why I need it is b/c when grabbing from larger databases, it's a stand still wait (sometimes up to 3-4 mins if the database is extremely large). I guess a more appropriate question would be how to grab asynchronously and display it like you had said The way it's running right now it waits till the entire thing is loaded and then displays... ...Show All
Visual C# custom attribute
Hi is it possible to write a custom attribute that accepts an array of objects as constructor parameter For example, I would like to have an attribute like: public class AuthenticationAttribute : SoapExtensionAttribute { // UserRights is a class containing various data regarding the // "rights" a user has to call methods in the system. private UserRights[] rights; public AuthenticationAttribute(UserRights[] rights) { this.rights = rights; } // ... + other methods for this soap extension attribute ... } But while this in itself will compile, I can't work out how to apply this attribute to methods in other classes.... For example, on the following method: [WebMethod] [Authenticatio ...Show All
Visual Studio Problems with Application.AddMessageFilter() & IMessageFilter in VS Addin
I’m attempting to hook the message queue with IMessageFilter from within a toolwindow in a VS addin, without success. I’m using Application.AddMessageFilter() to do so. This is in VS 2005. In general, my filter’s PreFilterMessage method is not executed. However, if I put a System.Windows.Forms.ToolStrip in the toolwindow, and push the dropdown button to show tools, PreFilterMessage gets called for each message, at least while the mouse is down. Taking a look at ToolStrip, I see that it adds and removes a message filter during this process, and sure enough when I inspect the filters list inside the ThreadContext, I see both my filter and the toolstrip’s filter. I have tried executing AddMessageFilter in various places; at t ...Show All
Visual Studio Tools for Office Outlook Addins VST2005
Will outlook add-ins developed using VSTO2005 work the same in Outlook 2007 Thanks, Hrishi It is very hard question and depends on what the add-in does. Consider, that Office 2007 UI has changed dramatically, so if you do have customized CommandBars you might want to read more about how the change to legacy CommandBars are reflected in new UI . Otherwise, the Outlook team has tried to maintain compatibility to the hight possible degree. So, it should work. ...Show All
SQL Server How can i determine the Queuing_order of a conversation?
Hi There Is there a DMV or something in the system that can tell me what the current queue message number is for a conversation. I would like to determine what the message queue_order number for a message is before or after i send the message, as i would like to log this information Thank You Order is guaranteed only within a dialog. Sending across multiple dialogs will result exactly in the behavior you observed, because the messages from various dialogs might be shuffled and get ahead of each other during transport. ...Show All
Visual C++ Global Hooks
Good day everybody!° Can anyone help me with global hooks I have a dll library in wich function is defined EXPORT LRESULT CALLBACK ShellHook( int nCode, WPARAM wParam, LPARAM lParam) { if( nCode==HSHELL_GETMINRECT){ TCHAR NameOfClass[255] = {0}; GetClassName(HWND(wParam), NameOfClass, 255); if (_tcsstr(NameOfClass, _T( "SALFRAME" )) != NULL){ MoveWindow(HWND(wParam), 200,200,200,200,1); } }; // Pass the message on to the next hook return CallNextHookEx(hook, nCode, wParam, lParam); }; In Dll`s header file this function is declared as #define EXPORT extern "C" __declspec ( dllexport ) EXPORT LRESULT CALLBACK ShellHook( int nCode, WPARAM wParam, LPARAM lParam) ...Show All
Visual Studio Team System permanent delete file from SCC
I want to know how to permanently delete a file from scc . We have created lots of team projects and files while learning vsts but we dont need them and it is taking space in SCC . as most of files are binaries which does not support differential storage so the useless amount of scc DB is 2GB . so I want to delete it permanently even it can never be recovered . can i do that It would be great if some one can give us pointers to reduce size of SCC DB. TFS 2008 allows destroying files now using the tf destroy command http://msdn2.microsoft.com/en-us/library/bb399141.aspx I was trying to destroy an unneeded folder which was previously deleted but it said it did not exist until I undeleted the folder and then ...Show All
.NET Development Get OUTPUT parameter value from Stored procedure in VB.NET
hello all, I am trying to get value of an output parameter from stored procedure. I am doing this for the first time. I am still not able to get the value that I set for the OUTPUT parameter in the stored procedure using IF condition. Here is my stored procedure: ALTER PROCEDURE dbo.InsertUser ( @UserName VARCHAR (50), @Password VARCHAR (50), @FirstName VARCHAR (50), @LastName VARCHAR (50), @City VARCHAR (50), @Province VARCHAR (50), @Country VARCHAR (50), @State VARCHAR (50), @ZipCode VARCHAR (50), @PhoneNo VARCHAR (50), @StreetNo VARCHAR (50), @DOB VARCHAR (50), @Emailadd VARCHAR (50), @WebSite VARCHAR (50), @Status BIT , @ActivateKey VARCHAR (50), @Level ...Show All
Windows Forms I am having a problem with setup projects.
I have a project in my workspace that I need to deploy to another computer. I created a setup project but when I go to build it, I get a "Could not find file 'C"\Test\test Setup\Test Setup.vdproj'." error. I press ok and try and save as, but I get the same error. It doesn't seem to want to create that file. I have another computer that also has VS2005 Team for Developers and I have created a simple hello world project and setup project for that and I had no issues. Is there some dll in my install that is currupted I'm not sure what to do. Thanks ...Show All
