Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. registrationpage error

registrationpage error

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aslamshaik2510978
    wrote on last edited by
    #1

    i wrote code in web form , when i run it says error like error couldnot find the file"c:\inetpub\wwwroot\Web.config" my code is : try { DataSet ds=new DataSet (); ds.ReadXml(Server .MapPath ("./../Web.config")); DataRow row; row=ds.Tables [6].NewRow (); ds.Tables [6].Constraints .Add ("usr_pk",ds.Tables [6].Columns [0],true); row[0]=TextBox1 .Text ; row[1]=FormsAuthentication .HashPasswordForStoringInConfigFile (TextBox1 .Text ,"md5"); row[2]=0; ds.Tables [6].Rows .Add (row); DataRow row1; row1=ds.Tables [8].Rows [0]; row1.BeginEdit (); row1[0]+=","+TextBox1 .Text ; row1.EndEdit (); ds.WriteXml (Server .MapPath ("./../Web.config")); lblmsg.Text ="user registeed"; } catch(Exception ex) { lblmsg.Text ="error"+ex.Message ; } aslam

    C 1 Reply Last reply
    0
    • A aslamshaik2510978

      i wrote code in web form , when i run it says error like error couldnot find the file"c:\inetpub\wwwroot\Web.config" my code is : try { DataSet ds=new DataSet (); ds.ReadXml(Server .MapPath ("./../Web.config")); DataRow row; row=ds.Tables [6].NewRow (); ds.Tables [6].Constraints .Add ("usr_pk",ds.Tables [6].Columns [0],true); row[0]=TextBox1 .Text ; row[1]=FormsAuthentication .HashPasswordForStoringInConfigFile (TextBox1 .Text ,"md5"); row[2]=0; ds.Tables [6].Rows .Add (row); DataRow row1; row1=ds.Tables [8].Rows [0]; row1.BeginEdit (); row1[0]+=","+TextBox1 .Text ; row1.EndEdit (); ds.WriteXml (Server .MapPath ("./../Web.config")); lblmsg.Text ="user registeed"; } catch(Exception ex) { lblmsg.Text ="error"+ex.Message ; } aslam

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Well, do you have a web.config file there, or not ?

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups