473,729 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying Headache: Need to change path to server

I have developled my first major app and i am trying to deploy it in to
a host server for publication.

However the app tries to use the physical path used during development.
Is the path hard coded in my dll or similar file?

In trying to nail down exactly where this path is located, I have
deleted all files except for the index files, the Global.asax files,
the web.config file and the app.dll (located in the bin).

Nowhere in any files which are left can I find the physical path that I
keep receiving in a error message when I try to run the file.

Can someone please let me know how you deploy the app to a new
environment, do you need to type in the new physical path of the new
server? If so, where do I do that.

I have tried to use Copy Project but I get a message saying it can't
resolver the http path I have provided.

Any help will be appreciated. I am at a loss as to what to try next.

Nov 19 '05 #1
5 1811
"sling blade" <sc******@hotma il.com> confessed in
news:11******** **************@ f14g2000cwb.goo glegroups.com:
I have developled my first major app and i am trying to deploy it in to
a host server for publication.

However the app tries to use the physical path used during development.
Is the path hard coded in my dll or similar file?

In trying to nail down exactly where this path is located, I have
deleted all files except for the index files, the Global.asax files,
the web.config file and the app.dll (located in the bin).

Nowhere in any files which are left can I find the physical path that I
keep receiving in a error message when I try to run the file.

Can someone please let me know how you deploy the app to a new
environment, do you need to type in the new physical path of the new
server? If so, where do I do that.

I have tried to use Copy Project but I get a message saying it can't
resolver the http path I have provided.

Any help will be appreciated. I am at a loss as to what to try next.


What do you mean by the "index files"?

--
Nov 19 '05 #2
I have left only the first page of my app on the server and they are
index.aspx, index.aspx.resx and index.vb. (Just to keep the directory
as clean as I could while I try to figure this out)

Nov 19 '05 #3
"sling blade" <sc******@hotma il.com> confessed in
news:11******** **************@ o13g2000cwo.goo glegroups.com:
I have left only the first page of my app on the server and they are
index.aspx, index.aspx.resx and index.vb. (Just to keep the directory
as clean as I could while I try to figure this out)


OK. Your use of the term confused me, as it means something entirely
different with databases.

The file you need on your web site is index.aspx. The .vb and the .resx
files are used in building the .dll and their content is included therein.
If you want only the necessary files for the web, then you don't need these
sources (unless you plan to debug against the server).

You'll need the identical structure on the server that you have on your
workstation. (Of course, you'll need the proper configuration in the IIS
metabase for a website, which is usually done with the IIS administration
MMC file, iis.msc).

You need a bin directory off root where your project.dll is to reside.

You need the web.config file in the root directory, as well as the
global.asax file.

You may also need an aspnet_client directory that contains scripts for js
implementation of downversion clientside web controls.

People generally keep images in a separate img or image directory.
Sometimes they keep other stuff out of the root folder too, to hide content
from search engine robots, or for other purposes.

If your deployment doesn't work, take a look in the web log to see what the
server thinks it needs.

Remember that .net is a managed system, and requires many system components
in place, as well as the proper ACLs in apropriate directories that allow
access to your web application security identity. If the system admin did
his job correctly, then deployment is a snap.

Are their other web applications running on this server? If this is the
first and only, then you might be having problems left over from the
framework install.

Good luck.

-- ipgrunt

Nov 19 '05 #4
Hi,

To deploy the app I simply used FTP to copy all of the files to the
host server, nothing more. I didn't change a single thing. (Is this the
correcty way to deploy a web app?)

It seems from the documintation that this is all that was necessary.

However I recieve an error when I try to view the app from the host
server. In the stack trace of the error message I can see where it is
referencing the file directory on my workstation.

If I go to menu Project > app.Properties > Web Setting > Web Access
Method - File Share, I see the physical path to the directory of my web
app from my work station.

Does the app use this physical path (to the old directory) when it
attempts to open the files in the application? (no matter where it is
presently located)

Do I need to change this path to the new physical path on the hosts
server?

If so how would I do this?

