web service woes, can't even make a simple one.

E

Eric Sabine

In a fairly simple solution, I've got a console application. I'm trying to
add a new web service project to the solution and I create the web service
in the solution and all the defaults are created. I delete the
service1.aspx and create mine, financials.aspx. And just to test, I put
make the text this below.

Imports System.Web.Services
<System.Web.Services.WebService(Namespace :=
"http://tempuri.org/Schaefer.Services/Financials")> _
Public Class Financials
Inherits System.Web.Services.WebService

#Region " Web Services Designer Generated Code "
.... that code is cut out here

' WEB SERVICE EXAMPLE
' The HelloWorld() example service returns the string Hello World.
' To build, uncomment the following lines then save and build the project.
' To test this web service, ensure that the .asmx file is the start page
' and press F5.
'
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class



Then back in the console app in the solution, I try to add the web service,
I browse services on the local machine, find "Financials" and when I always
get the same response (below this paragraph). This should be really easy,
but it is continuously erroring out. If I create a web service in my
solution and don't change anything except to uncomment out the helloWorld,
it works fine. What am I doing wrong?




Server Error in '/Schaefer.Services' Application.


Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not create type 'Server1.Services.Financials'.

Source Error:

Line 1: <%@ WebService Language="vb" Codebehind="Financials.asmx.vb"
Class="Server1.Services.Financials" %>



Source File: c:\inetpub\wwwroot\Server1.Services\Financials.asmx Line: 1



Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top