Shaun Bowe's Q&A profile
Visual Studio Team System Project Creation Problem: Unable to connect to the Windows SharePoint Services
After installing TFS Beta 3, everything seems ok. Can connect to it, manage it, etc. However I cannot create projects sucessfully. When I try to I get this (excerpt from log): Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: Unable to connect to the Windows SharePoint Services at TEAMSYS1 Exception Details: The Project Creation Wizard was not able to connect to the Windows SharePoint Services at TEAMSYS1. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to ...Show All
.NET Development VS 2005 RC1 problem with BackgroundWorker or threads in general?
Has anyone worked with RC1 and if so, have you encountered any problems with threading and BackgroundWorker specifically. We are seeing about a 10 second delay before the DoWork gets called. Also the painting of the forms is sluggish in general. We have installed this on several machines and have had the same problems on each. Thanks, Hello, Rico Mariani has a great CLR Performance blog available at: http://blogs.msdn.com/ricom/ He also links to a Performance Wiki at: http://channel9.msdn.com/wiki/default.aspx/Channel9.RicoM Those two resources should be helpful in narrowing down where the performance regression is ...Show All
Visual C# Parsing a string
Hello guys, i'm searching for an advice of how to parse a string. here is an example: --bla345"cool"but no-- And I need only the text double closed by ", which is 'cool'. My second question is about parsing multyline comments /* */. So if i have --bla bla /*nice thing */ alabala-- my target is get the 'nice thing' string away of the "sentence". Hope someone will find time to help me :) The first can be done with the Split() method of the string object: ...Show All
Visual Studio Tools for Office Revisions in Bookmarks
When I access a Microsoft.Office.Tools.Word.Bookmark object in my code I was hoping to use the Revisions property to get the revisions within only that bookmark. I seem to get all of the Revisions of the entire document. Is this the way it is supposed to work Bill Microsoft.Office.Tools.Word. Bookmark book; IEnumerator books = Controls.GetEnumerator(); while (books.MoveNext()) { if ( books.Current.GetType().ToString() == "Microsoft.Office.Tools.Word.Bookmark" ) book = (Microsoft.Office.Tools.Word. Bookmark )books.Current; else conti ...Show All
.NET Development Trouble passing webservice credentials between two servers
I have developed a webservice on one of our servers (SERVER1) on our LAN. From my workstation, I can use IE and successfully connect to .aspx pages on server1 that call up the webservice on server1. The code in the .aspx pages declares the credentials for the webservice so that it impersonates the user that is requesting the page: proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; That way, the webservice knows who the user is which is important to the application. I have another server (SERVER2) that has .aspx pages that calls up the webservice on server1 using the CredentialCache.DefaultCredentials method. It work ...Show All
Visual Studio Express Editions Printing multiple pages
Can someone please help me print out a directory listing to multiple pages Here is the basic code I have so far: Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim di As New DirectoryInfo(pathString) 'create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() 'get number of files in selected folder numfilesInt = fi.Length Dim printFont As New Font( "Arial" , 10) Dim lineHeightSingle As Single = printFont.GetHeigh ...Show All
Visual Studio 2008 (Pre-release) LINQ and SQL Server Permissions
Hi, I have one reservation about jumping into LINQ for an enterprise application: Security. It seems (and correct me if im wrong) that to be able to use DLinq to perform insert/updates on the database, you would have to allow the database user you connect as, to have insert/update permissions on the tables in the database. This is not considered good practise at the company I work for, where we only give the user execute permissions for stored procedures (Obviously to prevent attacks like SQL Injection). I know one way around this is to override the default insert/update actions in DLinq to use stored procedures, but this takes away th ...Show All
Visual Studio Really Frustrated With VS 2005
I posted earlier about the fact you cannot get a copy of VS 2005 Pro even though the "launch" was 11/7. I have a Windows app I built using the VS 2005 Beta 2 that I need to update but since I downloaded the new Express editions (thinking they would work - wrong!) all the Beta 2 stuff is gone. OK, I went to my other system (Win XP SP2) and figured I'd install the VS 2005 Beta 2 there and use that until someone decides to "really" release VS 2005 Pro. No Joy. The install completed saying that it couldn't install all componets - it listed some like J# (which I never use) as failed installs. I deided to do a Repair/Reinstall - that al ...Show All
Visual Basic Problem with Me.close
Hi, I'm just moving from VB6 and have a big problem with the Me.close() function. Here is my example : The default start form is a splash screen ; name it Splash.vb which as the same function than the Microsoft Word one, for example. After a few seconds, I want to close it and load the main form, just name it Choices.vb . The problem is, when I put the Me.close() function in the Splash.vb form, it just closes the program. Of course, I have put the Choices.show just before Me.close ; so I see briefly the main form, the the program closes. To bypass this problem temporally, I changed the Me.close by Me.hide, but this is not a good solution of ...Show All
Visual C# SaveFileDialog
Ok. I am using a SaveFileDialog object. What I would like to know is how to save a certain file from a location. For example..maybe a file from my website. http://www.intelvision.net/ebook/hello.txt. Hi, Yes, cgraus is right. You can't do that with SaveFileDialog. You should take a look in the WebClient.DownloadFile method to be able to download files over the internet. cheers, Paul June A. Domag ...Show All
Visual Studio Express Editions Visual Basic Woes - Debugging Error?
Visual Basic - Got it installed correctly... On Run (F5) I get an error that reads... "Error while trying to run project: Unable to start debugging. The binding handle is invalid" I'm able to run a straight build though... Mind you... I never had these issues with the Betas... Edit: Found the fix... My Teminal Services were turned off. Turning them on fixed it. Not sure why this didn't show up on the Betas though... Odd. ...Show All
Visual C++ Event "Onclick" defined runtime
"Hello world", i'm developing an application which creates runtimes X CStatic objects, During the for loop i inserted this code, and it works: int IdEntry = 2500; for (BYTE i=0;.......;i++) { StaticLabels[ i ].Create("...", WS_VISIBLE|SS_CENTER, CRect(...),this,IdEntry++); ................ .................................. } StaticLabels[0] is a vector of CStatic controls example: & ...Show All
Smart Device Development Deploying a .net2/sqlce app
Hi! note: new in mobile development but experienced .net developer Can you give me a guidance on what do I need to install in a wm2003 device to deplory a .net 2.0 app which also uses sqlce 2005 Are some specific dll's enough I would like to create a complete CAB with all the necessary files so that end-user can easilly install/uninstall the application. Unfortunately, you can not do that. License does not allow you to break NETCF/SQL Mobile CABs apart and you can not have CAB in a CAB as only one instance of CAB installer is allowed. You can install SQL Mobile, NETCF and your application CABs one by one via AS: http://msdn.mi ...Show All
Windows Forms Object reference not set to an instance of an object
When im adding af webform VS2005 Beta 2 give me the following error: Object reference not set to an instance of an object When im not checking code behind file it works fine It have worked fine for about 2 months but suddenly i get this error I've also noticed this. I'm wondering if the timing of this relative to the full release of VS2005 is purely coincidental or if they've done something crafty to make parts of the beta stop working. I can still add other items (eg sitemap or XSL file) but not webforms, master pages and several others. ...Show All
Software Development for Windows Vista Recording voice in Pocket PC
How to record Voice using compact framework and how can i perform the operation like start and stop in the middle of the play in compact framework (Pocket Pc) using C# Hi, This forum is for questions about developing applications on laptops and Tablet PC's that are running Windows Vista. You may wish to post your query to one of the Pocket PC forums: http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=11&SiteID=1 Thanks, David ...Show All
