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.visual_studio_2005 Tags:
Item Type: Date Entered: 8/15/2005 2:04:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 87 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"TheSpeedOfDark
NewsGroup User
Reference issues/App_Code8/15/2005 2:04:16 PM

0

Hello all,

I've created (in the app_code folder) a class called common.vb.
At the top of the file, before the public class common line,
i created a public structure called User, and it contains basic properties like firstname, lastname, etc.
Now, I have a main Asp page, called Index.aspx. A user control called GatherInfo.ascx. With GatherInfo.ascx.vb, the code behind imports the common class, and has its own property of type User (from common.vb). When I attempt to access this property from Index.aspx (having of course registered the class at the top of the page with a tagprefix of User1)
I receive the following visual studios error:

Reference Required to assembly 'AppCode.kqzkqziee, version = 0.0.0.0 culture = neutral, PublicKeyToken=null, containing the type User, add one to your project

If i were to try to access that structure. for example imagine i did this:

1) Create a variable of type UserInfo (from the common class)
2) Call the User1.retrieveUserInfo sub  (remember User1 was the tag prefix for the GatherInfo user control)
3) Assign this property from User1 to the struct we declared in step 1 (both of the same type of course)
4) Line 3 would generate the above error in red.

Now if i just changed the property's type from User to something basic, like integer, everything works fine.
Any suggestions? Thanks all this is killing me. I'm assuming its some sort of register/compile issue i've confused.Super Angry <img src=" src="/emoticons/emotion-39.gif">

Mike

Here is some code for the user control i did.

Public userInfo As User

Public Property uInfo() As User
Get
     Return
userInfo
End Get

Set(ByVal value As User)
     userInfo = value
End Set

End Property

'this code below is responsible for taking any values typed into the textboxes in the user control, and assigning them to the struct's values.

Public Sub retrieveUserInfo()

With userInfo
   .firstname = txtName.text
   .lastname = txtlName.text
End
With

End Sub

"billhie" <>
NewsGroup User
Re: Reference issues/App_Code8/17/2005 3:57:07 PM

0

Thanks for the report. This is a known issue with intellisense in the current drops of Visual Web Developer and the Web Platforms and tools team is actively working on a solution. The problem manifests itself when a type consumed by a user control (or global.asax ), say a base class or structure, is defined in the app_code folder. When the user control is consumed by the page, the intellisense gets references to the app_code folder and the built user control, and doesn't recognize that the type exists in the app_code folder reference. The only work around is to build the web which forces synchronization of the types. However, if you make a change to the app_code folder the problem will probably reappear.  Note that this is a design time intellisense issue only - the web operates correctly at runtime.

Bill Hiebert

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


Free Download:













code to dll

vwd vs. vs 2005

vs 2005 sp1 problem

what does asp.net 2.0 use instead of wwwroot?

dll.refresh fetches correct dll during build, then overwrites with an old version after build

custom build task logwarning - treat warnings as errors

does webdev.webserver.exe load asp pages?

debugging in firefox and ie

quickwatch dump

atl question

a wish...

web site administration tool in vs 2005

new asp.net page in visual studio 2005 - very simple question

when using <identity impersonate="true"> in .net 1.1, and 2.0 is there some differences?

newbie -- copying existing aspx and aspx.vb files into whidbey

old aspx files in memory !!!

visual datasource control doesn't show

extremely slow web site build

visual studio 2005 charting

development strategy for 2 beginning developers

move default .cs code-besides file to another location

what does 'wrap' means in vs2005?

start page killer addin

background image for textbox in asp.net 2.0

vs purchasing options

awkward situation

compiler taking forever!

remote debugging through remote iis?

creating an add-in to manage globalization

moving a project from one copy of visual studio to another

orcas release date?

publish -- ignore individual directories

cannot remove custom control

scripting asp.net impersonation

"unable to connect to visual studio's localhost web server"

problem building asp.net 2.0 web application

problem with manifest

vs2005 publish web site (release mode ) do not exclude .pdb files

asp.net development server not automatically starting

connecting vs 2005 with visual source safe

visual studio team system - changing tfs source control server

how do i run a aspx sub after a web service completes?

web parts(user control) clear automaticaly when page is binded in page load

how do i copy a project in vs 2005?

inline vs. code-behind inheritence

web site in three languages

how does vs determine file status in copy web?

accessing properties of buttons in a table layout

no intellisense

problem when deploying web application project over vs2005 web site project

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT