Click here to Skip to main content
15,923,087 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBringing third prty tools in browser Pin
jith - iii24-Apr-06 17:56
jith - iii24-Apr-06 17:56 
Questionso stupide but i really need it Pin
Mohammed Amine24-Apr-06 16:55
Mohammed Amine24-Apr-06 16:55 
AnswerRe: so stupide but i really need it Pin
minhpc_bk24-Apr-06 17:23
minhpc_bk24-Apr-06 17:23 
GeneralRe: so stupide but i really need it Pin
Mohammed Amine25-Apr-06 3:53
Mohammed Amine25-Apr-06 3:53 
AnswerRe: so stupide but i really need it Pin
Uma Kameswari25-Apr-06 7:23
Uma Kameswari25-Apr-06 7:23 
GeneralRe: so stupide but i really need it Pin
Mohammed Amine25-Apr-06 13:55
Mohammed Amine25-Apr-06 13:55 
QuestionFlash PDF Viewer? Pin
Idgaf24-Apr-06 12:33
Idgaf24-Apr-06 12:33 
QuestionCould not load type Pin
kourvoisier24-Apr-06 11:45
kourvoisier24-Apr-06 11:45 
I am simply trying to use the uploadfile control with no success.
Also the remote server uses .net 1.0

If you cant help me with this error please tell me a different way of uploading files to a server using .net 1.0

The following is the error i keep getting:

-------------------------------------------------------
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 'upload'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>
Line 2:
Line 3:


Source File: d:\webs\omixad\upload.aspx Line: 1
---------------------------------------------------------

I have a simple upload.aspx file that has a fileupload object on it and actually uploads files to the server.
----------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>

<script>






























-------------------------------------------------------------------------------------------


The code behind file is upload.aspx.cs

-----------------------------------------------------------------------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class upload : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void UploadBtn_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
//FileUpload1.SaveAs(@"C:\temp\" + FileUpload1.FileName);
FileUpload1.SaveAs(Server.MapPath(@"temp") + FileUpload1.FileName);
Label1.Text = "File Uploaded: " + Server.MapPath(@"temp\") + FileUpload1.FileName;
}
else
{
Label1.Text = "No File Uploaded.";
}
}


}
---------------------------------------------------------------------

I have IIS running on my local machine. When i run this on my local machine everything works beautiful. When i upload the files to a remote webserver (earthlink web hosting) I receive the error at the top.

Now i have been reading around and googleing and everything else and others have said that i need to build the application. I have built the application by clicking build / build page (website)

Then upload the two files back up to the web server but nothing changes same errors.

Then i read something about refrences and .dll files located in a bin folder but i cannot locate these files at all nor the bin folder.

If i need to get the bin folder on the remote web server where do i find it also where do i find the .dll file after a build.

Someone please give me step by step instructions of what i need to do to get this to work on the remote web server. Again it works on my local machine but not when i upload it to the remote server.

Thanks in advance
AnswerRe: Could not load type Pin
minhpc_bk24-Apr-06 15:43
minhpc_bk24-Apr-06 15:43 
QuestionReverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
munklefish24-Apr-06 11:42
munklefish24-Apr-06 11:42 
AnswerRe: Reverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
Mike Ellison24-Apr-06 13:01
Mike Ellison24-Apr-06 13:01 
GeneralRe: Reverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
munklefish24-Apr-06 13:22
munklefish24-Apr-06 13:22 
QuestionRegarding resource file Pin
shanmukeshwar24-Apr-06 9:15
shanmukeshwar24-Apr-06 9:15 
AnswerRe: Regarding resource file Pin
Mike Ellison24-Apr-06 10:35
Mike Ellison24-Apr-06 10:35 
GeneralRe: Regarding resource file Pin
shanmukeshwar24-Apr-06 11:11
shanmukeshwar24-Apr-06 11:11 
QuestionDynamically changing Flash Movies....... Pin
daviiie24-Apr-06 9:03
daviiie24-Apr-06 9:03 
AnswerRe: Dynamically changing Flash Movies....... Pin
daviiie24-Apr-06 9:48
daviiie24-Apr-06 9:48 
QuestionCompare Two DateTimes, and get result as minutes Pin
munklefish24-Apr-06 8:39
munklefish24-Apr-06 8:39 
AnswerRe: Compare Two DateTimes, and get result as minutes Pin
NeverHeardOfMe24-Apr-06 10:28
NeverHeardOfMe24-Apr-06 10:28 
GeneralRe: Compare Two DateTimes, and get result as minutes Pin
munklefish24-Apr-06 11:40
munklefish24-Apr-06 11:40 
QuestionDisplay Week Only Pin
RadioButton24-Apr-06 6:55
RadioButton24-Apr-06 6:55 
AnswerRe: Display Week Only Pin
Mike Ellison24-Apr-06 7:57
Mike Ellison24-Apr-06 7:57 
GeneralRe: Display Week Only Pin
RadioButton24-Apr-06 10:18
RadioButton24-Apr-06 10:18 
GeneralRe: Display Week Only Pin
Mike Ellison24-Apr-06 10:34
Mike Ellison24-Apr-06 10:34 
GeneralRe: Display Week Only Pin
RadioButton24-Apr-06 11:02
RadioButton24-Apr-06 11:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.