Web references and 'MSDiscoCodeGenerator' Error

Last post 11-15-2006 8:25 AM by Rohan. 3 replies.

Sort Posts:

  • Web references and 'MSDiscoCodeGenerator' Error

    05-01-2006, 5:01 PM
    • Member
      5 point Member
    • Mse
    • Member since 05-01-2006, 8:38 PM
    • Posts 1

    HI

    We are migrating our web applications to .Net 2.0 and are facing huge problems.

    The latest one to hit me, after installing WAP, is that I'm unalbe to make references!

    I'm contantly getting the following warning:

    The custom tool 'MSDiscoCodeGenerator' failed while processing the file 'Web References\DXP.XMedia\Reference.map'. 

    When double-clicking on the message I get the following MessageBox:

    The last attempt to run the custom tool 'MSDiscoCodeGenerator' on file 'Web References\DXP.XMedia\Reference.map' failed.  Would you like to re-run the custom tool?
    ---------------------------
    Yes   No  
    ---------------------------

    After pressing Yes, I get the following error message:

    Custom tool error: Unable to import WebService/Schema. Object reference not set to an instance of an object. XPublish C:\...\My Project\Settings.settings

    I was hoping that someone had already gone through this pain, and I could share his/her experience. But is seems that I'm the only one to have got stucked since I couldn't find any post addressing/mentioning this problem (or I haven't searched enough).

    Any kind of help/guidance will be highly appreciated. I'm going mad out of frustration.

    Thanks in advance

    -- Mridul

    -- Mridul
  • Re: Web references and 'MSDiscoCodeGenerator' Error

    05-05-2006, 2:07 PM
    • Participant
      1,659 point Participant
    • billhie
    • Member since 11-04-2002, 5:37 PM
    • Posts 335
    • AspNetTeam

    There is a known issue where you can get into this state if settings.settings file ever gets deleted.  The fix for this is to open the Settings.settings file (just double-click it). You should see entries similar to the following for you dynamic urls.

    Name                                Type                       Scope     Value
         
    MyApp_localhost_Service   (Web Service URL)   User        
    http://localhost:2305/WebSite8/Service.asmx

     

    Notice the type field - it needs to be set to "(WebService URL)"  - one of the choices in type dropdown. Most likely it is set to be of type String and this causes the error.

    Can you try this? We are looking at getting this fixed for SP1 of Visual Studio (it is an issue in the core VS code base so WAP cannot fix it directly.)

    Bill Hiebert

    Visual Studio Web Tools
  • Re: Web references and 'MSDiscoCodeGenerator' Error

    06-23-2006, 9:30 PM
    • Member
      5 point Member
    • wespayne
    • Member since 06-24-2006, 1:14 AM
    • Posts 1

    I have gotten into the same situation by much the same route with the following distinctions:

    • The Settings.settings file was never there in the first place.
    • There is no .resx file anywhere in the project that has a <data> tag, much less one with an empty name attribute.

    So, although there is now a Settings.settings file in the project (after the error), it has no settings in it, much less one like you show above.  So ... do I add one?  And if so, what would I name it?  The URL we use for the web service is http://webservices/wsstore.asmx , and the web reference is named StoreService.

  • Re: Web references and 'MSDiscoCodeGenerator' Error

    11-15-2006, 8:25 AM
    • Member
      5 point Member
    • Rohan
    • Member since 09-06-2006, 3:39 AM
    • Posts 1

    Same problem for me.

     i had 3 references to 3 different web services, but only one worked.

    So I checked in the settings.settings file, and saw that only one of the web services had a entry there, and it was the one file that worked. So i added the following for both references:

    Name: DataAccess_ReportingServicesDWHReport_ReportingService
    Type: Web Service URL
    Scope: Application
    Value: http://ReportServer/ReportServer/ReportService.asmx

    And it worked.

Page 1 of 1 (4 items)