Click here to Skip to main content
12,293,601 members (52,539 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
I have Deployed the website in IIS. Now i can access the website files over LAN in another computer through IIS but i have a registration.aspx form

In that the given username and password is getting stored in a sqlserver database that is attached with the project but it is not working where i am going wrong Frown | :( please help me



Login is working it verifies the username and password but registration is not working Frown | :( that means there is read access to database but not write access Frown | :(

I have deployed in c:/inetpub/wwwroot/website offline/

where website offline is my website
Posted 23-Feb-13 8:59am
Edited 23-Feb-13 18:40pm
v5
Comments
Pranit Kothari 23-Feb-13 15:06pm
   
I think you mean IIS not ISS.
Member 8780842 23-Feb-13 15:09pm
   
yes sorry
David_Wimbley 23-Feb-13 23:36pm
   
Can you provide some details? What kind of auth are you using to connect to your DB? Windows? SQL Server? What is your connection string? Can you provide a snippet?
Member 8780842 23-Feb-13 23:58pm
   
Mine is windows 8 sqlserver database and the connection string is
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["RegConnectionString"].ConnectionString);
web.config file





David_Wimbley 24-Feb-13 18:01pm
   
That doesnt help much, can you give the contents of RegConnectionString from your web.config file.

Also you never mentioned if its windows auth or sql auth.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You did not mention what is your authentication type from your application to sql server like windows or sqlserver. I guess it is NTLM(windows authentication). If so then you need to give your windows user(the user which you logged on your OS) proper permission to your database. Proper mission might be full access/read/write/delete etc access etc.
  Permalink  
v2
Comments
Member 8780842 24-Feb-13 1:27am
   
THank you :) How to give that sir
S. M. Ahasan Habib 24-Feb-13 1:41am
   
Open sql server enterprise manager and add/select windows user and give permission for that user to appropriate database user, user objects like(table, view, stored procedure) with appropriated permission like create/read/delete/drop/execute etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100