Re: ASP.HttpProfile to be undefined



That's good to know!

That explains how I got some profiles into the database without specifying a
provider. (Same for Roles.)

Since there is a provider in there,"AspNetSqlProfileProvider", I don't need
one. Right?

Actually I had this problem before I add the defaultProvider to me
web.config file so I'm probably looking in the wrong place for the solution.

The site you referenced said "AspNetSqlProfileProvider uses SQL Server 2005
Express ". Is that exactly true or can it also use Sql Server 2008?

It also mentions namespace: ASP { public class ProfileCommon

Somewhere else saw that the dynamic class was HttpProfile.

Are there two classes or maybe on is obsolete?

In any event, ASP produces an InteliSense that does not include either of
them.

I suppose that is the problem. Somehow the class is not being defined.

I wonder if anyone can tell me which is the correct class name.

And maybe a guess at why it is not being generated.

Is there some folder I can look into that should have a temporary file for
the class?

Or maybe some other approach?

Any answers would be appreciated









"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23b0ecyLTJHA.4916@xxxxxxxxxxxxxxxxxxxxxxx
re:
!> I have the following:
!> <profile defaultProvider="SqlProvider" enabled="true">

Look in :
BootDrive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG

for machine.config, and open it in Notepad.

Look for the "profile" section :
<profile>
<providers>
<add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</profile>

That should tell you what the correct defaultProvider is.

For good code examples, see this article:
http://www.vsj.co.uk/dotnet/display.asp?id=572




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"AAaron123" <aaaron123@xxxxxxxxxxxxxx> wrote in message
news:Oc4V2ULTJHA.4456@xxxxxxxxxxxxxxxxxxxxxxx
An example in a book included:
Dim userprofile As ASP.HttpProfile

But I get ASP.HttpProfile to be undefined.

There is Intellisense for ASP but the 3 items do not include HttpProfile
(one is _main_master another is global_asax)

I'd sure like to know more about the ASP class or namespace!



I'm using SQL Server and the AspnetDb database.

I've seen it referenced as Aspnetdb in the doc. Does the case matter?

I have the following:

<profile defaultProvider="SqlProvider" enabled="true">

I'd sure like to know why ASP.HttpProfile is not defined.





Thanks










.



Relevant Pages

  • Re: Right Outer Join in an ASP page using MS Access
    ... ASP have no knowledge of databases, nor of the various technologies such ... the problems of the provider and its interface. ... Problems with SQL are almost always problems of syntax or database design. ... You are strongly encouraged to use one of the native OLE DB Providers ...
    (microsoft.public.inetserver.asp.db)
  • Re: Profile Problem
    ... you need the Access provider. ... I added some profile properties to my web.config file. ... An error has occurred while establishing a connection to the server. ... using a database location within the applications App_Data directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Moving SQLExpress database to SQLServer?
    ... I've been developing an ASP.NET app using the default user and profile ... provider, which is SQLExpress. ... new database and somehow import the data from the old database? ...
    (microsoft.public.sqlserver)
  • Re: forms authentication vs windows authentication
    ... I you does not use the standard membership provider name, ... I created an asp user database and created a user ... Why not in my actual website though? ... Could it be an issue with my actual content database? ...
    (microsoft.public.sharepoint.portalserver)
  • Re: MS Oracle Data Provider BUG: Data corrupt after 16 rows with O
    ... Could you use this to check the data in your database? ... Once you have done this with both the Oracle managed provider and either ... imported into the 9i database without any errors (i tried 8i Client as well ...
    (microsoft.public.dotnet.framework.adonet)