Could not create type

johnnyg123
johnnyg123 used Ask the Experts™
on
Trying to do a build

I receive the following error:

Could not create type vehiclefo trying to do a build on a web service project in visual studio 2005.

Attached is a file with some screen prints.

Any ideas???


screen-shots.doc
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
in the .asmx file, i see

class="VehicleInfo"

but ur class name is Service

so put
class="Service"
instead of vehicleinfo
or in ur VehileInfo.vb file change

Public Class Service
     Inherits System.Web.Services.WebService

to

Public Class VehicleInfo
    Inherits System.Web.Services.WebService


Author

Commented:
hmmm

I was hoping your catch was the answer but I tried changing
to Public Class VehicleInfo
    Inherits System.Web.Services.WebService
and still getting same error
Also remove the namespace

i guess webservices dont need a namespace

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial