Click here to Skip to main content
12,897,431 members (48,957 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 :( 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 23-Feb-13 8:59am
Updated 23-Feb-13 18:40pm
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
<add name="RegConnectionString" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providername="System.Data.SqlClient">

<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

Rate this: bad
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.
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.170424.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2017
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