Error with code from "How to extend IWeb for your own modules"

Apr 17, 2008 at 1:40 PM
Hi. I carefully followed all the steps in the tutorial "How to extend IWeb for your own modules", but the provided code generates an error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC32035: Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement.

Source Error:

Line 21: Partial Public Class WebService
Line 22:
Line 23: <WebMethod(Description:=" GetSurveys DotNetNuke |IWEB Core| #IWEB Misc# !Portal! "), SoapHeader("IWebCredentials")> _
Line 24:
Line 25: Public Function GetSurveys() As List(Of SurveyInfo)

Source File: C:\Program Files\DNN482\Website\App_Code\IWeb\IWebMethods\IWebSurvey.vb Line: 23

I'm sure the code is good and the solution is simple, but I have no idea what it is.

I'm running a fresh install of DNN 4.82
Using Survey 4.50 and Iweb 3.10

Any help is appreciated.

Thank you
Apr 18, 2008 at 2:09 PM

You cannot have a space (the "Line 24:") between the attribute and the method declaration.