.NET Framework - ASP.net membership/role/profile question - is it possible?

Asked By RM
09-Feb-10 04:39 AM
Hi guys,
I am using ASP.net Membership, Role and Profile under Windows form and it is
working fine.
Now I want to encapsulate it in a DLL that can be used with my Forms and
Other DLLs if required.

The problem is that when I am calling the encapsulated
membership/role/profile library things does not work
(some error message like "membership/role/profile is not enabled"). Things
working again if I add the App.config
file from the encapsulated membership/role/profile libary to the library or
the forms project that I am calling it.

My problem is that I do not want to duplicate the same App.config (which has
the menbership/role sections) again
and again.

The question is how can achieve this? How can I force other project files to
use the same App.config that is
defined in the DLL? Any suggestions?

many thanks

RM
DLLs
(1)
Nietzsche
(1)
Windows
(1)
Gengo
(1)
Menbership
(1)
Libary
(1)
Chaos
(1)
Guys
(1)
  S. Justin Gengo replied to RM
10-Feb-10 11:54 AM
RM,

Each application uses it is own app.config file to control it is own settings.
So sharing an app.config file is not a great idea.

But, you can have your dll write what it needs to the app.config file itself
so that you do not have to manually copy the data every time:

http://www.dotnetspider.com/resources/27179-Dynamic-App-Settings.aspx

--


Sincerely,

S. Justin Gengo, MCP

Free code library at:
http://www.aboutfortunate.com

Nietzsche
Create New Account
help
ContentAlignment (1) GraphicsUnit (1) EventHandler (1) FontStyle (1) CheckBox (1) TextBox (1) Is this a Windows Forms application? If so, there ishould be a region titled is not totally packed with InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceForm)); this.textBox17 = new System.Windows.Forms.TextBox(); this.textBox15 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox4 = new System Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms
the default "hello world" app (F7), but got some message about "the Standard SDK for Windows CE .NET" and the choosen (not by me!) processor being incompatible and "cannot be run some help / directions. Regards, Rudy Wieser WindowsCE Embedded VC Discussions Pocket PC 2003 SDK (1) Windows Mobile 5.0 (1) Windows XP (1) Virtual PC (1) Internet Explorer 8 (1) Windows Mobile 2003 (1) Visual Studio 2008 (1) Visual Studio 2005 (1) You need to download pointer / link or two. By the way, do you have any idea to why that "Windows Mobile 5.0 Pocket PC SDK" refuses to install (its stated reason does not match http: / / www.pocketpcfaq.com / faqs / comparison / wm50ppcphone.php So now I know you have a Windows Mobile 5 Pocket PC Phone Edition, and so you should use the SDK for that is very fussy about differences between the target platform (Pocket PC 2003) and actual platform (Windows Mobile 5 Pocket PC Phone Edition). Each SDK targets a specific "platform". A "platform" is a combination of hardware, the underlying operating system (Windows CE), tweaks to that operating system (additions and subtractions), and applications. Examples are Pocket PC
top-most or so. . . Any suggestions are really grateful. Thanks!!!! C# Discussions Visual Studio (1) Windows 7 (1) EventHandler (1) Exception (1) EventArgs (1) Class (1) VB (1) XP (1) try scenario, but definitely the same root cause): https: / / connect.microsoft.com / VisualStudio / feedback / details / 581382 / windows-taskbar-can-activate-a-non-modal-window-when-a-modal-window-is-active-wpf-winforms use the ShowInTaskbar property to make a dialog box that is not displayed in the Windows taskbar." Each sample has an explicit comment about setting the form's ShowInTaskbar property to form2 to receive focus. . ." If you attempt to reproduce the same behavior with just two windows, one modal and one not, it works differently: selecting the non-modal window from the a window's presence in the taskbar, and with the "live" thumbnail views available in Windows 7, there is every reason to want to keep the window there, even when the not be? The OP offered no reason why it is necessary to show the modal windows in the taskbar. Making the window accessible is the source of the unexpected behavior. The is a complete non-starter. First of all, Microsoft headquarters is in Redmond, WA. The Windows and .NET dev teams remain there, at least for now. Secondly, the unexpected behavior is would support it. Pete Who says not? Have you ever seen the sentences through the Windows taskbar." and on the same page of .NET documentation? Are you absolutely certain in your
is vb.net? VB.NET Discussions Visual Studio 2010 (1) Visual Studio (1) Silverlight (1) Windows 7 (1) Office (1) Vista (1) Linux (1) Error (1) HI again all I see can be bothersome to access a specific name within the structure. For example, accessing System.Windows.Forms.Cursor.Current is a lot to type. Every time. For this reason, "Imports" are add Imports per file or at project level. So you can write this: Imports System.Windows.Forms class c sub bla cursor.current = . . . . end sub end class The name "cursor" is not found inside Sub bla, not inside class c, but inside the namespace System.Windows.Forms. That's why and how it works. You can also import a Class like net for two reasons. 1) In case my vb6 projects will not work with future Windows versions and 2) as a challenege. 1 is more important by a long way. But server is an actual library file. One needs to know about the design of COM DLLs and they are objects / classes in order to make sense of why there are servers server.class) is hard to understand until one knows the basic layout of COM, with DLLs, typelibs, and classes / objects. Shelton is a namespace. Tom is a class. Shelton your kids reason. Stick to vb6, but good luck in the future - if the rumors are true, windows may not be x86 forever :) - - Tom Shelton Am 04.01.2011 19:50, schrieb Mayayana
Herz und Hirn haben. (Michael Anton) VB - German Discussions DirectCOM.CreateObject (1) VSFlex8.C1Grid (1) Windows 7 (1) Vista (1) XP (1) VB (1) Bibliotheksnamen.Klasse (1) UseAlteredSearchPath (1) Hallo Reiner ver?ffentlichten Klasse - Einstellungen im Projekt - Fehler in VB Ich habe ebenfalls seit Jahren andere DLLs, die sich ab und an mal ?ndern und diese Probleme nicht verursachen. Hier treten eigentlich wenn auch die untere Schicht betroffen war. Der VB-Compilierer compiliert mir die ca. 100 DLLs / OCXe / EXE-Files, kopiert diese in ein Updateverzeichnis, so das ich nach einem erfolreichen test in der NG nach Beitr?gen von Olaf (Schmidt) zur ComDirect.dll. Er bietet die DLLs und auch Beispiele zum Download an Wenn es nur um einige DLLs geht, kann das ein guter Workaround sein. Wenn Du daran Geschmack findest (so wie ich das MS-DOS: Darauf der Kuhfladen: Die DirectCOM.dll erlaubt es, Class-Instanzen von ActiveX- Dlls zu erzeugen, ohne dazu die Registry zu bemühen - ist also weniger ein "BinComp-Problem-Beseitiger jedoch einen gewissen Aufwand in der eigenen App voraus, um die Pfade zu den jeweiligen Dlls korrekt zu verwalten (der einfachste Weg ist hierbei, die mitgelieferten Dlls neben die Exe zu legen, so dass man mittels App.Path relativ einfach "Bezug nehmen