ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

مشکل uploadروی سرور؟

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ASP C# .NET & PHP
View previous topic :: View next topic  
Author Message
daneshjoo
مهمون يكي دو روزه


Joined: 25 Nov 2005
Posts: 21
Location: Iran

PostPosted: Thu Feb 16, 2006 7:00 pm    Post subject: مشکل uploadروی سرور؟ Reply with quote

با سلام
من یه هاست مجانی از سایت somee.com گرفتم - فایلامو آ÷لود کردم ولی نمیتونم به بانک اطلاعاتیم دسترسی داشته باشم .
لطفا خودتون برین تو سایت و مشکلو ببینین .
در ضمن فونتها رو هم قاطی ÷اتی نشون میده
چیکار باید بکنم -- لطفا منو راهنمایی کنید . . .
در ضمن من تو کار asp زیاد ماهر نیستم > ÷س اگه سایتم مشکل داشت لطفا راهنماییم کنید
آدرس سایت : http://daneshjoo.somee.com/
ممنون
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Fri Feb 17, 2006 1:21 pm    Post subject: Reply with quote

در مورد فونت ها فونتت رو فعلا Tahoma كن ببين درست ميشه يا نميشه . بعد هم اين رو به اول صفحات اضافه كن .
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
هر چند فعلا مشكل از اين نيست .
سايتت ASP.NET هست يا asp ؟ كد يه صفحه رو براي تست بزار روش بحث كنيم تا مشكلش برطرف شه .
بعد هم صفحت رو بدون ارتباط با بانك بزار .
اين سايت somee انگار پولي هست ؟
اين تگ رو به اول صفحت اضافه كن تا اروري اگه بود بگه :
<%@ Page Language="VB" Debug="true" %>
Back to top
daneshjoo
مهمون يكي دو روزه


Joined: 25 Nov 2005
Posts: 21
Location: Iran

PostPosted: Fri Feb 17, 2006 10:32 pm    Post subject: Reply with quote

باید خدمتتون بگم که اولا سایتم ASP.NET هست - - دوما من با #C کار می کنم نه با VB - - صفحه اولم با دیتا بیس کاری نداره و مشکلی هم نداره ولی صفحات دیگم که باید به دیتا بیس وصل بشم Error میده - - - - -
تاکید میکنم روی سیستم خودم هیچ مشکلی نداره ولی وقتی روی سایت میزارم این خطا رو میده
این هم Errorی که برای این صفحه میده :
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


[color=red][size=24] کد  #C یکی از صفحاتم رو میزارم ÷ایین :: -->>[/size][/color]

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.OleDb;

namespace froum
{
/// <summary>
/// Summary description for WebForm2.
/// </summary>
public class aspindex : System.Web.UI.Page
{
   protected System.Web.UI.WebControls.Button button1;
   protected System.Web.UI.WebControls.Panel panel1;
   protected System.Web.UI.WebControls.Panel panel3;
   protected System.Web.UI.WebControls.Panel panel2;
   protected System.Web.UI.WebControls.DataGrid dgaspindex;
   protected System.Web.UI.WebControls.TextBox tbaspindex;
   protected System.Web.UI.WebControls.LinkButton hyperLink3;
   protected System.Web.UI.WebControls.Label label1;
   private void Page_Load(object sender, System.EventArgs e)
   {
   // Put user code to initialize the page here
      OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\\Inetpub\\wwwroot\\froum\\froum.mdb");
      OleDbDataAdapter da=new OleDbDataAdapter("select * from aspindex",con);
      DataSet dst =new DataSet();
      da.Fill(dst);
      dgaspindex.DataSource=dst;
      dgaspindex.DataBind();
         if(!IsPostBack)
      panel3.Visible=false;
         if(Session["username"].ToString()=="") {
      panel1.Visible=false;
      panel2.Visible=true;
      }
      else{
      panel1.Visible=true;
      panel2.Visible=false;
      }
      }
      #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.hyperLink3.Click += new System.EventHandler(this.hyperLink3_Click);
      this.dgaspindex.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.dgaspindex_PageIndexChanged1);
      this.dgaspindex.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dgaspindex_DeleteCommand);
      this.button1.Click += new System.EventHandler(this.button1_Click);
      this.Load += new System.EventHandler(this.Page_Load);
   }
   #endregion

   private void button1_Click(object sender, System.EventArgs e)
   {
      if(tbaspindex.Text=="")
      panel3.Visible=true;
      else{
      Session["nazarat"]=tbaspindex.Text;
      Session["noenazarat"]="aspindex";
      Response.Redirect("nazarat.aspx");
         }
   }
      private void dgaspindex_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
   {
            Session["cell"]=e.Item.Cells[1].Text;
            Response.Redirect("asp.aspx");
   }
      private void linkButton1_Click(object sender, System.EventArgs e)
   {
      }
      private void dgaspindex_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
   {
      }
   
   private void dgaspindex_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
   {
      }
   
   private void hyperLink3_Click(object sender, System.EventArgs e)
   {
      Response.Redirect("default.aspx");
   }
   
   private void dgaspindex_PageIndexChanged1(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
   {
      dgaspindex.CurrentPageIndex=e.NewPageIndex;
         OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\\Inetpub\\wwwroot\\froum\\froum.mdb");
      OleDbDataAdapter da=new OleDbDataAdapter("select * from aspindex",con);
      DataSet dst =new DataSet();
      da.Fill(dst);
      dgaspindex.DataSource=dst;
      dgaspindex.DataBind();
   }

}
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Sat Feb 18, 2006 1:52 pm    Post subject: Reply with quote

قضيه اين data source=C:\\Inetpub\\wwwroot\\froum\\froum.mdb چيه ؟ از كجا اين مسير رو پيدا كردي ؟
فكر كنم روي سرورت مسيرت فرق كنه ...
ظاهرا اين مسير كامپيورت هست ؟
Back to top
daneshjoo
مهمون يكي دو روزه


Joined: 25 Nov 2005
Posts: 21
Location: Iran

PostPosted: Sat Feb 18, 2006 4:39 pm    Post subject: Reply with quote

آره دقیقا - - این مسیر روی کامبیوترمه .
عوضش می کنم ببینم چی میشه :oops:
Back to top
unknown
مدير بخش ويژوال بيسيك
مدير بخش ويژوال بيسيك


Joined: 05 Dec 2004
Posts: 439
Location: Tehran

PostPosted: Mon Feb 20, 2006 2:56 pm    Post subject: Reply with quote

سلام. برای پیدا کردن آدرس مجازی روی سرور از این استفاده کن. البته نمی دونم روی asp.net کار می کنه یا نه

 server.mappath("froum.mdb")
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ASP C# .NET & PHP All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum