الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

problem in connection with my sql

مغلق
بدأه meme_star في 21 فبراير 2006 · 1 رد · 512 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

i work with visual stodio with mysql

and i got that message

Server Error in '/test' Application.
--------------------------------------------------------------------------------

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load type 'test.Global'.

Source Error: 


Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="test.Global" %>



Source File: d:\inetpub\wwwroot\test\global.asax    Line: 1 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

and this is my code

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;

namespace test
{
	/// <summary>
	/// Summary description for WebForm1.
	/// </summary>
	public class WebForm1 : System.Web.UI.Page
	{
  protected System.Data.Odbc.OdbcConnection odbcConnection1;
  protected System.Data.Odbc.OdbcDataAdapter odbcDataAdapter1;
  protected System.Data.Odbc.OdbcCommand odbcSelectCommand1;
  protected System.Data.Odbc.OdbcDataAdapter odbcDataAdapter2;
  protected test.DataSet1 dataSet11;
  protected System.Web.UI.WebControls.DataGrid DataGrid1;
  protected System.Data.Odbc.OdbcConnection odbcConnection2;

  private void Page_Load(object sender, System.EventArgs e)
  {
 	 odbcDataAdapter1.Fill(datas);// Put user code to initialize the page here
  }

  #region Web Form Designer generated code
  override protected void OnInit(EventArgs e)
  {
 	 //
 	 // CODEGEN: This call is required by the ASP.NET Web Form Designer.
 	 //
 	 InitializeComponent();
 	 base.OnInit(e);
  }
  
  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {    
 	 this.odbcConnection1 = new System.Data.Odbc.OdbcConnection();
 	 this.odbcDataAdapter1 = new System.Data.Odbc.OdbcDataAdapter();
 	 this.odbcConnection2 = new System.Data.Odbc.OdbcConnection();
 	 this.odbcSelectCommand1 = new System.Data.Odbc.OdbcCommand();
 	 this.odbcDataAdapter2 = new System.Data.Odbc.OdbcDataAdapter();
 	 this.dataSet11 = new test.DataSet1();
 	 ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
 	 // 
 	 // odbcConnection2
 	 // 
 	 this.odbcConnection2.ConnectionString = "DSN=myodbc;PORT=0;UID=root;DATABASE=mysql;OPTION=0;SERVER=localhost";
 	 // 
 	 // odbcSelectCommand1
 	 // 
 	 this.odbcSelectCommand1.CommandText = "select name from func";
 	 this.odbcSelectCommand1.Connection = this.odbcConnection2;
 	 // 
 	 // odbcDataAdapter2
 	 // 
 	 this.odbcDataAdapter2.SelectCommand = this.odbcSelectCommand1;
 	 // 
 	 // dataSet11
 	 // 
 	 this.dataSet11.DataSetName = "DataSet1";
 	 this.dataSet11.Locale = new System.Globalization.CultureInfo("en-US");
 	 this.Load += new System.EventHandler(this.Page_Load);
 	 ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();

  }
  #endregion
	}
}

if u have other solution please tell me

تم تعديل هذه المشاركة بواسطة walcom في 22 فبراير 2006 في 10:38

هذا الموضوع مغلق.

مواضيع مشابهة