Sql Server 2008 - .Net Membership Via .NET Website Administrator Tool?
Mar 11, 2010
I created a database with aspnet_regsql, the database was created in sql sever 2008 and not in data folder in my project (do I need to move it to the folder manually?). Next, in Web Site Administration Tool I went to provider section and clicked don Test button.
I got an error:
Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
Maybe I need to set something in a web.config, like membership settings or connection strings (or ASP.NET Website Administrator Tool should create those settings for me)?
Update: Maybe it happens because I am using SQL server 2008 full and not express?
Update 2:
After setting membership section and connection string to my aspnetdb database in Web Site Administration Tool I've opened security->Security Setup Wizard->Define Roles (stage 4) I got this error:
An error was encountered. Please return to the previous page and try again.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database. at
System.Web.Administration.WebAdminPage.CallWebAdminHelperMethod(Boolean is Membership, String methodName, Object[] parameters, Type[]
paramTypes) at ASP.security_wizard_wizardpermission_ascx.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control
namingContainer)
View 2 Replies
Similar Messages:
Jan 3, 2011
since installing VS2010 I have problems with configuring membership. Using a online sql database what I prepared with the aspnet_regsql tool tables are there connection string is ok! when I open the ASP net config tool, I do not manage to select the membership provider. Underneath my web config file. can sombody tell me what is wrong??
[Code]....
View 3 Replies
Jun 19, 2010
how to create a user as administrator using web site administration tool
View 1 Replies
Nov 2, 2010
I am pulling my hair on this one..
I have Active Directory Memebership Provider configured like this:
[code]....
The provider is instantiated correctly but when I call this:
var user = Membership.Providers["myDomain"].GetUser("myUser", false);
the call always returns null, except the case when I pass "Administrator" into the call... I have run out of ideas on how to make it work.
View 2 Replies
Jan 6, 2010
I'm very new to ASP.Net, but I've put together a reasonable site. I have used the user account and rolls which come with VS.
This all works fine for me, but I want to be able to change user's rolls and folder security when the site is live.
Is there any way of accessing the ASP.Net Web Site Administration Tool once the site has been moved to a production server?
If not is there any easy way to accomplish this other than write pages to do this yourself?
View 7 Replies
Feb 2, 2010
I am have problem getting the security selection to view properly. Instead of getting roles and so on I get this following error message:There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem:Unable to connect to SQL Server database.
View 2 Replies
Apr 8, 2010
we are a small team of student developers and we are making a website with a silverlight application hosted on the sample website of VS 2010(i mean the one you go New website new asp.net website).But we cant understand how the login works or how we can put roles like administrator and such.Also we are using master pages and pages and i would like to know how can we make container to not being visible to an unregistered user and how to be visible in registered or better to a spesific user.
View 1 Replies
Jan 6, 2010
I am new to vwd. I installed vwd express edition 2008 with sql express 2008 in xp sp2. After this i installed report view 2008 addon for vwd express. After the installation i noticed that there is no toolbox in my vwd. Before it was there.
View 1 Replies
Jul 22, 2010
I want to make a secure website using ASP.NET, but when I publish it, the domain administrator can see all the data stored in my database (SQL Server). I want to hide my data and code from the domain administrator too. Are there any procedures to do that? give me the address of a good domain I can use, which will give me all administrative power of my website (Domain owner also cannot access my databases and files.)
View 6 Replies
Jan 4, 2011
On the local development machine a number of users are administrators (using the asp.net administer website tool accessible via the login controls on the page).
When the site is copied to the production server, these users can still log in, but they are not administrators anymore.
I can use the same way as on the local machine to rectify this. And this works when the site is run of the development tool (visual web developer express 2010, i.e. local host).
However, the functionality (admin users can access certain websites (via if(User.IsInRole("Administrator") == true) is not working when the same code is run in the production environment real production server, not localhost). Somehow asp.net is not recognizing that users have been set to that role.
View 1 Replies
Jul 9, 2010
I'm deploying a web site to a server I've set up for testing. The website works great in development (Running in VS 2010) as well as in production on multiple client sites. I'm simply trying to test the site in a new environment. I simply copied the complete site (pages, code, directories, everything...) to my server. In IIS7 I created a new web site pointing to the directory containing my site's files and directories. I can open my site and my initial login page loads.
Database connections are made, page and buttons all seem great. Then, I log in. In the first line of code that attempts to instantiate an instance of a class contained in my App_Code folder, an exception is thrown, 'Invalid object name'. I've messed with as many settings as I could in IIS7 but to no avail. I've searched the internet on something regarding this, but nothing seemed to apply. At this point I'm about ready to install Visual Studio on my server to get it to run (this was the route one of the other developers took).
View 3 Replies
May 19, 2010
i wanted to show multiple items detail on tool tip,as far as i know datalist is can showing single item I have scenario like Price,: item detail info : etc i googled for this but did not get the solution so far exactly.
View 4 Replies
Jul 7, 2010
How to add Ajax controls into VS 2008.
I did the following steps,
Tool Box ->(right click) Choose Items
Got a new window, there i clicked Browse button but not getting the location selection window.
I did the same on vs 2010 there i can but 2008 can't,
OS : Windows 7 64bit Ultimate
View 12 Replies
Nov 8, 2010
I can't figure this out. I have a simple ASP.NET application that I am hosting on my computer which all local computers can hit. The next thing I want to do is setup the website for public access. No matter what I can't seem to get it to work.
- I have allowed incoming connections to port 80 through the firewall.
- I have setup my router to port forward all HTTP requests (80) to my locally assigned IP (192.168.1.XXX).
- I have setup my server to use anonymous authentication, which is set to "Application pool identity".
- I have even shut off my firewall to try and see if it would work.
Can't figure this out. Read a bunch of information, and in my head this should work, but it seems like I am missing something simple. I realize this thread's subject matter applies to IIS7 more-so than ASP.NET, however since I am relatively new to ASP I figured maybe I missed an ASP setting or something.
View 7 Replies
Sep 10, 2010
I have developed a website using visual studio. Now i want to deploy the same on server having windows server 2008 o.s. and IIS 7. When i copy the website and paste it into wwwroot folder of iis its not working. What settings need to be done so that website can be accessed from iis.
View 2 Replies
Dec 16, 2010
I'm new to AJAX control tool kit....
I have downloaded the ajaxcontroltoolkit.Binar.NET3.5.zip and extracted the file to a folder in local box. i have done the following steps to attach the toolkit to vs2008.
1. Right clicked in empty place of toolbox ==>Add Tab, Named the Tab.
2. Inside the new tab, right clicked ==> choose Items...
3. In the Choose Tool Box Items window, browsed to the dll,
4. After that i can see the Ajaxcontrols in Choose Tool Box Items window and all of them were checked, but when I click ok in that window, its not adding the Items to the list.... Tried this several times....
View 4 Replies
Feb 23, 2011
Some of my users are getting the following error
HTTP 502 Proxy Error - The size of the response header is too large. Contact your ISA server administrator. (12216) Internet Security and Acceleration Server
I am guessing it has to do with the size of hidden "__ViewState" tag in my ASP.NET pages.
I also realize that this is restriction imposed to by IT on the users end and I have no contol over it.
I disabled ViewState on all the controls in my ASP.NET pages. However, __ViewState is still generated very large (as always) to persist control-state (e.g. checkbox, radiobutton, etc.)
View 2 Replies
Jan 26, 2010
I have created a web app using Visual Studio 2008 Express Edition and have come to the point where I need to publish the site onto my server (which is running window server 2008). I found that the publish function is not limited in the express edition, so published the app to a local file and FTP'd the contents across to my server. I then setup a website through the servers IIS manage and pointed it to the folder containing the FTP'd files.
My question is, how do I run the app? Do I need to point to a specific file?
I have tried to view a number of the files in browser directly from the IIS but keep getting the same standard connection error i.e. "Internet Explorer cannot display the webpage"
I have never used IIS Manager before and I can't find a resource which gives me a step by step guide to setting up a new site which has been created by Visual Studio 2008 Express Edition, are there any config changes needed.
View 3 Replies
Mar 8, 2011
i used database sqlserver2008 and i make website which have database on internet serveri get ip address and username and password for that databse ;it's sqlserver 2005i want to upload database to my website ; i conccet with it by sqlserver managament 2008 ;then when i attachment database i get these messagemicrosoft.sqlserver.management.sdk.sfk how can i solve this error
View 3 Replies
Apr 28, 2010
I am trying to send an email using the gmail smtp server. I am trying to enter the SMTP settings into the Web Site Admin tool. I have set
Server Name: smtp.gmail.com
server port: 587
from: myemail@gmail.com
Sender's User Name: my real gmail username
Sender's Password: my real gmail password
I am getting the following error when I try to send an email as a result on using the CreateUserWizard after successfully creating a new user.
Code:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. i29sm30127820vcr.12
View 2 Replies
Mar 3, 2010
i am developing an web application using vs 2008..( i am new to vs 2008)
Is there any .net tool to generate data access layer or common classes ?
View 2 Replies
Mar 24, 2010
I am in the process of migrating the ASP.Web Application from .NET framework 1.1 to 3.5.
I installed the VS 2008 (framework 3.5 SP1) and was able to rebuild the ASP.NET web app from 1.1.
I downoladed the AJAX Toll Kit library from codeplex [URL]
I was able to add the AJAX Toolkit tab in my VS 2008 tool box.
I am using the AutoComplete serach extender which works fine when I use the Ajax Tool Kit Script manager.
When I use the Ajax Extension Script Manager in place of Ajak ToolKit Script manager I get an error "
AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.
why AutoComplete Search Extender is not working with the Ajax Extension Script Manager.
View 3 Replies
Aug 29, 2010
With visual studio 2008, how can one incorporate Mobile Internet Toolkit to develop mobile application or did not support it.
View 2 Replies
Jan 28, 2011
I'm currently developing a web application where everything works fine in the visual studio web server. It authenticates the user, access the database, writes to it, etc.
After I wrestled yesterday to publish it to my local iis, a subject I admit I have little to no experience of doing, suddenly the membership of the website started to not authenticate the users.
At first I suspected maybe the app wasn't accessing SQLServer, or that the data with the users I had in the asp.net membership database was erased when I uploaded the website.
So I stopped iis, i attached the db file to my local sql server, and I can see that all the users are there just like I uploaded them. I also can see the website can access another database with micellaneous contents just fine.
The loging controls don't tell me there's any problem either, they just show a message telling the user that the login attempt wasn't successful.
So, here's what I remember I did to make the app work as it wasn't even doing that when I first uploaded it.
I used the asp.net_regiis tool to copy website scripts to the website.
aspnet_regiis -sn <path>
then I deleted the website, uploaded again from VS. this time it shows in the browser but it doesn't authenticate the users.
The application isn't precompiled, I just uploaded it.
View 6 Replies
Mar 9, 2011
I looked at Google's, but my boss shot it down because it involves adding a script to every page you want to track. I keep searching the web, but the stuff I am finding seems to be crap or not work all together. This is mainly for internal sites, not external. Seems liek a lot of the stuff I am finding want to give me remote statistics to a publically available site.
View 3 Replies