Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X
This is the forum to discuss the Wrox book Professional Web Parts and Custom Controls with ASP.NET 2.0 by Peter Vogel; ISBN: 9780764578601
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 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 August 7th, 2011, 02:06 PM
Authorized User
Points: 222, Level: 4
Points: 222, Level: 4 Points: 222, Level: 4 Points: 222, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2007
Location: Phoenix, AZ, USA.
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
Default Getting an error from license provider

Hey,

I trying to build my custom control project and am getting the following error:

Error 1 'CS.MyLicenseProvider.GetLicense(System.ComponentM odel.LicenseContext, System.Type, object, bool)': not all code paths return a value

Here is my code:
<code>
using System;
using System.Collections.Generic;
using System.Text;
namespace CS
{
classMyLicenseProvider : System.ComponentModel.LicenseProvider
{
publicoverride System.ComponentModel.License GetLicense (System.ComponentModel.LicenseContext context, Type type, object instance, bool allowExceptions)
{
MyControlLicense lic = newMyControlLicense();
if (lic.LicenseKey == "OK")
{
return lic;
}
else
{
if (allowExceptions)
{
thrownew System.ComponentModel.LicenseException(type);
}
}
}
}
}
</code>

Any help will be greatly appreciated.

Tom
__________________
Thomas G Magaro
 
Old August 7th, 2011, 02:16 PM
Authorized User
Points: 222, Level: 4
Points: 222, Level: 4 Points: 222, Level: 4 Points: 222, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2007
Location: Phoenix, AZ, USA.
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Never mind.
__________________
Thomas G Magaro




Similar Threads
Thread Thread Starter Forum Replies Last Post
Provider error by CreateUser dbardelt BOOK: Silverlight 4 Problem - Design - Solution 4 June 6th, 2011 08:21 AM
Remote Connection Error: Named Pipes Provider error hbansal ASP.NET 2.0 Basics 5 April 12th, 2009 09:51 AM
Membership Provider error jamara ASP.NET 2.0 Basics 1 March 12th, 2007 02:01 PM
Oracle provider error bikerd Pro VB Databases 2 April 4th, 2005 11:26 AM
LICENSE AGREEMENT ERROR:FILE LICENSE.DAT NOT FOUND ajay_dalvi13 ADO.NET 0 March 15th, 2005 05:59 AM





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