Last post Apr 24, 2005 06:29 AM by imre_b
Apr 23, 2005 09:54 PM|cencami|LINK
I clicked on username and got this error message. could you translate and tell me what to do? this is my first user other then admin.
Microsoft (R) Visual Basic .NET Compiler version 8.0.40607.42
for Microsoft (R) .NET Framework version 2.0.40607.42
Copyright (C) Microsoft Corporation 1987-2003. All rights reserved.
C:\Program Files\ASP.NET Starter Kits\ASP.NET Community Starter Kit (VBSDK)\CommunityStarterKit\Admin\EditUsers\EditUser.aspx(18) : warning BC42016: Implicit conversion from 'System.Object' to 'Integer'.
C:\Program Files\ASP.NET Starter Kits\ASP.NET Community Starter Kit (VBSDK)\CommunityStarterKit\Admin\EditUsers\EditUser.aspx(36) : error BC30561: 'ProfileInfo' is ambiguous, imported from the namespaces or types 'System.Web.Profile, ASPNET.StarterKit.Communities'.
Dim objProfile As ProfileInfo = UserUtility.GetProfile(Request.QueryString("username"))
C:\Program Files\ASP.NET Starter Kits\ASP.NET Community Starter Kit (VBSDK)\CommunityStarterKit\Admin\EditUsers\EditUser.aspx(79) : error BC30561: 'ProfileInfo' is ambiguous, imported from the namespaces or types 'System.Web.Profile, ASPNET.StarterKit.Communities'.
Dim objProfile As New ProfileInfo()
Apr 23, 2005 10:46 PM|Redd|LINK
It looks like you have imported a new namespace into your project called System.Web.Profile and this is causing a name collision. I have no idea what is in System.Web.Profile (I don't think it is part of the standard .NET framework.
Anyway, the compiler can't resolve the name of ProfileInfo in the CSK because there is another object with the same name in System.Web.Profile.
To fix, open EditUser.vb and find all declarations of ProfileInfo and change them to say "ASPNET.StarterKit.Communities.ProfileInfo". This will resolve the name collision.
Apr 24, 2005 02:01 AM|jodywbcb|LINK
the System.Web.Profile is a Asp.Net version 2 namespace.... While I have not yet compiled the CSK under 2.0 it appears that the CSK was compiled under 2.0 which would explain that issue (based on the paste information: ref "for Microsoft (R) .NET Framework
version 2.0.40607.42"). I would recommend seeing this article to make sure that the Asp.Net 1.1 settings are in place for compile options:
1.1 versions can run under 2.0 however you have to make sure the proper references are in place.....
Hopefully that helps..
Apr 24, 2005 06:29 AM|imre_b|LINK
While using asp.net 2.0 profileinfo is part of the framework.
I used Visual webdevelopper 2005 to "find and replace in files" on the whole applications, thus also the 'source' folder.
Find and replace ProfileInfo
replace with: ProfileinfoX
Then used build.bat to compile the dll and placing it back in the Bin folder
(point to the 1.1 framework folder in the build.bat file, pointing to the 2.0 folder will error.)