Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ordering User Table
Message
De
27/04/2005 12:41:20
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
27/04/2005 12:03:59
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
MS SQL Server
Divers
Thread ID:
01007872
Message ID:
01008910
Vues:
16
Bill,
Generally, this message means your code is returning a type that .NET isn't positive how to convert to the explicitly stated return value. In this case, .NET is telling you that it doesn't know how to cast your new instance of MyUser to match the method return type (mmUser).

I would interpret this to mean that maybe your MyUser class isn't a subclass of mmUser?

Hope that makes sense,
---J

>I have modified Factory.cs (not mmFactory.cs) with the fillowing code:
>
> public class Factory : OakLeaf.MM.Main.Patterns.mmFactory
> {
> public override mmUser CreateUserObject()
> {
> return new MyUser();
> }
>
> }
>
>
>I am getting the following error:
>
>
>
>c:\inetpub\wwwroot\PMR\Factory.cs(15): Cannot implicitly convert type 'OakLeaf.MM.Main.Security.MyUser' to 'OakLeaf.MM.Main.Security.mmUser'
>
>I have no idea where to go from hers!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform