(I started a different thread on this earlier today, so I apologize in advance if this violates some kind of posting protocol - I was hoping to get a fresh look at my problem)
My basic issue is that sometimes (and not always, doggone it) I get hundreds of compiler errors and warnings on a fresh DNN 4.0 website. One example: Admin\Containers\ActionButton.ascx.vb, line 227 contains "If... PortalSecurity.HasNecessaryPermission(...".
If I completely wipe out my site and folders and re-extract the DNN 4.0 zip file, edit and rename release/web.config to point at my SQL Server environment, re-add the website in IIS, then open the website in the Dot Net 2.0 development environment and try to compile it, I get the error "Name 'PortalSecurity' is not declared"
Checking back in my 3.2 project which works well, I locate the same function call, right-click and go to definition, and find that the class and function are in components\Security\PortalSecurity.vb, which is in the DotNetNuke.Security namespace. Back to the 4.0 project, import the namespace into the ActionButton code file, and the error goes away.
This seems ridiculous. Anybody have any clue? I thought I followed the setup instructions which seem simple enough. I've got hundreds of errors to work through, and I hope that perhaps I've just made a rookie mistake.
Thanks.