CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 6/5/2006 10:54:22 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 33 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"eyoung" <>
NewsGroup User
Custom control assembly references not resolved correctly6/5/2006 10:54:22 PM

0

I'm using a Web Application Project as a control library by wrting User Controls then using a Web Deployment Project to compile the .ascx files into an assembly and deploying that assembly along with the output of the Web Application Project to a Web Site Project that will use the controls. My Web Application Project builds, but my Web Deployment Project fails with the following error:

Error 108 Reference required to assembly 'Digop.EnterpriseControlRoom.CompiledUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05356650562eee27' containing the type 'Digop.EnterpriseControlRoom.ModuleControllerLayout'. Add one to your project.

Digop.EnterpriseControlRoom.CompiledUI is an assembly containing custom server controls that I'm using in my User Controls. The Web Application Project has a reference to this assembly. I can reference the controls in the code behind with no problem. I can create user controls in a Web Site Project that use the custom server controls in Digop.EnterpriseControlRoom.CompiledUI. Why can't  aspnet_compiler (used by the Web Deployment Project) find the assembly? The .vbproj project file has the reference in it. Do I have to declare the reference somewhere else as well (web.config?)?

I've noticed that in a Web Site Project, where the reference is found, user controls have CodeFile attribute and in the Web Application Project, where the reference is not found, they have a CodeBehind attribute. Does my problem have something to do with that?

"billhie" <>
NewsGroup User
Re: Custom control assembly references not resolved correctly6/8/2006 3:57:46 PM

0

Web application projects are really a hybrid of Web Sites and class library projects. The code behind files behave like a class library project in that they are built by VS on the client machine into an assembly that is pushed to the bin folder. The aspx page, on the other hand, is built at runtime by the asp.net build engine. The class which represents the aspx page inherites from the code behind class. In web sites, the code behind class is referred to by the Codefile attribute - this signals the asp.net build engine to build that class along with the class generated by the aspx page. This is the server side compilation model. WAP (and VS 2003 web projects) use the codebehind attribute, which is ignored by the asp.net build engine (which makes sense, since the code behind classes are built together by VS), however, the build engine does use the inherits attribute to identify the class to derive the page from.

To answer your question, the page, since it is built by the asp.net runtime requires a reference to the 'Digop.EnterpriseControlRoom" controls in order to build it. References for the asp.net runtime (which knows nothing about vbproj files) come from either the Bin folder, or from the <Assemblies> section of web.config (these are generally GAC assemblies). Normally, when you droip a control onto the webform designer, it will add the reference to web.config (if it is a GAC assembly) or add it to Bin (non-GAC assembly), for you. The following link has an example of how to add an entry to web.config.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfassemblies.asp.


Bill Hiebert

Visual Studio Web Tools
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













unable to start debugging on the web server.

c# developers want to have fun too.

defaultwsdlhelpgenerator.aspx

why does my toolbox dissapear??

"the operation could not be completed" using the open command in the command window

getting request for the permission of type system.web.aspnethostingpermission a lot

project is no longer using asp.net development server

how to use code snippets in .aspx file

vs 2005 application works in asp.net development server, but not in iis5.1

asp.net configeration error message

increase undo levels

vs2005 javascript debugging just does not work

visual studio 2005 and mobile web form

vwd crashes!

vs 2005 sp1 .designer.vb auto generated comments

need my datas in japaneese

enable linkbutton's after clicking the another linkbutton

source control for .net and integrated with visual studio 2005

how to enable an item in the vs2005 toolbox?

visual studio forcing me to enter optional parameters

not getting breakpoint from second browser in asp.net 2.0

how to make visual studio's task list more reliable

skins and child properties on a control

vs 2005 debug on firefox, i want to change to run on ie

why doesn't stop mean stop?

configuring the asp.net webdev server

summary documentation

lock compilation assembly in web.config

procedure to create new website in vs 2005 on a remote machine

the design tab/window seems to be locked for my asp.net page

somewhat of a dumb question regarding creating dll's in vb.net

c# property formatting

code model

new website / project

vs2005 is renaming my usercontrol classes!

how do i export an excel file to a sql database in visual studio vb?

asp.net 2005(using c#)code: getting value of a textbox control within a nested gridview

installed templates

bata one and web application

working with the tab index on autopost back using vb.net

database

datatable export to excel

reportviewer.showprintbutton not working

visual studio install

vs 2005 nag, nag nag...

c# testing project templates are missing!

right way to setup vss2005 for a small team

help - vs2005 changes conditional comments

upgrade to team edition problems

strange yellow plus node appearing next to files

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT