Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2005, 10:11 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Type localhost.service is not defined

Good mnorning p2p,

I am working in the book Beginning Web Programming using VB.NET & Visual Studio .NET, Chapter 13, Publishing Web Applications in .NET. In the section called ASP.NET Web Service Architecture, I have built the the web service Service1.asmx. and the WebForm1.aspx. When I tried to add the Web Reference I got
Custom tool warning: DiscoCodeGenerator unable to initialize code generator. No code generated.
So I Googled that and added a vsdisco file with code
<?xml version="1.0" ?>

<dynamicDiscovery

  xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">

  <exclude path="_vti_cnf" />

  <exclude path="_vti_pvt" />

  <exclude path="_vti_log" />

  <exclude path="_vti_script" />

  <exclude path="_vti_txt" />

</dynamicDiscovery>

Visual Studio complains about the code

Dim oObj As New localhost.service
and says
Type localhost.service is not defined
The page comes up with no runtime or parser error
but the page is blank.
Have tried substituting the web server name
for localhost but got same result.

Is the vsdisco error related to the service not
being defined. What I really want to do is to
learn how to deploy ASP.NET web site from
development to production. Is there some way to
fix this or work around?

Thanks.

Allen in Dallas







Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Connection user-defined type not defined Wall st Guru Excel VBA 2 March 26th, 2014 03:44 PM
Type 'RecordDeletedEvent' is not defined sstuber BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 21st, 2008 04:51 PM
Type "RecordDeletedEvent" is not defined thuyvncr BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 7th, 2007 02:57 AM
User-defined type not defined (Icecream.mdb) dloren01 BOOK: Beginning Access VBA 0 June 22nd, 2005 10:36 PM
Type is not defined mdbriggs BOOK: Professional Crystal Reports for VS.NET 0 April 8th, 2005 08:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.