Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2007, 12:05 PM
Authorized User
 
Join Date: Jun 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Membership defaultProvider

I am writing my custom OraclemembershipProvider. Does this class always has to reside in the App_Code folder.?
When I try to put this in the other folder it throws an error saying:
default provider not found...?

I want to put this class in the folder where I have my middle layer components?
I also tried to specify the path in web.config for the membership's defualtprovider attribute.. but it does not work.
 
Old June 28th, 2007, 08:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you are building an "ASP.NET Web Site Project" (vs. a web application project) any code you wish to be compiled that isn't directly part of an ASPX page needs to be in the App_code directory. That's the special ASP.NET folder that automatically compiles. You could put this class in another assembly and reference it from the web site.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership.UpdateUser() dcct84 C# 3 October 3rd, 2007 02:27 PM
Membership Troubleshooting Laenas1979 ASP.NET 2.0 Professional 0 July 3rd, 2007 01:29 PM
Membership security Maxxim ASP.NET 2.0 Professional 1 February 13th, 2007 10:39 PM
Membership and different applications Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 February 12th, 2007 11:35 PM
membership provider davyquyo ASP.NET 2.0 Basics 0 January 1st, 2007 04:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.