"User is ambiguous in the namespace" error after server change
Hello all,
I'm going through a rather painful account upgrade at Webhost4life and have just now got my DNN instance up and running.. and I am getting the error pasted below when I try to view either the "Edit User Accounts" or "Manage Profile" page. This is DNN4.36 and I'm pretty sure it was still fine before the upgrade. I'm wondering what might be the cause of the following error:
ModuleId: 357
ModuleDefId: 15
FriendlyName: Edit User Accounts
ModuleControlSource: Admin/Users/ManageUsers.ascx
AssemblyVersion: 04.03.06
PortalID: 0
PortalName: WumpWorld
UserID: 1
UserName: robax
ActiveTabID: 42
ActiveTabName: User Accounts
RawURL: /Admin/UserAccounts/tabid/42/ctl/Edit/mid/357/UserId/2/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://wumpworld.com/Admin/UserAccounts/tabid/42/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; VRE Toolbar 1.4; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d0f32790-c274-4f92-b741-d6fa2d2f4ecb
InnerException: c:/hosting/webhost4life/member/robax/wumpworld-436/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Compilation.AssemblyBuilder.Compile
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: c:/hosting/webhost4life/member/robax/wumpworld-436/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. ---> System.Web.HttpCompileException: c:/hosting/webhost4life/member/robax/wumpworld-436/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Source:
Server Name: VIR103-13
I dread sending this into the support desk there as I've already got several tickets being (slooowly) dealt with and I haven't got a lot of confidence in it.
Any assistance is much appreciated
Rob
12/2/2006 5:20 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
Hi Rob,
Hard to say exactly, but that sounds like the error you get when you have two non-qualified classes that have the same name, so the namespaces are ambiguous. Sorry - doesn't help much but it may be an old assembly in the /bin dir that is no longer needed that is clashing with a newer one?
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
12/2/2006 7:40 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Hi Rodney and thanks for the reply,
I was going to write in your forums about this, because the last set of modules I installed before the shift was all the Smart Thinker ones I bought last week. The error may well have been happening before the shift as I likely didn't visit the profiles page and never saw it.
I installed as recommended them with the old versions first and the latest last. I've got all the modules installed apart from Homepages, which I removed. The very last one was Smart-Thinker - Referrals Gold PA 04.03.01.zip
I assume the error is caused by something that interacts with user management as that is where the error occurs. Do you think there might be a chance that the problem lies with one of these modules?
Thanks for any further assistance with this,
Rob
12/2/2006 8:42 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Rodney... since the last post, I sent you note with a link to here, just in case the forum didn't notify you of my reply.. and since then again, I put two and two together and reinstalled the Homepages module. Like magic the profiles management pages are back with no errors.
The only file I can see that it had in common with any other modules is the ModuleFramework dll, which it shares with the Quotes module....but I had read the warnings and understood that having the latest version present is the correct situation.. and the one left in the /bin was the latest version by a year - as supplied by the homepages module.
In any case, I'm pleased the site is back, but this is definitely not a good situation and needs to be dealt with in a better way.
Regards,
Rob
12/2/2006 8:55 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Woops I spoke too soon.. the error is gone, but only for the host portal... all my subportals still display the same error.
Re: "User is ambiguous in the namespace" error after server change
Hi Rob,
Hmmm - I really don't think it could be a module causing this - It is strange that the error goes away on host when you install the ST modules, but you say when you uninstall them all then the error remains? I think this would rule out the ST modules interfering with the namespaces.
I have had issues with the profile page but also never got to the bottom of it... sorry, not a great answer but I also really don't know where to start looking! Do you have any other modules that do anything with users at all?
I think you going to have to try WH4L support I'm afraid...
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
12/3/2006 4:05 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Thanks for looking at it Rodney.
I've been uninstalling modules going backwards to see if I can get it working again. I tried messing with manageusers.ascx according to a forum post I saw, but only caused more errors so I undid the changes.. then all of a sudden it began to work again, but again only for the host portal.... and then after a while and removing another couple of modules it stopped working again.
The most depressing thing I found is that the only other post about this exact error was actually from me back in March with a previous version of DNN: http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/108/threadid/58803/scope/posts/Default.aspx
This is the sort of thing that really puts me off using DNN.
Rob
12/3/2006 8:32 PM
eck two
323 posts
Re: "User is ambiguous in the namespace" error after server change
Maybe you have one of these left over from DNN3x:
DNNSQLMembershipProvider.dll
DNNSQLProfileProvider.dll
DNNSQLRoleProvider.dll
MemberRole.dll
Just delete them if you find them.
12/3/2006 8:51 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Thanks for the reply ecktwo,
I'm reallly getting desperate.. I've even gone so far as to try deleting dll's going back weeks, but to no avail. The profile/add user page loads fine on the host, but not on the other portals. I'm back to uninstalling modules going backwards, but I'm beginning to suspect something else must be causing this. The site was a fresh 4.34 install upgraded to 4.35 then 4.36 and I've also now upgraded a copy of it to 4.37 just in case it would fix it.. but noop.
I've checked now for those DNN 3 dll's but they aren't present.
I've got 8 portals on the instance and if I have to rebuild again from scratch I'm going to lose a lot of stuff like Active Forums posts. So I'm treating this as if I had 100 portals on the instance.. what would I do then? There must be a way to fix this.
Any further clues for tracing this down are greatly appreciated.
12/4/2006 1:03 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
Have you checked that the .vb file that is failing is the latest on the server? Perhaps that page did not get upgraded for some reason (locking on your host - read only etc.) - worth FTPing that source page up manually perhaps?
Have you tried downloading the database locally and attaching a local 4.3.7 instance to it? This would rule out a data problem if it worked...
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
==============================
Re: "User is ambiguous in the namespace" error after server change
Thanks for the tips again.
This past week has been a classic DNN nightmare really. My careful test and backup routine got me 6 months into an 8 portal instance and then crumbled. I'm not really sure how to get out of this. I think DNN needs some sort of self-test script that one could run after upgrades, module installs and other alterations. It would run through a set of actions and test all vital functionality. I believe I've been caught out somewhere in the last week by one of quite a few module updates and installs I made prior to moving to a new account. somewhere along the line, something around the profile page became buggy.
The whole drama has been made much worse by Webhost4life's inability to provide a reliable and fully functional VPS account and I'm 99% positive I'll be asking for my payment back and will move on.
In any case, today I upgraded both to DNN 4.37 and to an SQL2005 database in order to get the site back online and ensure that none of the basics were faulty. I tried removing modules going back 2-3 weeks to long before I last used the profiles page, but that failed to fix it.
I will try your suggestion Rodney, of loading a copy of the db onto a fresh blank 4.37 instance to rule it out.. I'll do that on the server tomorrow evening.
I've uploaded the ManageUsers.ascx.vb and manageusers.ascx pages fresh to the server from the latest upgrade.zip, but that didn't help. I do find it odd that occasionally the host portal's profiles page will work, but I haven't figured out exactly how to make it do so. It just does now and then like when I removed the Homepages module.
oh crappp... now there's a new error.. when I try to view the event log in DNN.. this comes up:
Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at
etc...................
man! Ok, I see from a search that this is from upgrading from sql200 to sql2005. I was told by the host that I merely needed to restore sql200 into a blank sql2005 db. I guess not :(
12/4/2006 3:11 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
I had a (very) quick look at ManageUsers.vb - on line 816 it uses
ByVal e As User.UserCreatedEventArgs (Users here is Users.vb and Users.ascx - ie. not the core User object)
and then it also references User for sending mail and elsewhere in the class. For some reason the context is not inferred.
You could try prefixing the one on line 816 with;
DotNetNuke.Modules.Admin.Users.User.UserCreatedEventArgs
I haven't tried it and it is more worrying that everything else works and this does not... it may be to do with the way WH4L have configured their .NET 2.0 compilation settings? Not sure but if you are trying things... (keep a backup of everything!)
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
12/4/2006 3:38 AM
Jan Olsmar
376 posts
www.olsmar.com/
Re: "User is ambiguous in the namespace" error after server change
robax wrote
oh crappp... now there's a new error.. when I try to view the event log in DNN.. this comes up:
Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at
etc...................
man! Ok, I see from a search that this is from upgrading from sql200 to sql2005. I was told by the host that I merely needed to restore sql200 into a blank sql2005 db. I guess not :(
This is a old bug in a stored procedure that happens if the database collation is not the same as the server.
You find the solution in gemini for next release here
Jan
12/4/2006 3:39 AM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Thanks heaps for the tips. I can still safely revert back to 4.36/sql2000 and not lose content, but I can't go any further back to before this all happened, so I'll try anything at this stage.
I'm no coder so I may have done it wrong, but I changed this:
Private Sub UserCreateCompleted(ByVal sender As Object, ByVal e As User.UserCreatedEventArgs) Handles ctlUser.UserCreateCompleted
To this:
Private Sub UserCreateCompleted(ByVal sender As Object, ByVal e As DotNetNuke.Modules.Admin.Users.User.UserCreatedEventArgs) Handles ctlUser.UserCreateCompleted
Then re-saved the web.config to let it recompile and checked again. It still returns the same error, but it seems to be much quicker at doing so. I don't know if that means anything?
Error: Manage Profile is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: c:/hosting/webhost4life/member/robax/wumpworld437/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. ---> System.Web.HttpCompileException: c:/hosting/webhost4life/member/robax/wumpworld437/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Thanks again for your look-ins Rodney. They're much appreciated,
Rob
12/4/2006 3:51 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
Hmm - very odd. To ensure the new page/changes are compiling, can you push it down one line (leave a blank line) so the error message should be on line 817 if it is picking up the new file?
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
===================================
Re: "User is ambiguous in the namespace" error after server change
Thanks for the tips again.
This past week has been a classic DNN nightmare really. My careful test and backup routine got me 6 months into an 8 portal instance and then crumbled. I'm not really sure how to get out of this. I think DNN needs some sort of self-test script that one could run after upgrades, module installs and other alterations. It would run through a set of actions and test all vital functionality. I believe I've been caught out somewhere in the last week by one of quite a few module updates and installs I made prior to moving to a new account. somewhere along the line, something around the profile page became buggy.
The whole drama has been made much worse by Webhost4life's inability to provide a reliable and fully functional VPS account and I'm 99% positive I'll be asking for my payment back and will move on.
In any case, today I upgraded both to DNN 4.37 and to an SQL2005 database in order to get the site back online and ensure that none of the basics were faulty. I tried removing modules going back 2-3 weeks to long before I last used the profiles page, but that failed to fix it.
I will try your suggestion Rodney, of loading a copy of the db onto a fresh blank 4.37 instance to rule it out.. I'll do that on the server tomorrow evening.
I've uploaded the ManageUsers.ascx.vb and manageusers.ascx pages fresh to the server from the latest upgrade.zip, but that didn't help. I do find it odd that occasionally the host portal's profiles page will work, but I haven't figured out exactly how to make it do so. It just does now and then like when I removed the Homepages module.
oh crappp... now there's a new error.. when I try to view the event log in DNN.. this comes up:
Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at
etc...................
man! Ok, I see from a search that this is from upgrading from sql200 to sql2005. I was told by the host that I merely needed to restore sql200 into a blank sql2005 db. I guess not :(
12/4/2006 3:11 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
I had a (very) quick look at ManageUsers.vb - on line 816 it uses
ByVal e As User.UserCreatedEventArgs (Users here is Users.vb and Users.ascx - ie. not the core User object)
and then it also references User for sending mail and elsewhere in the class. For some reason the context is not inferred.
You could try prefixing the one on line 816 with;
DotNetNuke.Modules.Admin.Users.User.UserCreatedEventArgs
I haven't tried it and it is more worrying that everything else works and this does not... it may be to do with the way WH4L have configured their .NET 2.0 compilation settings? Not sure but if you are trying things... (keep a backup of everything!)
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
12/4/2006 3:38 AM
Jan Olsmar
376 posts
www.olsmar.com/
Re: "User is ambiguous in the namespace" error after server change
robax wrote
oh crappp... now there's a new error.. when I try to view the event log in DNN.. this comes up:
Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at
etc...................
man! Ok, I see from a search that this is from upgrading from sql200 to sql2005. I was told by the host that I merely needed to restore sql200 into a blank sql2005 db. I guess not :(
This is a old bug in a stored procedure that happens if the database collation is not the same as the server.
You find the solution in gemini for next release here
Jan
12/4/2006 3:39 AM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Thanks heaps for the tips. I can still safely revert back to 4.36/sql2000 and not lose content, but I can't go any further back to before this all happened, so I'll try anything at this stage.
I'm no coder so I may have done it wrong, but I changed this:
Private Sub UserCreateCompleted(ByVal sender As Object, ByVal e As User.UserCreatedEventArgs) Handles ctlUser.UserCreateCompleted
To this:
Private Sub UserCreateCompleted(ByVal sender As Object, ByVal e As DotNetNuke.Modules.Admin.Users.User.UserCreatedEventArgs) Handles ctlUser.UserCreateCompleted
Then re-saved the web.config to let it recompile and checked again. It still returns the same error, but it seems to be much quicker at doing so. I don't know if that means anything?
Error: Manage Profile is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: c:/hosting/webhost4life/member/robax/wumpworld437/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. ---> System.Web.HttpCompileException: c:/hosting/webhost4life/member/robax/wumpworld437/Admin/Users/ManageUsers.ascx.vb(816): error BC30560: 'User' is ambiguous in the namespace 'DotNetNuke.Modules.Admin.Users'. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Thanks again for your look-ins Rodney. They're much appreciated,
Rob
12/4/2006 3:51 AM
Rodney Joyce
1460 posts
www.smart-thinker.com
Re: "User is ambiguous in the namespace" error after server change
Hmm - very odd. To ensure the new page/changes are compiling, can you push it down one line (leave a blank line) so the error message should be on line 817 if it is picking up the new file?
--------------------------------------------------------------------------------
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
=============================
Re: "User is ambiguous in the namespace" error after server change
Rob, I know I'm late to the thread, but this might shed some light. If there's a fix for it, then all the better.
I received the same error recently when developing a module. I copied all of the user controls in the admin folder and moved them to another to alter the code and development my own version of admin user controls. Within the declaration statement on manageusers.ascx (which was in a new folder), I substituted a different address for the user control (Src="~/admin/Users/User.ascx") -- one that pointed to my own version. This threw the same error you've been having, telling me that somewhere within the code, the User.UserCreatedEventArgs is sharing the same namespace somewhere. I don't know where, but that's the only conclusion I can think of. It's my guess that your third-party software might be doing the same thing--probably borrowing the same namespace to complete their module.
Sorry, not much help, but I'd like to figure it out, too, if their is answer. But I'm pretty sure of the cause.
1/9/2007 3:21 AM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Thanks for adding this to the thread.
I did eventually find the cause of the issue, but of course not until I'd restored and redone a lot of content. It's still sufficiently obscure that I don't know exactly why this happens.. it just doesn't make any sense to me.. but here it is:
The background: Ever since the new user profiles in DNN4, there have also been new 'required field' images in place of asterisks. These are ugly round red arrows that display very badly on non-white backgrounds. In addition, on certain skins, those images slip underneath the text fields and upset the layout of the page.. not to mention they then no longer point at anything.
So I have always done a couple of small things to my DNN instances. First I replace the arrows with my own tidier graphic... and second, I make a small change in User.ascx
I wanted to make it so the images don't slip underneath the fields, but because the dnn:propertyeditorcontrol has no table cells where I could simply set nowrap, I discovered I could stretch it out a little sideways with the editcontrolwidth and width settings already present. I would simple add a few pixels to the values.
Now that might seem pretty tame, and it worked perfectly for a long time, but then it caused the namespace error that started this thread. The error would occur only with certain skins. I tried all sorts of different values and it seemed to fail when the skin squeezed the control too tightly or something.
It's a mystery to me why it stuffs up and why it gives that namespace error message, but it absolutely does. I did it over and over again... simply changing the values a few pixels would make it fail. I confirmed it on a seperate DNN instance as well. So now I'm not touching it.
I did of course restore the core user.ascx file at least 2-3 times when I was posting earlier, but it didn't happen so clearly then and there must also have been some caching that was causing me to see the modded file... and as well, I would never have suspected this to be the cause. When I finally discovered the issue, I had to manually clear the cache each time to check for the error.
So.. if anyone does knows how to reliably widen the control, please let me know :)
And thanks to everyone who tried to help out.
Rob
9/2/2008 2:04 PM
jnuw
20 posts
Re: "User is ambiguous in the namespace" error after server change
Hello all. I just ran into this "User is ambiguous in the namespace" error on my 4.8.2 single portal dnn install. It was running perfectly for weeks, and this just popped up. Turns out that I too had made some minor changes to the user.ascx file. However, before making my changes I had backed up the file, by simply copying the file into "copy of user.ascx". My guess is that sometime between doing this, and today, .net came along and re-compiled this folder, and compiled both ascx files. So... I renamed the copy to "copy of user.ascx.bak", deleted the corresponding (temp) folder for this website UNDER "C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/", then recycled the app pool under IIS. I'm back up and running. Just thought I would add my 2 cents.
Thanks,
Jnuw
9/2/2008 7:29 PM
ROBAX
1817 posts
Re: "User is ambiguous in the namespace" error after server change
Yes, I can confirm this has been the case ever since this old thread. That user.ascx file is extremely sensitive to edits. Even a third party module I use that uses the same file, does the same thing.
I'd still like to be able to alter the layout of that file, so if anyone knows what causes the problem, please let us know.
Rob