CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




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: 4/17/2006 10:36:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 8 Views: 97 Favorited: 0 Favorite
9 Items, 1 Pages 1 |< << Go >> >|
"tonyjo" <>
NewsGroup User
Profile Provider Intellisense Not Working?4/17/2006 10:36:28 PM

0

In my code-behind in a VS2005 WAP project, when I attempt to modify a profile attribute by using Profile.WhateverTheAttributeNameIs, the Profile class cannont be located.  This works fine in VS2005 Web Projects.

To reproduce, add a generic profile attribute in your web.config and then try to update or reference the profile attribute in your code behind.  First, VS2005 won't even know what the "Profile." reference is and it definitely doesn't recognize your attributes.

Thanks.

TJ

"jamesqding" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?4/18/2006 5:22:36 PM

0

It is interesting to see we have the same problem ( my post "About Profile Provider in WAP").

I think this should be a bug on IDE for WAP since it should generate the same code WebSite does in temp directory.

Anyone from ASP.Net WAP team, could you confirm this is a bug ???

Thanks

James

"timmcb" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?4/19/2006 4:18:17 PM

0

This is not so much a bug as a difference in compilation models between web sites and web application projects. See the profile topic in the following for some more info:

http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx 

The basic issue is that profiles are compiled dynamically by ASP.Net.  In web sites your code files are also compiled dynamically by ASP.Net.  So, ASP.Net is able to first compile the profiles and then add an accessor and reference to your page and compile it afterwards.  In Web Application Projects your code files are compiled on the client.  They can not have references to dynamically created assemblies that do not exist or they will not compile.

This is a general issue for ASP.Net BuildProviders and and Web Application Projects.  We do not have a general solution yet.  The two build providers we get the most questions about are App_GlobalResources and Profiles.  For these two we are trying to come up with solutions.  The thought is that we will generate proxy opjects that get compiled into your assembly on the client.  The proxy objects for profiles will represent the state of the profiles in web.config at the time of compilation on the client.  You will have strongly typed access to the profiles through the proxy.  The proxy will work something like the sample code in the link above.


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
"jamesqding" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?4/19/2006 7:46:24 PM

0

Tim,

Thanks for the insight (server, client compilation, proxy) and pointer to Scott's  turtorial (appendix 2).

ASP.Net 2.0 and WAP really rocks.

James

"ken_willis" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?8/23/2006 12:07:18 AM

0

timmcb:

This is not so much a bug as a difference in compilation models between web sites and web application projects. See the profile topic in the following for some more info:

http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx 

The basic issue is that profiles are compiled dynamically by ASP.Net.  In web sites your code files are also compiled dynamically by ASP.Net.  So, ASP.Net is able to first compile the profiles and then add an accessor and reference to your page and compile it afterwards.  In Web Application Projects your code files are compiled on the client.  They can not have references to dynamically created assemblies that do not exist or they will not compile.

This is a general issue for ASP.Net BuildProviders and and Web Application Projects.  We do not have a general solution yet.  The two build providers we get the most questions about are App_GlobalResources and Profiles.  For these two we are trying to come up with solutions.  The thought is that we will generate proxy opjects that get compiled into your assembly on the client.  The proxy objects for profiles will represent the state of the profiles in web.config at the time of compilation on the client.  You will have strongly typed access to the profiles through the proxy.  The proxy will work something like the sample code in the link above.

Any updates on when the above might actually happen?

"timmcb" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?8/23/2006 6:04:51 PM

0

Proxy objects for App_GlobalResources are available in the current version of Web Application Projects.  I have provided an add-in on

http://workspaces.gotdotnet.com/AspWebProfileGenerator

that will generate a proxy object for your profile that will give you strongly typed access in pages.  We won't have an official solution for strongly typed profile access until the next version of Visual Studio.


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
"nettellect" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?6/22/2007 6:32:39 AM

0

timmcb:

Proxy objects for App_GlobalResources are available in the current version of Web Application Projects.  I have provided an add-in on

http://workspaces.gotdotnet.com/AspWebProfileGenerator

that will generate a proxy object for your profile that will give you strongly typed access in pages.  We won't have an official solution for strongly typed profile access until the next version of Visual Studio.

the link mentioned in this post is no more working because gotdotnet is being phased out.. please any other working link for AspWebProfileGenerator

"EngineerBill"
NewsGroup User
Re: Profile Provider Intellisense Not Working?6/25/2007 6:15:58 PM

0

I've searched the web as well for AspWebProfileGenerator as well and cannot seem to find it anywhere else. Anyone have an idea or able to post it elsewhere?

"timmcb" <>
NewsGroup User
Re: Profile Provider Intellisense Not Working?6/25/2007 6:28:43 PM

0

I'm in the process of moving the ASP.NET WebProfile Generator project from GotDotNet to http://www.codeplex.com/WebProfile.  The link should be valid in the next week or two.


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:













vs80-kb915364-x86-enu.exe will not install

xhtml validation during builds

multiple web application project

sln file after publish website

wap windows 2000 with iis 5

references to dataset break after converiting from web site to web application project

web application project 2005!!!

attempted to read or write protected memory : how to remove this error

f7 is not working. "server objects and & events" lost functionality.

page_load declared twice

c# and vb in the same project.

error generating designer file

problem with asp.net development server and internet explorer

installation problems

code behind problem

web application, web services application : interdependancies in a single solution

asp controls do not show in codebehind pages

adding class file option is not available

automatic building

publishing wap referencing user control project

visual studio 2005 web application projects --installation fails

support for asp.net ajax in wap

publishing web site from command line

assembly generation failed -- referenced assembly does not have a strong name

wap rc1 - adding global resource

web application projects doesn't work after installation

how do i publish a 2.0 website and get it put all it's dll info into one dll?

why cannot use a project namespace in a web project in vs2005 ??

access page controls from class

event handles after migration are broken.

problems using internal dev server with some controls in a wap template based project

generate email in vb.net

cannot register assembly error???

what is the difference between asp.net web application and website? confused

deleting global.asax hangs vs

f7 to switch from aspx "source" to c# codebehind - doesn't work?

the type 'foo' exists in both 'one place' and 'another'

application_start (global.asax) not firing on windows 2003 server

preserving source control history across migration

problem with templated usercontrols in web applications

not hitting some breakpoints...

studio messes up reference to web project

option to specify master page when creating new aspx

namespaces issues when migrating from vs 2005 web site projects to wap

could not find a part of the path "c:\inetpub\wwwroot".....

anonymous identification

deployment options

how to enable "show all files"

webapplication does not unfold a gat .vstemplate

many different issues migrating web applications from 2003 to 2005

   
  Privacy | Contact Us
All Times Are GMT