locked
cannot add a web reference in VS 2008 (site is blocked) RRS feed

  • Question

  • Hi I am trying to add this web reference in VS 2008

    https://staging.common.virtualearth.net/find-30/common.asmx?wsdl

    when i click go the familar bar pops down saying content is blocked I can click on this and say allow blocked content but by this time it is too late and VS is reporting that there is an error adding the reference. how can I set it up so nothing is blocked? or is there another way to add this web reference.

    in this video http://msdn.microsoft.com/en-gb/netframework/dd920289.aspx
    no popup occurs and I have done everything pretty much the same as in the video.

    many thanks


    edit,

    this is the error I get

    "There was an error downloading 'https://staging.common.virtualearth.net/find-30/common.asmx?wsdl'.
    The request failed with HTTP status 400: Bad Request."

    im quite sure its because the content is blocked but maybe this is helpful anyway.
    Friday, August 14, 2009 2:24 PM

Answers

  • I have had a deeper search around and it seems to be a bug caused by VS running on windows 7 64bit RC so there is a work around for it, if any one else has this problem see tanoshimi's post at http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/362b66ce-6c94-4cb1-8457-5b09dc94c0ff I havent tried it myself yet but the problem sounds the same.

    Also a warning to anyone thinking of upgrading to windows 7 64bit for development I have had lots of problems due to having this os installed when using VS2008, to do the work around described in the above post i have to download and install the 1.2GB .net SDK just to get WSDL.exe if I had the choice again i would have just installed vista for now and waited for VS2010 which I would hope would be more compatible with windows 7.
    Friday, August 14, 2009 3:03 PM

All replies

  • Hi,

    Have you signed up for a developer account yet?

    https://mappoint-css.live.com/MwsSignUp/Default.aspx?wa=wsignin1.0&lc=1033

    Once you have signed up, you will get an email specifying the username and password you should use when adding the Common web reference.

    Thanks

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Friday, August 14, 2009 2:30 PM
  • Hi yes I have signed up and got a password which is verified through the website shown in the video. When i go directly to https://staging.common.virtualearth.net/find-30/common.asmx?wsdl using IE8 there is no blocked content I enter my username and password and retreive the xml file. in VS when i allow blocked content I then view the xml file but I assume this infomration is ment to be processed by the add web reference task. Is there a way to access the security properties of the web browser VS uses maybe I can disable all security whilst adding this reference?
    Friday, August 14, 2009 2:38 PM
  • Hi,

    When adding the web reference via Visual Studio, are you prompted for the username and password?

    Thanks

    Paul Diston


    http://www.smartmobiledevice.co.uk/
    Friday, August 14, 2009 2:40 PM
  • Hi Paul yes I was prompted for the username and password I check the save details button.

    This is exactly what happens to me

    first i click add web reference
    (as i saved username + pw no popup but there was first time and everythign after is the same)
    I get a popup saying security warning do I want to show only information that is delivered securly ->this popup repeats continuously unless you click yes or no on all visiable warning boxes (crashes VS if i leave it alone to create many warning messages)

    if i am quick and allow the content that is not delivered securly then my screen looks similar to that in the video i.e. I can see the information about the service in the browser window (there is a message saying blocked some content which is actually the same as in the video) but on the right instead of saying 1 service found i have the error message I posted above. I think it must be to do with the security warning message but can't find a way to disable it.
    Friday, August 14, 2009 2:49 PM
  • I have had a deeper search around and it seems to be a bug caused by VS running on windows 7 64bit RC so there is a work around for it, if any one else has this problem see tanoshimi's post at http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/362b66ce-6c94-4cb1-8457-5b09dc94c0ff I havent tried it myself yet but the problem sounds the same.

    Also a warning to anyone thinking of upgrading to windows 7 64bit for development I have had lots of problems due to having this os installed when using VS2008, to do the work around described in the above post i have to download and install the 1.2GB .net SDK just to get WSDL.exe if I had the choice again i would have just installed vista for now and waited for VS2010 which I would hope would be more compatible with windows 7.
    Friday, August 14, 2009 3:03 PM
  • Here is a new update, the method bescribed in the post will also not work because it will generate a file using the normal and not compact framework and therefire cannot be sued in your project. The only soulution I have is to install xp or vista, install VS 2008, install WMsdks .... this is very frustraighting. why does this have to be so hard.
    Sunday, August 16, 2009 4:17 PM