You are describing 2 problems here, but they might be related because the app can't compile. The first issue is that Weather is your namespace (the name of project by default), but the service needs to inherit from a class, not a namespace.
<%@ WebService Language="c#" Codebehind="Prediction.asmx.cs" Class="Weather.Prediction" %> Try that and see if you can at least compile. HTH On Sat, 12 Mar 2005 02:24:59 -0000, Jamal <[EMAIL PROTECTED]> wrote: > > > Hi, > I opened visual studio, and create a new web service project, renamed > asmx file to prediction.asmx and implemented it : > 1)I added the first line : > <[EMAIL PROTECTED] Language="C#" Class="Weather"%> > > when I build the solution I got this error : > a namespace does not directly contain members such as fields or > methods. > > and when I called prediction.asmx in the browser : > http://localhost/weather/prediction.asmx > I got this error : > > 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 load type 'Weather.Global'. > > Source Error: > > Line 1: <%@ Application Codebehind="Global.asax.cs" > Inherits="Weather.Global" %> > > Source File: c:\inetpub\wwwroot\Weather\global.asax Line: 1 > > Could you please help me. > thanks > > > Yahoo! Groups Links > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
