Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 7th, 2011, 03: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
  #2 (permalink)  
Old August 7th, 2011, 03: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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.