473,804 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to upload asp.net project?

Hi. I have an asp.net web application and I'd like to upload it to my
web. I uploaded all the .aspx and .config files, so the bin folder
(with the dll). But the problem is that the application does not work
as it does on my computer. The code I use is:

Imports System.IO
Imports System.Net

Public Class analize
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub

'NOTE: The following placeholder declaration is required by the
Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
FindCode(Reques t("TheAddress") )
End Sub

Private Sub FindCode(ByVal TheAddress As String)
Dim wrq As WebRequest
Dim wrp As WebResponse
Dim sr As StreamReader
Dim h As HtmlGenericCont rol = New HtmlGenericCont rol

Try
If TheAddress.Subs tring(0, 7) <> "http://" Then
TheAddress = "http://" & TheAddress
End If
Catch
TheAddress = "http://" & TheAddress
End Try

wrq = WebRequest.Crea te(TheAddress)
wrp = wrq.GetResponse ()
sr = New StreamReader(wr p.GetResponseSt ream())

h.InnerHtml = sr.ReadToEnd

Page.Controls.A dd(h)
End Sub
End Class
This code gets a website address (example: www.microsoft.com).
Then it connects to the page, get its code and write it on my website,
showing the same info but from my server. What am I doing wrong?

Thanks in advance for your help.
Nov 17 '05 #1
0 3209

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1544
by: James Walker | last post by:
Hi there, I'm just starting to write my second ASP.NET webpage in C# and want some way of easily splitting out those files that are needed to be uploaded to the webserver - i.e. i create a project on my local machine in VS.NET and it creates the "AssemblyInfo.cs" file, "Global.asax" file, "Global.asax.cs" file the .csproj file, the ..csproj.webinfo file, a default .aspx file etc and a subfolder called "bin"...
2
1217
by: Summit | last post by:
Hi, I am trying to upload my ASP .NET project to a web hosting site using VS.NET 2003 , upload project facility . However , when I try to connect to the web site (from VS.NET 2003) , it give me an error message saying: "An error has occured in the script on this page". Line: 196
1
2767
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp" as the directory. When I use any other hard coded directory or even Server.MapPath() the upload function fails and returns the error: "Exception has been thrown by the target of an invocation." Once I change the root directory to "c:\Temp",...
170
5796
by: I_AM_DON_AND_YOU? | last post by:
Whether we can upload the projects (in .zip format) in these newsgroups? I am asking this because earlier there are more than 50 posts (in one thread) about this query and they are contradicting with each other (You can find that post by name date10/22/2003 Time 7:22PM) I want to get the answer from Microsoft. Therefore, please answer this query only if you are from Microsoft. Thanks in advance!
7
350
by: Shelly | last post by:
I do what most programmers do -- we steal code from stuff we have written before, or accept code from others that works, before we attempt to write something altogether new. On a previous project I wrote code to upload pictures and music from the local drive to the server. It worked perfectly. I scarfed that code, without changing any names, for a new project and I am running into a problem. Here is what I have: The form definition:
2
1528
by: DR | last post by:
easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function Do I have to upload the .dll and then run sql command to load it into sql server, or is there a more integrated way to do this in visual studio 2005 with a SQL Server Project? or do i have to manualu upload the DLL in all cases? Any tutorial on CLR with Visual Studio 2005 IDE to Sql Server 2005?
2
4560
by: niraan | last post by:
Hi guys, am new to rails and now am doing a project in rubyonrails. for development purpose i have use instant rails. Now i need to upload my project to the live server. i have register the domain name as well as hosting. how can i upload my project to the live server? pls help meee. its very very urgent. i have the cpanel account now and there is a rubyjem. but i do not know how to put my rails application live. pls help meee.
7
2618
by: MDB | last post by:
Anyone have any pointers / links / examples on how to upload files through FTP? I am currently using the built in file upload control however it seems to take a very long time to upload files and would like to explore other ways of doing it. Any pointers or suggestions would greatly be appreciated.
2
7672
by: swethak | last post by:
hi, i wrote a code to upload a resume in mysql database and download that one . But in my database name,type,size of the file stored but content of the file not stored. So in my database content filed is empty.plz tell that what's the problem in my code. <? include("db.php");
4
1505
by: Jeyush | last post by:
Hi buddy, I have small script which upload the images. This script is working perfectly fine in localhost but when I upload that script to my website then it is not uploading the pictures. I have subdomain in my website names as http://projects.example.com, In projects folder I have my photo upload script. Here I add some code from my file.
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10089
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.