Hi All,
Im very new to web development in .net (im coming from a phpdominated relam).
I have vstudio express. Im trying to create a simple "helloWorld" page on my local machine then upload and run it on our server. Ourserver runs win2003, .net 2, IIS but NO SQL SERVER. It will never run sqlserver (express or full edition), this fact is out of my control.
So,.. I make my simple page. I run it on the dev server onmy local machine and it greets the world as I expect it to.
Next I move the website's directory into a virtual dir on myserver. I get an error. Some sorta authentication error.
Im certain that the error stems from the fact that vstudiocreates a .mdf file to keep track of website admin stuff. In my simplestexample of the "hello world" page, visual studio has created a .mdf (I have nointention of implementing roles and memberships for this application).
My dev machiene has sqlserver (express) on it, my web server doesn't.
Can I turn off this "membership and roles" functionality? CanI tell vstudio to use a database besides sqlserver for this purpose? Whatoptions do I have to make my little page run on a server that doesn't haveSQLServer?
Any thoughts or suggestions would be greatly appreciated.
Thanks
Jeremy
Hi j_nord,
Since you'r new to .NET applications, I advice to see thetutorils provided by ASP.NET
I think you can run a web page on a server that doesn't have SQL if you are not working with data base, but you since you worked with php based on Linx servers and appachea, .NET needs it's own Windows Server which has .net framework.net2 installed,
And your page on your machine worked well because of the additional components installed with the visual studio, for more information about Windows Hosting that support ASP.NETclick here
It looks like you are not using "membership and roles" functionality because they are not used by default. You are also not using SQL server in your example so you don't need to change any of the SQL setups. I think your problem is related to your virtual directory also make sure your IIS is set up to use .NET 2.0.
Hi Folks,
Thanks for the replys. I think I am having difficulity explaining my problem here. 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
Hey,
>> It looks like you are not using "membership and roles" functionality because they are not used by default.
The version of visual studio that I have is in fact using membership and roles by default. I say this cuz I never explicitly indicated to visual studio that I want to use membr. and roles .
>>You are also not using SQL server in your example so you don't need to change any of the SQL setups.
Right, Im not using SQL server in my example.
>>I think your problem is related to your virtual directory also make sure your IIS is set up to use .NET 2.0
this has been done. The virtual directory has been set to run as an application using the .net 2.0 framework.
Thanks for you thoughts.
Jeremy
Hey All,
To disable the membership and roles functionality in visual web developer, thus creating a web site that doesnt depend on SQL I did the following:
comment out the following line in in Default.cs:
using System.Web.UI.WebControls.WebParts;
and also I commented out the following line in web.config
<authentication mode="Windows"/>Hopefully this will help anyone else who is trying to make a web site that doesnt need sql server. If anyone has a better way of acomplishing this, please lemme know.ThanksJeremy
0 comments:
Post a Comment