Using .NET 2.0. I have a solution with 2 projects. 1 project is a webproject and the other a datalayer class project. At a point yesterday I decided to change the output dll name of the datalayer project, from Client.DataLayer.dll to TSD.Client.DataLayer. Now all was well, I removed the reference to the old dll in the webproject and added it again and all code in the webproject compiles fine EXCEPT for code in the app_code section.
The compiler still wants to reference Client.DataLayer.dll and I cant figure out how to tell it to reference the new dll (TSD.Client.DataLayer) and its really bugging me now for a day or so!!
Has anyone come across this issue, I have restarted IIS rebooted, everything but it still keep saying that I must add a reference to the assembly Client.DataLayer.dll.
Hi Thanks for the reply, The new DLL is copied into the bin drectory. The new DLL is TSD.Client.DataLayer.dll, the old one was Client.DataLayer.dll. So in the Bin directory there exists TSD.Client.DataLayer.dll BUT the app_code source compile fails saying it needs Client.DataLayer.dll. I really have not seen this before and its stumped me.
It all happened when I changed the output assembly to the longer name and re-referenced all my projects inthe solution.
The project I am having issues with is an llblgen project and in all my other solutions this is not needed...This solution DOESN'T have it included under assemblies (I did think that had to be included in the web config but my other solutions dont have it so I stopped thinking of this as a solution to my problem). Even so would adding the new dll stop the error?
C:\projects\ASP.NET 2.0\Barton\Web\App_Code\SessionHelper.cs(24,9): error CS0012: The type 'TouchScreenData.Client.DataLayer.EntityClasses.ContactEntity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Client.DataLayer, Version=1.0.3034.18882, Culture=neutral, PublicKeyToken=null'. C:\projects\ASP.NET 2.0\Barton\Web\App_Code\SessionHelper.cs(24,66): error CS0029: Cannot implicitly convert type 'TouchScreenData.Client.DataLayer.EntityClasses.ContactEntity [c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\e8658b4f\5b8b73e1\assembly\dl3\d8093926\1ce27ddc_c6b1c801\TouchScreenData.Client.DataLayer.DLL]' to 'TouchScreenData.Client.DataLayer.EntityClasses.ContactEntity []' C:\projects\ASP.NET 2.0\Barton\Web\App_Code\SessionHelper.cs(25,9): error CS0012: The type 'TouchScreenData.Client.DataLayer.EntityClasses.OrganisationEntity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Client.DataLayer, Version=1.0.3034.18882, Culture=neutral, PublicKeyToken=null'. C:\projects\ASP.NET 2.0\Barton\Web\App_Code\SessionHelper.cs(25,71): error CS0029: Cannot implicitly convert type 'TouchScreenData.Client.DataLayer.EntityClasses.OrganisationEntity [c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\e8658b4f\5b8b73e1\assembly\dl3\d8093926\1ce27ddc_c6b1c801\TouchScreenData.Client.DataLayer.DLL]' to 'TouchScreenData.Client.DataLayer.EntityClasses.OrganisationEntity []'
Most of the stuff in App_code is generic HTTP Handlers. The sessionHandler is a way of assigning a session state for a uer when he/she logs in. THe helper is called on loging to set up session objects so that the home page for the user is valid.
I am not sure I understand your question attached to? Its just a class file that is used in the WebProject on various usercontrols.
The other files that fail are all generic HTTP Handlers. This all boils down to when I changed the namespace of the DataLayer. Something has got screwed when I did it and I dont know what. I am not working today but need to sort this out tomorrow one way or the other. Maybe put the name back to what it was....
But thanks for you comments so far, if you have any more they will be greatfully received.
hhmm I see, I attached a file to the comment, so I am not sure why we cant see it, I will try again.. AH I think know what happened. I attached a cs file and thie submit didn;t tell me it failed as they only accept png, bmp etc so here goes again.
Latest news... I changed the assembly name of the DataLayer back to the original and all now works. I will leave this open for a while to see if more comments arise. Many thanks TheLearnedOne I will assign points