Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ordering User Table
Message
From
27/04/2005 12:41:20
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
27/04/2005 12:03:59
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
MS SQL Server
Miscellaneous
Thread ID:
01007872
Message ID:
01008910
Views:
17
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform