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. System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform.

System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform.

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-servercom
5 Posts 3 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.
  • N Offline
    N Offline
    naresh_pandey13
    wrote on last edited by
    #1

    Hi I m using asp.net with sql server .But when I try to fill Dataset I get the error 'ResourcePool' is not supported on the current platform.' My Code is using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Web.Mail; using System.Configuration; namespace FinalQc { public class forgetpass : System.Web.UI.Page { SqlConnection Sq; protected System.Web.UI.WebControls.ImageButton btnLogin; protected System.Web.UI.WebControls.TextBox txtMailId; protected System.Web.UI.WebControls.Label Label1; protected System.Web.UI.WebControls.Label lblfrgtpass; protected System.Web.UI.HtmlControls.HtmlForm FrmLog; private void Page_Load(object sender, System.EventArgs e) { } override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.btnLogin.Click += new System.Web.UI.ImageClickEventHandler(this.btnLogin_Click); this.Load += new System.EventHandler(this.Page_Load); } private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs e) { System.Data.DataSet Ds; SqlDataAdapter Sd; string mailId=txtMailId.Text.Trim(); Sq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]); Sd=new SqlDataAdapter("select firstName+lastName,userName,Password from member where email='"+mailId.Trim()+"'", Sq); Ds=new System.Data.DataSet(); Sd.Fill(Ds,"passw"); try { string Unm,Uid,Upass; Unm=Ds.Tables[0].Rows[0].ItemArray.GetValue(0).ToString(); Uid=Ds.Tables[0].Rows[0].ItemArray.GetValue(1).ToString(); Upass=Ds.Tables[0].Rows[0].ItemArray.GetValue(2).ToString(); SmtpMail.SmtpServer = "abc"; MailMessage NewMessage = new MailMessage(); NewMessage.BodyFormat = MailFormat.Text; NewMessage.Priority = MailPriority.High; NewMessage.From = "jitendra@abc.com"; NewMessage.To =mailId; NewMessage.Cc = "jitendra@abc.com"; NewMessage.Subject = "Password Reset Request"; NewMessage.Body = "Dear,"+Unm+"
    Your User Name is : "+Uid+"
    "+"Password is "+Upass; SmtpMail.Send(NewMessage); } catch(Exception) { Response.Write("Invalid Email Address"); } } } } My web.co

    S N 2 Replies Last reply
    0
    • N naresh_pandey13

      Hi I m using asp.net with sql server .But when I try to fill Dataset I get the error 'ResourcePool' is not supported on the current platform.' My Code is using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Web.Mail; using System.Configuration; namespace FinalQc { public class forgetpass : System.Web.UI.Page { SqlConnection Sq; protected System.Web.UI.WebControls.ImageButton btnLogin; protected System.Web.UI.WebControls.TextBox txtMailId; protected System.Web.UI.WebControls.Label Label1; protected System.Web.UI.WebControls.Label lblfrgtpass; protected System.Web.UI.HtmlControls.HtmlForm FrmLog; private void Page_Load(object sender, System.EventArgs e) { } override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.btnLogin.Click += new System.Web.UI.ImageClickEventHandler(this.btnLogin_Click); this.Load += new System.EventHandler(this.Page_Load); } private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs e) { System.Data.DataSet Ds; SqlDataAdapter Sd; string mailId=txtMailId.Text.Trim(); Sq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]); Sd=new SqlDataAdapter("select firstName+lastName,userName,Password from member where email='"+mailId.Trim()+"'", Sq); Ds=new System.Data.DataSet(); Sd.Fill(Ds,"passw"); try { string Unm,Uid,Upass; Unm=Ds.Tables[0].Rows[0].ItemArray.GetValue(0).ToString(); Uid=Ds.Tables[0].Rows[0].ItemArray.GetValue(1).ToString(); Upass=Ds.Tables[0].Rows[0].ItemArray.GetValue(2).ToString(); SmtpMail.SmtpServer = "abc"; MailMessage NewMessage = new MailMessage(); NewMessage.BodyFormat = MailFormat.Text; NewMessage.Priority = MailPriority.High; NewMessage.From = "jitendra@abc.com"; NewMessage.To =mailId; NewMessage.Cc = "jitendra@abc.com"; NewMessage.Subject = "Password Reset Request"; NewMessage.Body = "Dear,"+Unm+"
      Your User Name is : "+Uid+"
      "+"Password is "+Upass; SmtpMail.Send(NewMessage); } catch(Exception) { Response.Write("Invalid Email Address"); } } } } My web.co

      S Offline
      S Offline
      Serge Lobko Lobanovsky
      wrote on last edited by
      #2

      What's the connection string? Regards, Serge (Logic Software, Easy Projects .NET site)

      A 1 Reply Last reply
      0
      • S Serge Lobko Lobanovsky

        What's the connection string? Regards, Serge (Logic Software, Easy Projects .NET site)

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Hi Serge, I m getting what u want to say .As per my understanding about ur question is If u r asking about Connection string then I have stored connection string in my WEB.CONFIG file.I have added a key in web.config and added the value in the following manner and when i want to make any connection i use the following methid SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) SO the connection string will auto apperas in the above code. We can replace the line below SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) with below SqlConnection newSq=new SqlConnection("server=localhost;uid=sa;pwd=sa;database=mydb;") Hope u will be understanding what i wanna say Thanks

        1 Reply Last reply
        0
        • N naresh_pandey13

          Hi I m using asp.net with sql server .But when I try to fill Dataset I get the error 'ResourcePool' is not supported on the current platform.' My Code is using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Web.Mail; using System.Configuration; namespace FinalQc { public class forgetpass : System.Web.UI.Page { SqlConnection Sq; protected System.Web.UI.WebControls.ImageButton btnLogin; protected System.Web.UI.WebControls.TextBox txtMailId; protected System.Web.UI.WebControls.Label Label1; protected System.Web.UI.WebControls.Label lblfrgtpass; protected System.Web.UI.HtmlControls.HtmlForm FrmLog; private void Page_Load(object sender, System.EventArgs e) { } override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.btnLogin.Click += new System.Web.UI.ImageClickEventHandler(this.btnLogin_Click); this.Load += new System.EventHandler(this.Page_Load); } private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs e) { System.Data.DataSet Ds; SqlDataAdapter Sd; string mailId=txtMailId.Text.Trim(); Sq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]); Sd=new SqlDataAdapter("select firstName+lastName,userName,Password from member where email='"+mailId.Trim()+"'", Sq); Ds=new System.Data.DataSet(); Sd.Fill(Ds,"passw"); try { string Unm,Uid,Upass; Unm=Ds.Tables[0].Rows[0].ItemArray.GetValue(0).ToString(); Uid=Ds.Tables[0].Rows[0].ItemArray.GetValue(1).ToString(); Upass=Ds.Tables[0].Rows[0].ItemArray.GetValue(2).ToString(); SmtpMail.SmtpServer = "abc"; MailMessage NewMessage = new MailMessage(); NewMessage.BodyFormat = MailFormat.Text; NewMessage.Priority = MailPriority.High; NewMessage.From = "jitendra@abc.com"; NewMessage.To =mailId; NewMessage.Cc = "jitendra@abc.com"; NewMessage.Subject = "Password Reset Request"; NewMessage.Body = "Dear,"+Unm+"
          Your User Name is : "+Uid+"
          "+"Password is "+Upass; SmtpMail.Send(NewMessage); } catch(Exception) { Response.Write("Invalid Email Address"); } } } } My web.co

          N Offline
          N Offline
          naresh_pandey13
          wrote on last edited by
          #4

          Hi Serge, I m getting what u want to say .As per my understanding about ur question is If u r asking about Connection string then I have stored connection string in my WEB.CONFIG file.I have added a key in web.config and added the value in the following manner jitendra_s wrote: add key="dsn" value="server=192.168.1.158;uid=sa;pwd=sa;database=qcdb;"/ and when i want to make any connection i use the following methid SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) SO the connection string will auto apperas in the above code. We can replace the line below SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) with below SqlConnection newSq=new SqlConnection("server=localhost;uid=sa;pwd=sa;database=mydb;") Hope u will be understanding what i wanna say Thanks This is Jitendra

          S 1 Reply Last reply
          0
          • N naresh_pandey13

            Hi Serge, I m getting what u want to say .As per my understanding about ur question is If u r asking about Connection string then I have stored connection string in my WEB.CONFIG file.I have added a key in web.config and added the value in the following manner jitendra_s wrote: add key="dsn" value="server=192.168.1.158;uid=sa;pwd=sa;database=qcdb;"/ and when i want to make any connection i use the following methid SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) SO the connection string will auto apperas in the above code. We can replace the line below SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) with below SqlConnection newSq=new SqlConnection("server=localhost;uid=sa;pwd=sa;database=mydb;") Hope u will be understanding what i wanna say Thanks This is Jitendra

            S Offline
            S Offline
            Serge Lobko Lobanovsky
            wrote on last edited by
            #5

            Hi Jitendra, Seems that you need to reinstall the latest MDAC version from http://www.microsoft.com/data[^] Regards, Serge (Logic Software, Easy Projects .NET site)

            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