I hope I haven't muck up what I am getting at. I have sceen shots if
you want to email me and I can show you what I mean.

Nov 19 '05 #5
"sling blade" <sc******@hotma il.com> confessed in
news:11******** **************@ c13g2000cwb.goo glegroups.com:
Hi,

To deploy the app I simply used FTP to copy all of the files to the
host server, nothing more. I didn't change a single thing. (Is this the
correcty way to deploy a web app?)

It seems from the documintation that this is all that was necessary.

However I recieve an error when I try to view the app from the host
server. In the stack trace of the error message I can see where it is
referencing the file directory on my workstation.

If I go to menu Project > app.Properties > Web Setting > Web Access
Method - File Share, I see the physical path to the directory of my web
app from my work station.

Does the app use this physical path (to the old directory) when it
attempts to open the files in the application? (no matter where it is
presently located)

Do I need to change this path to the new physical path on the hosts
server?

If so how would I do this?

I hope I haven't muck up what I am getting at. I have sceen shots if
you want to email me and I can show you what I mean.


No, it uses that path when it does Visual Studio stuff, ie, open the project,
build the application.

From what you've said, you have one file only, just index.aspx? Did you setup
an IIS site for your app on the server, and set the default page to
index.aspx?

-- grunt

Nov 19 '05 #6

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

Similar topics

4
2144
by: tonyz.wrightz | last post by:
Hi, I have used the setup wizard to build an installer that installs my asp.net application. Problem is, at my current job, they have an alternative web folder at the root level (to clarify, at the Default Web Site level, there is also another Web Folder). When I run the installer, it only wants to install the site under the Default Web Site, and doesn't appear to have any way of selecting the alternative location.
10
1872
by: Jeremy Ames | last post by:
I have created a web application that uses a custom control and a web service on my local system. I have gotten all of the bugs worked out on my local system and now it is time to move it to the sever. I have tried copying all of the files and folders within my application folder. I have even tried building a web setup and installing it on the server. The problem that I am having is that my web service is still looking for the web service...
3
2502
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not Web Forms) that serves as a thin client to some web services. In other words, the Windows Forms app will be installed on the client machines and that app will call web services that are deployed on my server.
10
2146
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? TIA! -- TFWBWY...A
4
4401
by: JOHN MALONEY | last post by:
Hi Everybody, I have created a three-tiered db application in VB .NET but I can't get the deployment to work right. I have added a SetUp project to the existing application. I also selected RELEASE as appropriate in the Application Folder and on the Users Desktop and Start menu. I didn't know whether the Project Output though would be enough or whether I would need to add the .mdb file to the Application folder too. I tested the deployment...
1
3175
by: brianedow | last post by:
I do not know why this happen, and it does not happen ALL the time, but it does happen on a fairly regular basis, and when it does, it causes real problems. If anyone can tell me how to prevent this, and moreover, how to FIX it, without having to bounce IIS, I would REALLY appreciate it! This problem is occurring on IIS Advanced Server 2003. Have not tested this on Server 2000. I am guessing the same. The Problem:
3
2613
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and putting it in the Program Files directory along with the application executable, no problem. The problem is this... The OleDbConnection knows of the database in an absolute location (i.e. C:\Documents and Settings\ApplicationDB\data.mdb
2
5401
by: Keld R. Hansen | last post by:
I am coding a .NET 2.0 application that needs to be able to run from a network share (intranet), but the security settings does not allow me to do this by default. How can I - in the installation program or by manual intervention afterwards - grant FullRights to the program? The program consists of three modules: WinEXE - a plain Visual C++ 32-bit .EXE file
1
3674
by: BillCo | last post by:
There seems to be a lot of confusion around the groups about linking to an Access mdb with the SQL Server Jet OLE DB provider and I havent been able to find a straight forward solution. Basically, I have an Access MDB (A2K) on one server and a SQL Server DB (2005 std ed.) on another - Both on the same network. I'm trying to create a linked server object in the SQL server to view data in the mdb. I've set it up and it works - but only from...
0
8921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9284
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
9202
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
8151
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
6722
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
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
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
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.