Error: BC30002 Type'x' is not defined for web reference

Last post 10-15-2009 2:53 AM by SilverNight. 1 replies.

Sort Posts:

  • Error: BC30002 Type'x' is not defined for web reference

    09-15-2009, 5:08 PM


    I have a web service that has worked fine in an older Visual Studio 2003 version.
    I am trying to add it an an upgraded Visual Studio 2005 Web Applicaiton and having some issues.

    I can add the Web Reference and see the Service, its Disco, WSDl and what it calls the reference.map and reference.vb file all within the folder.

    I can refer to the Web reference in code with no issues...  i can also right click and do a "Go To Definition" and return to associated VB file associated to the Web Refernce.

    Dim  xService As New DecryptTokenService.DecryptToken


    When I go to run and compile the Web Applicaiton I get the following error.

    Compiler Error Message: BC30002: Type 'DecryptTokenService.DecryptToken' is not defined.



    is there some compile setting or something in the Web.config I am missing?

    here is the web.configs section, please ignore the (...) in the URL, its removed intentionaly.

    <applicationSettings>

     <CMST.My.MySettings>

     <setting name="DecryptTokenService_DecryptToken" serializeAs="String">

     <value>https://.../DecryptTokenService/DecryptToken.asmx</value>

     </setting>

     </CMST.My.MySettings>

     </applicationSettings>

  • Re: Error: BC30002 Type'x' is not defined for web reference

    10-15-2009, 2:53 AM
    • Member
      36 point Member
    • SilverNight
    • Member since 08-09-2007, 7:05 AM
    • HongKong
    • Posts 50

    are you call by MS Ajax or other JS framework? 

    My Blog : http://blog.miawork.com
    I am a Chinese and live in HongKong
    Sorry About My Bad English. m(._.")m
Page 1 of 1 (2 items)