Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 :( please help me



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

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

where website offline is my website
Posted
Updated 23-Feb-13 18:40pm
v5
Comments
[no name] 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
<add name="RegConnectionString" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providername="System.Data.SqlClient">

<system.web>
<compilation debug="true" targetframework="4.0">

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

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.
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900