.netvisual-studio-2008compact-frameworkwindows-mobile-6

Web Reference not updated in VS2008


I am currently maintaining a Windows Mobile 6 app.

I am trying to update the web reference added, but get the following error: "The custom tool MSDiscoCodeGenerator failed. Could not retrieve the current project."

I removed the .Net Compact Framework 3.5, and re-installed it, also installed the Power Tools for .Net Compact Framework 3.5. This did not help.

I also tried removing the web reference, and adding a new reference. The new web reference was added, but if I try to access the reference in code, I cannot access it.

How can I solve this?

Thanks


Solution

  • Odd sounding error message, but obviously others have gotten it.

    From a website here: Web references and 'MSDiscoCodeGenerator' Error

    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.)