I got the error below and am not able to find out the cause. I have spent more than a day on this. Has anyone encountered this error below? Please help.
Warning 1 The type 'MemberProfile' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs' conflicts with the imported type 'MemberProfile' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\askmetech\c72549a6\9297fa06\App_Code.-avdtcnt.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs'. c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs 300
I renamed the class name from MemberProfile to MyMemberProfile but still have the same error indicated above. I think it has to do with how the classes I created below are related. I created them like the News classes that come along with the Small Business
Starter Kit. .
Please help. Thanks
Below are my classes:
public class
MemberProfile
public
static
class
MemberProfiles
public
abstract
class
MemberProfileProvider :
ProviderBase
public
class
SqlMemberProfileProvider :
MemberProfileProvider
This problem is fixed. Renaming the classes by find and replace doesn't fix it. I had to delete the classes completely and then create them under a different name like MyMemberProfile.
hophachthanh...
Member
30 Points
6 Posts
Class Type Conflict Issue
Nov 17, 2006 07:29 PM|LINK
I got the error below and am not able to find out the cause. I have spent more than a day on this. Has anyone encountered this error below? Please help.
Warning 1 The type 'MemberProfile' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs' conflicts with the imported type 'MemberProfile' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Code.-avdtcnt.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs'. c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\askmetech\c72549a6\9297fa06\App_Web_r-oxadxs.0.cs 300
I created the following classes
App_Code --> MemberProfiles (sub folder): MemberProfile.cs, MemberProfiles.cs, MemberProfilesProvider.cs, SqlMemberProfilesProvider.cs, xmlMemberProfilesProvder.cs
When I created those memberprofiles classes, I used the News classes that came along with the Small Business website project.
Thanks
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Class Type Conflict Issue
Nov 17, 2006 08:16 PM|LINK
Al
My Blog
hophachthanh...
Member
30 Points
6 Posts
Re: Class Type Conflict Issue
Nov 17, 2006 09:02 PM|LINK
I renamed the class name from MemberProfile to MyMemberProfile but still have the same error indicated above. I think it has to do with how the classes I created below are related. I created them like the News classes that come along with the Small Business Starter Kit. .
Please help. Thanks
Below are my classes:
public class MemberProfile
public static class MemberProfiles
public
abstract class MemberProfileProvider : ProviderBasepublic
class SqlMemberProfileProvider : MemberProfileProvideralbertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Class Type Conflict Issue
Nov 17, 2006 09:08 PM|LINK
YES!
First do this:
public class My MemberProfile : MemberProfile
I believe that all the names you are using are reserved, please rename and let me know
Al
My Blog
hophachthanh...
Member
30 Points
6 Posts
Re: Class Type Conflict Issue
Nov 17, 2006 09:25 PM|LINK
Thanks for responding. I renamed it to the classes below. I still get that error.
public
class MyMemberProfile (this is a class)public static class MyMemberProfiles (this is a collection)
public
abstract class MyMemberProfilesProvider : ProviderBasepublic
class SqlMyMemberProfilesProvider : MyMemberProfilesProvideralbertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Class Type Conflict Issue
Nov 17, 2006 09:30 PM|LINK
Al
My Blog
hophachthanh...
Member
30 Points
6 Posts
Re: Class Type Conflict Issue
Nov 18, 2006 11:59 PM|LINK
This problem is fixed. Renaming the classes by find and replace doesn't fix it. I had to delete the classes completely and then create them under a different name like MyMemberProfile.
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Class Type Conflict Issue
Nov 19, 2006 01:57 AM|LINK
Al
My Blog
hophachthanh...
Member
30 Points
6 Posts
Re: Class Type Conflict Issue
Nov 20, 2006 10:01 PM|LINK
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Class Type Conflict Issue
Nov 21, 2006 02:11 PM|LINK
Al
My Blog