Last post Dec 11, 2006 09:32 AM by nima.mi
Dec 08, 2006 02:57 PM|nima.mi|LINK
I've developed several projects using UIProcess application block without any issues. This time, I created a web application as usual using the ApplicationBlock; it was working fine until I merged it into another solution. I've created all the references
an everything is fine and I can build my website without any difficulties. But when I actually brows the website, I get this error:
The type or namespace name 'ApplicationBlocks' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
I know I'm not missing any reference, I'm using VisualStudio 2005 and the IntelliSense shows everything. The problem is, a part of the main application uses a Microsoft component (Microsoft.Office.Something) and I think the namespaces conflict.
I found a KB addressing this issue but it works when your own namespace conflicts with someone elses (like My.System and System) but what about Microsoft namespaces?
I think one way to fix this is to use strong naming; I have to deploy the assembly as a private assembly, I'm not sure how it works in my case.
Does anyone have an idea?
Dec 11, 2006 09:32 AM|nima.mi|LINK
Oh, OK! I found it myself!!! The solution was totally irrelevant to the nature of the issue I could say; but anyway I'm wirting it here.
I had two copies of the project, one was under my wwwroot folder and the other one was on a different folder but defined as a virtual directory under the same name. The second one had some missing references
while I was trying to fix the issue on the first.
This wasn’t really a programming issue, but rather an HR issue so I'd like to suggest the following as the preventive measure:
Do not work on problem solving tasks for more than 2 consecutive hours; always take a break for a few minutes and please, talk to some people around you and make it a “real” break. If you
are a manager encourage that.
Always work on sophisticated issues in pairs. The time and energy you save worth the “cost” of the additional resource.