j_nord

Hi Folks,

Im having some issues with visual studio express and its built-in membership and roles functionality. Mainly, I want to turn it off (or at least use a database besides sql server). In my begginer mind, it seems that what I want to acomplish should be a simple matter.

Here's my situation:

My WebServer: WIN2003, IISx, .net 2, (no sql server)

My dev machiene: winxp, .net2, visual studio express.

My problem: Visual studio, by default, creates a .mdf file (sql database) to store membership and roles (and perhaps other information). This seems to be happen automatically. I dont ask for a mdf, it assumes I need it. My webserver doesnt have sql server, so all my apps crash when run on it.

My question (two part): a) Can one disable visual studio's inherent desire to create the .mdf file

b) How

Many Thanks

Jeremy



Re: Visual C# Express Edition how can I disable default membership and roles behaviour?

Andrej Tozon

Hi,

if you're using WebParts, ASP.NET application by default wants to store user profiles in SQL (Express) database. You can turn this behaviour by disabling personalization through web part manager:

<asp:webpartmanager id="..." personalization-enabled="false" ... ... />

Andrej






Re: Visual C# Express Edition how can I disable default membership and roles behaviour?

j_nord

Hi Andrej!
Many thanks for your suggestion.

Althought I didnt follow your example exactly,.. in my default.cs code page I commented out the
"using System.Web.UI.WebControls.WebParts;"
line
and I also had to comment out the
"<authentication mode="Windows"/>"
line in web.config.

Finally, my .net 2 page work on my sqlless webserver.

Thanks Again!
Jeremy