Advertisement

05.09.2008 at 02:43AM PDT, ID: 23388776 | Points: 500
[x]
Attachment Details
Change reference in web project now fails app_code compile
Tags: MIcrosoft, Visual Studio 2005, c#
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.

PWould really appreciate someones input.

Many thanks

Richard
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: rparkins
Question Asked On: 05.09.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.09.2008 at 07:10AM PDT, ID: 21532965

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:08AM PDT, ID: 21533619

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:52AM PDT, ID: 21534653

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 12:37AM PDT, ID: 21538136

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 02:14AM PDT, ID: 21538305

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 02:16AM PDT, ID: 21538311

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 02:24AM PDT, ID: 21538328

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 04:23AM PDT, ID: 21538515

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 08:22AM PDT, ID: 21539360

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 08:28PM PDT, ID: 21541380

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 02:42AM PDT, ID: 21541961

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 04:04AM PDT, ID: 21542085

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 11:45AM PDT, ID: 21543154

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 01:53PM PDT, ID: 21543456

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.09.2008 at 07:10AM PDT, ID: 21532965

Rank: Genius

Did the referenced DLL get copied into the \bin folder?
 
05.09.2008 at 08:08AM PDT, ID: 21533619
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.
 
05.09.2008 at 09:52AM PDT, ID: 21534653

Rank: Genius

Do you have a reference in the web.config file under <assemblies>?
 
05.10.2008 at 12:37AM PDT, ID: 21538136
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?
 
05.10.2008 at 02:14AM PDT, ID: 21538305
OK I added the reference under assemblies and it now says that its cant find the assembly Client.DataLayer

I am stumped.
 
05.10.2008 at 02:16AM PDT, ID: 21538311
THis is the error I am getting

Error      55      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      24      66      http://localhost/

 
05.10.2008 at 02:24AM PDT, ID: 21538328
More failure info

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 []'

 
05.10.2008 at 04:23AM PDT, ID: 21538515

Rank: Genius

Now that sounds like a syntax problem.  Can you show me how it is being used in the SessionHelper?
 
05.10.2008 at 08:22AM PDT, ID: 21539360
My SessionHelper code attached

Many thanks

OINterestingly its on ly the COntacts tat is flagging as failed to comiple... hhm
 
05.10.2008 at 08:28PM PDT, ID: 21541380

Rank: Genius

What is your code supposed to be attached to?
 
05.11.2008 at 02:42AM PDT, ID: 21541961
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.
 
05.11.2008 at 04:04AM PDT, ID: 21542085

Rank: Genius

>>My SessionHelper code attached
Attached to what?
 
05.11.2008 at 11:45AM PDT, ID: 21543154
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.



 
05.11.2008 at 01:53PM PDT, ID: 21543456
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
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628