Tag | MSDN Posts

Today I decided to upgrade from Office 2003 to Office 2007 (using my MSDN subscription). I used the DVD, signed onto the MSDN Web site, requested a Product Key and was off. Except... I had an invalid product key. I had just renewed my subscription at the beginning of the month, so I wasn't sure what to try next. I tried the MSDN Online Concierge. Fully expecting to not get an answer, I entered my question. Error message: "Please enter a subject or question in English." GREAT - I was typing in English. ...
Maybe I need to re-subscribe to MSDN magazine or something, it seems there are soooo many things you can learn about programming, there is never enough time.. If you spend all your time programming, you never have time to learn about new stuff. And even if you learn a ton, things seem to slip by... It seems everything most of us developers know is because we had to do something at sometime in the past and had to find a way to do it. If the ways and means we do things are the correct way, who knows.. ...

Come and get it here: Visual Studio 2008 Beta 2

Dates now avaialable for release:

SQL 2008, .Net 3.5, Visual Studio and Windows Server 2008 are now scheduled for a Feb 27 2008 release. Of couse RTM and MSDN availability may be before that :-)

Scott Guthrie earlier today announced the availability of Visual Studio 2008 (Codename Orcas) Beta 2 for download. The downloads available are separate installation disc image for each of VS 2008 editions (including Express), and a couple of more disc images for MSDN library and TFS; also, included separated VPC image for VSTS and TFS. Quote from the download homepage: Installation Disc Images If you prefer to install the software yourself, you can download separate disc images for the following ...
Nick Barclay did an interesting post recently, advocating learning MDX if you are going to be working with Performance Point Server. This is due to the fact that Performance Point builds SSAS cubes on the back end and SSAS which lives and breathes MDX. So the same advice really also extends to anyone using SSAS. You really need at least one MDX guru on your team - someone that can write MDX select statements, if you want to get the most out of SSAS. A couple of resources that Nick did not mention ...
So not only has Justice's little "Become a better developer in 6 months" garnered him the attention of Scott H., but he's now featured in one of the MSDN Canada podcasts (which you can get all the links from via Justice's site here). I thought I'd listen and offer my thoughts on the witty banter and intellectual exchange between John Bristowe and Justice Gray. Let's begin... I can picture Justice lying in bed, listening to John speak his intro over and over and over... "Oh yes John, tell me how wonderful ...
Most of the cases we use cursor, for loop like senarios, like calutating total order for an item and put the sum in a specific column, doing some work on particular table on basis of values of some other tables. Now, cursor is fine for smaller amount of data items, but it becomes really lousy , as the number of items start to grow. Here, i will discuss about a totally alternative to Cursor which is more faster and effective for working with huge number of data items. In my example , i will work with ...
Garbage collection is one of the most fundamental aspects of the .NET Common Language Runtime (CLR) and is available to all .NET programming languages. Unfortunately, it also seems to be one of the more difficult concepts to understand correctly, both how it works and how to use it. Understanding how the garbage collection system in .NET works is important, but it isn't as important as understanding how to use it correctly. Think about your car...we generally don't have intimate knowledge of how ...

Check out "A talk with James Kovacs on Agile Development", a great little webcast from MSDN Canada's community initiative.

You can watch it here.

D

I have seen posts like this floating around and then the other day I listened to Hanselminutes where Scott and Carl discussed the subject. I figured my enthusiasm has been lacking lately and maybe this would be a good way to bump it up a notch. I need to find a new way to get Microsoft products to learn on. One of the clients I used to work for had been paying for my MSDN subscription. With that gone and my current company being a miser with the developer tools I need to come up with a new plan. ...
I've been through almost all sorts of Timeout related issues with Asp.net web service development. I’d like put a check list here to remind myself and hopefully save some headache of yours. If use database, you may get ‘System.Data.SqlClient.SqlE... Timeout expired’: a: Check your connection string setting for ‘Connect Timeout’: I.e. connectionString="Data Source=SNYC14D11511;Initial Catalog=d_dbivt003;Persist Security Info=True;User ID= user;Password= Password;Connect Timeout=4200 b:Check ...
The second gem from the Analysis Services MSDN forum is also by Adrian Dumitrascu and deals with what the second "CleanUp" argument of the Measures.Remove() method does. MeasuresCollection.Remove() Method The 'cleanUp' boolean argument specifies if the dependent objects will be removed. For a Measure, the dependents include the PerspectiveMeasure objects. For a DimensionAttribute, the dependents include the CubeAttribute objects. If you do not specify the 'cleanUp' parameter, the dependents are removed. ...
Here is another gem from the Analysis Services MSDN forum by Adrian Dumitrascu from the product team. The one from this thread deals with what exactly the .Update() method does. And was in the context of talking about creating new roles in a database. MajorObject.Update() Method Even if you create the role as new, it's still not needed to call database.Update(). Calling role.Update() is enough. The .Update() method only saves the minor properties and collections (thus not the major children) of an ...
Take a look at my recent MSDN blog post to see how you can get around the common issues related to .NET development of Vista Sidebar gadgets. Don't want to write registry access code in javascript? Can't figure out how to uninstall your .NET based gadget? Read on... http://blogs.msdn.com/markh... ...

I was looking for some info on the background compiler, and found an old article on MSDN that gives a good, basic explanation. Thought I'd throw a quick link up to it, as much so I can find it when I want it as anything. :-)

btw, I love the title of that page......

While writing practice programs for my 70-536 exam I encountered interesting problem of writing custom IFormatter implementation. .NET offers many classes that can fit most of ours serialization tasks, yet sometimes it might happen that we would like to do something differently. As I was looking for sample implementation of this interface, I noticed that there was very little about it in internet. One of the most interesting articles was "Run-time Serialization" by Jeffrey Richter found in april ...
Last week we went through a "fire drill" when users of one of our web applications started receiving "Gateway Timeout" errors (HTTP Error 504). This error indicates that a gateway "server" (any host that forwards the HTTP request, including a router or web server) did not receive a timely response from a server that is supposed to respond. Naturally we didn't have a clue as to which host in the connection chain from users' browsers to our web farm was reporting the error, but the leading candidate ...

Please find the information about downloading & updating sql-server 2005 books online in the below mentioned msdn website.

http://msdn2.microsoft.com/en-us/library/ms166018.aspx

My daily Silverlight 'Pick of the Litter' from the web, and sometimes even things NOT Silverlight, I will add on as I come across others Streamed Template Processing for Data Binding in Silverlight Joshua Allen took Laurence Moroney's MSDN Article and extended it in Silverlight 1.1 -- with code (although you may have to convert the font on the 2nd half of the article -- I got windings!) LINQ Cookbook from the VB Team Not exactly Silverlight, but if you're doing 1.1 and hitting data, you probably ...
I was recently writing a small practice application for learning pursposes. The task was to read windows log file: %windir%/WindowsUpdate.log and find "exit code" numbers. The problem I encountered was to actually open properly file. I was receiving exception: System.IO.Exception with message: "Additional information: The process cannot access the file 'C:\WINDOWS\WindowsUpdate.log' because it is being used by another process." my code looked something like that: string windir = System.Environment.GetEnvir... ...
If you didn't get a chance to attend the Raleigh Code Camp this past Saturday, you missed a fantastic event! I was fortunate enough to be selected as a speaker and presented my Write Better Code Using the Refactoring Tools in Visual Basic 2005 session. You can find more information about Refactor! on the MSDN site and find a great whitepaper on using it as well. I want to be sure I thank everyone involved starting with all the volunteers from the Triangle .NET User Group, the other speakers, and ...

More of a convenient place to stick this so I can find it later.....

My programming partner and I recently were trying to get one of our custom types to use implicit conversion using reflection. It didn't work. We couldn't get to the conversion code no matter what we did. We found out that we can't use reflection that way. So, we used the suggestion in this great MSDN forum post.
I personally hate to open blogs, that just have list of links without more useful information. But as I wrote in Ways to store bookmarks/favorites post, blog is a convinient way to save favorites. So I will just save links for now, and hopefully will add more comments about them later. FIDDLER supports HTTPS, ensure that "Capture HTTPS Connects" and "Decrypting HTTPS traffic" are ticked in in "Fiddler options". However running Fiddler in "https mode" can have side effects, e.g. my connection to TFs ...
The Microsoft Office Interactive Developer Map is a Windows Presentation Foundation (WPF) application that helps developers visualize the different programs, servers, services, and tools that will help them build solutions. It allows them to drill down to each product and technology and learn about new features, objects, Web services, namespaces, and schemas required to extend Microsoft Office and build custom Office Business Applications (OBAs). The map is a living document that provides links to ...
I will put a few links related to ASP.NET unit testing. WATIN Initially I saw reference to WATIR from Scott Hanselman's post Integrating Ruby and Watir with NUnit . Recently I've found WatiN Web Application Testing In .Net, including articles WatiN - Web Application Testing In .Net - The Code Project - ASP.NET and WatiN Test Recorder - The Code Project .(The home page for WatiN Test Recorder is here) There is interesting article by Jeremy D. Miller with comment from ScottGu recommending WatiN . Using ...
Lately I’ve spent a lot of time playing with VS.NET “Orcas” Beta 1 and focusing on the language enhancements to C# in the new compilers. As an instructor who teaches the languages and as a developer of large frameworks for clients, the first thing I’m interested is the language enhancements. Then I dive into the addition “add-on” type features (read: WPF/XAML, WCF, Workflow, etc…) So far I’ve found some really intriguing features (like LINQ) that I like and think have some value but which won’t dramatically ...
We've got a custom control that consists of 2 radio buttons, a "normal button", and a text box, all on a single line. Internal to the control, I have all 4 of member controls lined up so that all the text is on one line. So far, so good. Except for one thing. When I put my control on my form, I can not get the text on my form to line up with the text on my label, and I end up manually futzing it into something that resembles "it's place". Where are my alignment functions? I guess it's off to google. ...
I just got done with a long afternoon of implementing a Windows Service to self-host my WCF service. It was a bit trickier than I thought it would be so if I can save you the headache I'll be happy. A good place to start is by reading these two MSDN articles: http://msdn.microsoft.com/m... http://msdn.microsoft.com/m... Next, you'll want to understand these support articles: http://msdn2.microsoft.com/... ...
Hot in the heals of Fridays beta release of Channel 9 version 4 are rumors that there will be a new MSDN channel 9 style forum called Channel 8 but this site will perhaps be aimed more specifically at students. Students do not particular get a rough ride on Channel 9 as many make a great contribution but it can't be all that cool for students to hang-out with a bunch of old techies like us, perhaps the reason for the site? Attracting more students in an effort to support them better, why not! After ...
Yeah, the new release of SQL Server shipped it's first public CTP already. To download the bits you need to register with the Microsoft SQL server 2008 CTP Program on Microsoft Connect, then go to the CTP main page, and watch for the links at the right bar (If you plan to share the links beware that they will give "Page Not Found" error to any one who's not in the CTP MS connect program). More links to check out: CTP Main Page CTP @ Microsoft Connect CTP Overview Whitepaper CTP Samples (At Codeplex ...
I got the following email from fellow MVP Greg Linwood on behalf of the Melbourne SQL Server User Group this morning which was taken from a posting by Ed Lehman from Microsoft in the private MVP newsgroup. I have not read any other feeds yet, but I imagine this news will be all over the web today. There will probably be a flood of information on Katmai, now that a release is publicly available. Enjoy! E D L E H M A N'S P O S T I N G This coming Monday, June 4, we will release the June CTP of Katmai. ...
I tried to find Tools to generate WSDL from SOAP Sample, but wasn't successful. I've started to use WSCF - Web services Contract-First to generate WSDL from XSD, that I've created manually , but I have the next problem. The SOAP example uses collections vector (with apache namespace) and I am not sure how specify them in WSDL to generate expected SOAP messages. Someone suggested "specify a struct in your wsdl file that contains whatever information your vector objects contain, and return an array ...
The latest MSDN Canada Flash newsletter announced a new Microsoft program where they are attempting to get Charities/Non-Profit groups who have technical work to be done, and match them with local IT workers who want to give back to their community. I'm not sure when it launched but there's a almost a couple hundred people signed up and at the moment 25 organizations with 10 job postings. I'd say that even if you're not interested at least let some of your local NPOs know about this site and I know ...
Heard on radio last week: Adobe is selling their "Creative Suite 3" 40% to 100% more expensive here in Europe than in the US. Swiss netizen Danielle Libine is gathering signatures to petition Adobe to change this. While I have my doubts about the power of such a petition against software giants, I also remember that Microsoft decided to include Expression Blend in MSDN after users asked (and asked and asked) them to do so on the web and on usenet. So maybe it'll work if enough people sign the petition ...
This week we need to choose the most appropriate communication technology for one of our projects. The project constraints are the following: .NET on both client and server client and server on same LAN A lot of information to be passed from server to client and vice-versa Performance is important Typed DataSets will be used on server side Presentation layer is developed with WPF Security is needed (sensitive or confidential data) The options we have are the following: ASMX Web Services .NET Remoting ...
The Windows Vista UAC exploit I recently published has garnered some attention as well as some criticism. I wanted to take a moment to reply to some of what I've seen in the press, in comments around the web, as well as the response from Microsoft. On some of the PC World/PC Magazine and their affiliates' web sites, there was a comment that "Pac-Man" should never require elevation (I use a Pac-Man clone as an example of what would otherwise be innocuous software in the whitepaper). This is true, ...
Roy Osherove did the final UG event of his Canadian tour tonight in Winnipeg, speaking to a very attentive crowd about Agile development. Roy had been talking at Dev Teach in Montreal last week, and had presented at the Edmonton .NET User Group last night. We were very grateful that he was willing to do the tour, so a big thanks to Roy for taking the time to stick around in Canada for an extra week! This tour wouldn't have been possible without the generous support of MSDN Canada and Dev Teach, both ...
Needing to learn MOSS "fast" - Tim points me to a bunch of nice videos on MOSS features. Kinda like the MSDN nuggets on MSDN UK site. http://www.microsoft.com/do... ...
Here are few lessons learnt from playing with the BDC on a project 1. Even though the BDC can crawl associated entities in your database schema, the search results will not show related entity instances for the item you searched. 2. In case of mapping 'complex' db schemas specially ones that contain m:n relationships between entities, sometimes it might be advisable to show un-normalized relationships via stored procedures or views, but this approach provides the following roadblocks Un-normalized ...
I was holding an ArcCouncil meeting in St. Louis last week and one of the attendees expressed their frustration with the seemingly 43 places you have to go to download and use the Visual Studio "Orcas", the Silverlight tools and Expression Blend. So, I'll try to clarify this right here and now: Visual Studio "Orcas": Here is the URL for the public download site: http://www.microsoft.com/do... Unfortunately, this site ...
If you're having issues downloading from MSDN Subscriptions the following steps cleared it up for me. I had the issue over the past several days. So, I tried MSDN support and in the end they were of no help. First they said I was the only person with the problem. Then, after I pushed them, the support person contacted her supervisor who confirmed that others were having the issue. So, these steps cleared it for me: 1. Control Panel -> Uninstall -> FTM File Transfer manager 2. In IE -> Tools ...
I have the ASP.Net application, that uses SqlTransaction.BeginTransac... before the call to Update SP and commit after the call.If any exception would happened, transaction should be Rollback. The code snippet is the following: conn.Open(); using (SqlTransaction trans = conn.BeginTransaction()) { try { ds = SqlHelper.ExecuteDataset(tr... CommandType.StoredProcedure, SPName); trans.Commit(); } catch (Exception ex) { trans.Rollback(); //Log the error } } We noticed that during update of web.config ...
i found this excellent code, that tells me how can i invoke external routine easily , using C#. The purpose of the following is to set a desktop image , on button click calling a routine from user32.dll using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Runtime.InteropServi... using System.Windows.Forms; namespace wallpaper { public partial class Form1 : Form { [DllImport("user32.dll", CharSet = CharSet.Auto)] ...
In the latest installment of MSDN Magazine "Toolbox", Scott Mitchell wrote a few paragraphs about how a developer can add to his applications/websites the ability to accept online credit card payments. The process does seem complex and a bit intimidating at first, but with the right tools it can be pretty easy. Scott points his readers to Authorize.Net (Internet payment gateway through which one can process the charges), and also mentions the availability of some third-party shopping cart products ...
Because the name, Interop Forms Toolkit 2.0, really doesn't tell you anything about it, I'd re-name it the "How to extend an established VB6 application with .NET code Toolkit". Yeah, my title might be a bit wordy and all but at least you'd know what it does! The goal is simple, provide a path to VB 2005 for VB6 developers without requiring them to completely rewrite their VB6 applications. There are plenty of VB6 applications out there that are still working exactly as they were designed. The problem ...
I was a new user of Groove 2007 so I used it a few times without obtaining a product key from my MSDN subscription. Created a couple of worksites, all was good. Once I realized I would be using Groove more often I obtained the product key. This time when Groove asked, I entered the product key. That's when strange things began to happen. Every time I tried to create a workspace in Groove it now began the configuration wizard and asked for the product key. Ok, fine. (I had been smart and saved it ...
In a recent post I mentioned having a problem getting the product key for SharePoint Designer 2007 to work. Welllll, I did some extensive research, ok, well not extensive but research nonetheless, and found this post on the MSDN forums. A couple people had encountered the exact same problem and the solution was kind of strange. The solution is to re-download the .iso image to make sure you have the latest. Ok, makes sense. The strangeness comes in when you look at the date posted for the en_office_sharepoint_design... ...
Last week I was searching for a solution to generate a complicated XML straight away out of the SQL Server. Actually, I had huge data scattered in few tables that I wanted to map to an XML with several attributes n elements with multiples levels of hierarchy, I was trying to generate this XML with the FOR XML Explicit mode. Doing things with this was really really complicated n terrible. So, I started to look around for new XML features introduced with SQL Server 2005 (as I was using SQL Server 2005 ...
Mix07 is live and lots of awaited stuff has come . Silverlight has a couple of new releases, Silverlight 1.0 BETA, and 1.1 ALPHA. Why 1.1 while 1.0 is not fully released yet? No idea . (See update below) What matters here is that 1.1 ALPHA targets developers more than anyone else. It also has a GoLive license . You should be just fine by installing it, and the SDK, and then start playing. (maybe also download the pre-release expression products). Silverlight Homepage (Has cool videos and more goodies) ...
In case you've been too buried by current projects to check out what's coming down the road in the next version of VB, you might want to check out the Overview of Visual Basic 9.0 article up on the MSDN site. I particularly like the new Relaxed Delegates feature, ok, well not the feature so much as the name. For me it conjours up visions of political types floating on rafts in a resort swimming pool, enjoying adult beverages, discussing the merits of the candidate they want to nominate. Now that ...