Andrew Coates ::: MSFT

It's all about community!

May, 2005

  • Andrew Coates ::: MSFT

    VC# Express Beta2 and MapPoint WebService (oh man!)

    • 10 Comments

    I'm currently working on an article introducing C# Express edition for one of the local developer magazines and my plan was to take the ScreenSaver example that ships with the product and extend it a little. In particualr, I wanted to introduce the concept of calling web services. Instead of using a folder with images as the background for the screensaver, I wanted to pull down a map centred on an address that the user entered into the options dialog (and then verified via MapPoint's FindServiceSoap service).

    So, I added a reference to the MapPoint wsdl and away I went. Things started getting strange when I called the service. In particular, I'd get an exception:

    Server did not recognize the value of HTTP Header SOAPAction:
       http://s.mappoint.net/mappoint­-30/FindAddress. 

    Long story short, what it looks like is happenning is that the WSDL generator that generates reference.cs is not handling the fact that MapPoint has 4 services defined in the WSDL (Common, Find, Render and Route), that is to say, it's kind of recognising the fact in that it generates stubs for all of those services and their methods and data types, it just gets it wrong.

    Each of the services needs a separate URL to call the methods, but the code just seems to use the first one it finds in the WSDL (in this case, the URL for the Common service) . There's only one entry in the Settings where there should be four and the Reference.cs code only uses that one setting.

    To fix this manually, add the following settings to the Settings.Settings (You'll obviously need to change ScreenSaver1 to the name of your project, or call it whatever you want, as long as you reference it correctly in Reference.cs)

    Name Type Scope Value
    ScreenSaver1_net_mappoint_staging_FindService (Web Service URL) Application http://findv3.staging.mappoint.net/Find-30/FindService.asmx
    ScreenSaver1_net_mappoint_staging_RouteService (Web Service URL) Application http://routev3.staging.mappoint.net/Route-30/RouteService.asmx
    ScreenSaver1_net_mappoint_staging_RenderService (Web Service URL) Application http://renderv3.staging.mappoint.net/Render-30/RenderService.asmx

    Now open up Reference.cs (easiest way to do this is to right-click on one of the web service objects and choose Go To Definition) and fix the settings for each of the 3 services

    public RenderServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_CommonService;

    becomes

    public RenderServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_RenderService;
    public RouteServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_CommonService;

    becomes

    public RouteServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_RouteService;

    and

    public FindServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_CommonService;

    becomes

    public FindServiceSoap() {
       this.Url = ScreenSaver1.Properties.Settings.Default.ScreenSaver1_net_mappoint_staging_FindService;

    I'm sure this will be fixed during the Beta process.

    Hope this helps some folk.

  • Andrew Coates ::: MSFT

    WORKAROUND - VS2005 Beta2 Keyboard Stops Responding

    • 1 Comments

    I was presenting to the Canberra Avanade .NET developers last Wednesday and was bitten (again) by the Keyboard Stops Responding issue that Peter (note his new blog URL) reported. I've never been able to repro it consistently, but it's bitten me a number of times.

    There was a bloke in the audience (sorry, didn't catch the name) who told me a workaround.

    With the cursor in the code window, press Alt+Enter and BINGO! all's good again.

    UPDATE

    Bill pointed out (via his Blog because he couldn't post a comment here for some reason although the new blogs.msdn.com site has been undergoing some pretty heavy maintenance over the last little while, so that may have something to do with it), that I'm about a week late with this post. Bill Vaughn had posted the workaround 7 days before I did.

    Thanks B1 and B2. BTW, on B1's advice, I've now subscribed to B2's blog as well.

  • Andrew Coates ::: MSFT

    Proposed MDEC Australia Agenda

    • 3 Comments

    We're well into the planning phases for MDEC2005 in Melbourne (June 20) and Sydney (June 22). Here's almost the final agenda for the day. What I'd like is a sanity check. Have I missed anything obvious, is there too much of anything? Feedback apprectaied either via contact me or via the comments engine.

    Time Track 1 Track 2
    8:00 - 9:00 Registration
    9:00 - 10:30 Keynote
    10:30 - 11:10 Break and divide room into 2 tracks
    11:10 - 12:25 A Platform on the Move: The .NET Compact Framework* Introduction to Windows Embedded
    12:25 - 13:15 Lunch with Sponsor sessions
    13:15 - 14:25 Introduction to Managed Development for Devices with Visual Studio 2005* Building Trustworthy Windows XP Embedded Devices
    14:25 - 15:40 Developing High Performance Applications with the .NET Compact Framework What's New with MapPoint Web Service 4.0?*
    15:40 - 16:00 Break
    16:00 - 17:15 New Managed Messaging, State, and Notification APIs in Windows Mobile SQL Server 2005 Mobile Edition : The Evolution of SQL Server CE

    * Local speaker

  • Andrew Coates ::: MSFT

    VSTS Webcasts Posted

    • 1 Comments

    I know what I'm going to be doing for the next little while ...

    VSTS Webcast Series

     

    The following Webcasts were recently recorded be members of the product team and are an excellent resource for exploring VSTS a bit deeper than usual.

    All Webcasts are publicly accessible on MSDN: http://www.microsoft.com/events/series/msdnvsts2005.mspx

     

    Visual Studio 2005 Team System: Enterprise-Class Version Control

    Microsoft Visual Studio 2005 Team System (VSTS) provides a completely new, highly scalable and robust version control system. This webcast details the many new features of VSTS version control including shelving, check-in policy and support for distributed development work.

    Presenter: Doug Neumann, Program Manager, Microsoft Corporation

     

    How and Why Process Guidance Matters in Visual Studio 2005 Team System

    Microsoft Visual Studio 2005 Team System (VSTS) allows teams to select a process template to shape how the team works together. This session will help you understand key considerations in selecting the template best suited to your team and the project you are working on. Learn how process templates affect the way VSTS works and why it is important for your team to select the appropriate process for your projects. 

    Presenter: Bindia Hallauer, Senior Product Manager, Microsoft Corporation

     

    Enterprise Project Management and Reporting in Visual Studio 2005 Team System

    Microsoft Visual Studio 2005 Team System (VSTS) provides all the suite tools to pour data into a central data warehouse. This webcast shows how to use Microsoft SQL Server Reporting Services to generate real-time and historical reports on the many facets of your project. We also show many of the ready to run reports built into VSTS. 

    Presenter: Allen Clark, Program Manager, Microsoft Corporation

     

    Test-Driven Development Using Visual Studio Team System

    Why test-driven development? Although developers have been unit testing their code for years, tests are typically performed after the code is designed and written. As a great number of developers can attest, writing tests after the fact is difficult to do and often omitted when time runs out. Test-driven development attempts to resolve this problem and produce higher quality, well-tested code by putting the cart before the horse and writing the tests before we write the code. This webcast demonstrates how you can use Microsoft Visual Studio Team System to implement test-driven development in your organization.

    Presenter: Jim Newkirk, Development Lead, Microsoft Corporation

     

    Implementing and Customizing MSF 4.0 Process Guidance within Visual Studio 2005 Team System

    Visual Studio Team System provides a rich environment and integrated support for software development processes. While this new development platform ships with two predefined software development processes, some organizations will choose to incorporate their own "secret sauce" to add competitive advantage. This presentation and demonstration will show you how to make modifications to the existing processes, Microsoft Solutions Framework (MSF) for Agile Software Development and MSF for Capability Maturity Model Integration (CMMI) Process Improvement, as well to incorporate your software development process into Microsoft Visual Studio Team System. 

    Presenter: Randy Miller, Program Manager, Microsoft Corporation

     

    Managing Work with Visual Studio 2005 Team System (Level 400)

    How does the Microsoft Visual Studio team track and manage their work? This session and explores how various teams at Microsoft use Visual Studio Team System to customize work item types, create queries and set up notifications to facilitate teamwork and visibility. Learn how to use state model transitions to automate workflow throughout the team, and use rich history logging to collaboratively solve problems and communicate progress. See how Team System allows you to analyze and trend historical information to view project progress and track status. 

    Presenter: Kevin Kelly, Program Manager, Microsoft Corporation

     

  • Andrew Coates ::: MSFT

    New MSDN Article - Configuring ClickOnce Trusted Publishers

    • 0 Comments

    One of the neat things ClickOnce allows you to do is deploy a ticket with the app that gives it more CAS permissions that would otherwise be the case based on the source of the download. This article gives a bunch of info about how to actually do it.

    ClickOnce security allows you to take advantage of the runtime security protections provided by Code Access Security, while still allowing a dynamic determination of permissions for a particular application at the point where the application is deployed through ClickOnce.

    http://msdn.microsoft.com/smartclient/default.aspx?pull=/library/en-us/dnwinforms/html/clickoncetrustpub.asp

Page 1 of 1 (5 items)