Ask a Question related to ASP.NET Web Services, Design and Development.
-
Allen McGuire #1
Could not create type 'VisaValidator.CreditCardValidator'
Any ideas would be great - I hope I provide enough information here. I'm getting a bit frustrated - I'm a newbie in the .NET programming arena.
Full Error returned from VWD 2005 Express Beta:
Error 1 Could not create type 'VisaValidator.CreditCardValidator'. c:\inetpub\wwwroot\XMLWebServices\Chapter3\VisaVal idator\Validation.asmx 1
Environment: Windows XP SP2 with local IIS and other prerequisites. I confirmed by getting 'Hello World' example to work.
Code (Validation.vb):
Imports System.Web.Services
Imports XMLWebServicesStepByStep.CreditCardValidator
<WebService(Namespace:="http://localhost/", _
Name:="VISAValidator", _
Description:="A service to validate VISA card numbers.")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicPr ofile1_1)> _
Public Class CreditCardValidator
Inherits System.Web.Services.WebService
<WebMethod(Description:="Validate a VISA card number.")> _
Public Function _
ValidateVISACard(ByVal p_card_number As String) _
As Boolean
Try
Return New Validator().ValidateVisa(p_card_number)
Catch x_ex As System.ApplicationException
Return False
End Try
End Function
End Class
Code (Validation.asmx):
<%@ WebService Language="vb" CodeBehind="~/App_Code/Validation.asmx.vb" Class="VisaValidator.CreditCardValidator" %>
--
A McGuire
Allen McGuire Guest
-
How to create server control of Container Type
Hi All, I am trying to build one server control which has one panel and within this panel there will be two more panel. I have created two... -
How to create a library-type item which goes on many webpages?
Hi there, I have about 30 different sites that are hosted on a variety of different servers. At the bottom of the index.html page for each of these... -
Can't create PS file - "no desktop printer exists for this spool type"
I can create PDF files from Photoshop, Illustrator or from any eps file by dropping them on to Distiller, but I can't create a ps file. I don't have... -
Newbie question: Best way to create type that is vertical aligned?
ID CS, OS X That is like: m y n a m e -
Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To...



Reply With Quote

