|
-
Oct 23rd, 2009, 03:24 AM
#1
Thread Starter
Lively Member
[RESOLVED] Advice on uploading to web server
Hi Everyone
i've been creating a website in visual studio and i just really want some advice on the best way to upload the site to my commercial web server.
at the moment i simply click publish site and it uploads to my selected file on my webserver which is ok but
1. it takes ages
2. when it comes to updating the site it says "all existing files in this directory will be deleted"
this is where the big issue is because ive just added the blogEngine to my site and
1. will it delete all my exiting posts
2. i dont really want upload this file or the whole site when i make a slight change to the site because again it takes an absolute age to upload
what is the best way to upload my site either through visual studio or any other means...
Hope someone can help
Thanks
-
Oct 23rd, 2009, 03:28 AM
#2
Re: Advice on uploading to web server
Hey,
Which version of Visual Studio are you using? Express or Full Version?
You can use a FTP Program, and only upload the files that you know have changed.
Your posts should be fine, as they will be in a database, so as long as you don't overwrite the database, they will still be there.
Gary
-
Oct 23rd, 2009, 03:42 AM
#3
Thread Starter
Lively Member
Re: Advice on uploading to web server
I'm using the full version of visual studio 2008.
see i tired to use my ftp program but every time i do then go to my site it brings up an load error. i tried refreshing the site through my cp but still doesnt work?
do you upload site through visual studio or do you use ftp?
-
Oct 23rd, 2009, 05:01 AM
#4
Re: Advice on uploading to web server
Hey,
What FTP Client are you using?
Are you using the Publish mechanism through Visual Studio? Right Click Solution | Publish.
This gives you additional options.
Gary
-
Oct 23rd, 2009, 05:06 AM
#5
Thread Starter
Lively Member
Re: Advice on uploading to web server
No im using Build | Publish Web Site from the tool bar at the top.
i just use FileZilla for my FTP because its free should i change...?
-
Oct 23rd, 2009, 05:09 AM
#6
Re: Advice on uploading to web server
Publishing builds your entire website and turns your code vb/c# into dll files.
You don't need to "publish" your site you can just put (ftp) all the files (.aspx, .aspx.vb etc) on the server and asp.net compiles them on first request no dlls. You can make changes and just upload those files.
The difference is publishing precompiles your code which has some benifits and some drawbacks as you have found.
-
Oct 23rd, 2009, 05:13 AM
#7
Re: Advice on uploading to web server
Hey,
Nope, FileZilla is perfectly valid, this is what I use as well 
What error are you getting when you try and connect?
Gary
-
Oct 23rd, 2009, 05:14 AM
#8
Thread Starter
Lively Member
Re: Advice on uploading to web server
yeah i see is it safe to upload your code files for the pages as well? i was told it wasnt? but if its going to make things easier im all for it. will anyone then be able to access the code files though?
-
Oct 23rd, 2009, 05:17 AM
#9
Thread Starter
Lively Member
Re: Advice on uploading to web server
 Originally Posted by gep13
Hey,
Nope, FileZilla is perfectly valid, this is what I use as well
What error are you getting when you try and connect?
Gary
i can connect and upload everything fine its just when i then try getting onto the site.
but like you said i think this is because i'm trying to add to an already pre compiled site as there's not code files on there which maybe causing an error?
-
Oct 23rd, 2009, 05:18 AM
#10
Re: Advice on uploading to web server
Hey,
No, ASP.Net will not allow the code behind files to be downloaded.
What you may see is a performance hit though. This is because ASP.Net will have to compile the code behind ready for use, this doesn't have to happen when you pre-compile. Why can you not simply upload the compiled DLL that has changed?
Gary
-
Oct 23rd, 2009, 05:24 AM
#11
Thread Starter
Lively Member
Re: Advice on uploading to web server
that's just because it only pre compiles before it uploads the site directly to my web server.
i suppose i could create the pre compiled version on my local machine then if i ftp the page ive edited from the pre compiled version that should work shouldn't it?
-
Oct 23rd, 2009, 05:43 AM
#12
Re: Advice on uploading to web server
Hey,
That is what I normally do.
I publish to a temporary folder on my machine, and then I copy the files that need to be uploaded onto my server.
Gary
-
Oct 23rd, 2009, 05:50 AM
#13
Thread Starter
Lively Member
Re: Advice on uploading to web server
lol do you no what i dont no why i didnt think of that in the 1st place but thanks for shedding the light
Cheers for your help
-
Oct 23rd, 2009, 06:19 AM
#14
Thread Starter
Lively Member
Re: Advice on uploading to web server
hi
so i just created a pre compiled version of my site on my local machine... then FTP the pre compiled version of tmy default page over to my web server using file zilla. and i got an error when trying to open the page. saying there properties in my a web.config arent turned on so it couldnt display the error..?
i thought this would work?
-
Oct 23rd, 2009, 06:43 AM
#15
Re: Advice on uploading to web server
set you web.config to show remote errors as the message states (upload it) to view the error - it may be something simple. Remember to change it back when finished debugging
-
Oct 23rd, 2009, 07:38 AM
#16
Thread Starter
Lively Member
Re: Advice on uploading to web server
the error is as follows
HTML Code:
Server Error in '/' 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 the assembly 'App_Web_hw9ow1ao'. Make sure that it is compiled before accessing the page.
not sure how its working this out because i am uploading the compiled version of the page that is on my local machine as i explained above?
Last edited by Roofuss; Oct 23rd, 2009 at 07:43 AM.
-
Oct 23rd, 2009, 08:27 AM
#17
Re: Advice on uploading to web server
Hey,
Which files have you uploaded? Have you uploaded everything into the right place?
Gary
-
Oct 23rd, 2009, 08:35 AM
#18
Thread Starter
Lively Member
Re: Advice on uploading to web server
hi
yeah i think so i literally created a temp folder on my local machine. went to build and publish in visual studio again but this time set it to publish to my new temp folder on my local machine.
then when into fileZilla transfered just the one page from the temp folder into the root folder of my when server which then overwritten the existing page and thats it
went into my cp refreshed my site then tired to open the page i had just uploaded and i got that error
i must be doing something wrong somewhere...
i only uploaded the one page
Thanks Roo
-
Oct 23rd, 2009, 08:37 AM
#19
Re: Advice on uploading to web server
Hey,
The error seems to suggest that it is trying to find the temporary compiled DLL, from a non pre-compiled Web Application.
I take it the application works when you debug it from Visual Studio?
Have you got IIS installed locally? Can you try taking the files from your temp location and put them into IIS locally. Does that work?
Gary
-
Oct 23rd, 2009, 08:43 AM
#20
Thread Starter
Lively Member
Re: Advice on uploading to web server
hi yeah i have got IIS installed but when i first started this site i set it to use the local directory so its not actually configured with IIS (which i know is a mistake now lol) it just uses the built in local host visual studio has.
-
Oct 23rd, 2009, 09:01 AM
#21
Re: Advice on uploading to web server
Hey,
That's ok, that is what I mean.
Take the files that you have published, and put then in IIS. This is essentially what you are doing when you upload your files to the server. This will prove whether it is a problem with your publish, or something else.
Do you follow what I am suggesting?
Gary
-
Oct 23rd, 2009, 09:14 AM
#22
Thread Starter
Lively Member
Re: Advice on uploading to web server
hi
yeah i understand ive done that and now my local host isnt working lol. when i try to run it through visual studio i get this
Code:
This web page is not available.
The web page at null might be temporarily down or it may have moved permanently to a new web address.
More information on this error
Below is the original error message
Error 101 (net::ERR_CONNECTION_RESET): Unknown error.
but i have added the folder on my local machine as i virtual directory in my IIS
-
Oct 23rd, 2009, 09:18 AM
#23
Re: Advice on uploading to web server
Hey,
Once you have it deployed to IIS, you don't have to run it through Visual Studio 
Just fire up internet explorer, and point it at http://localhost/<plus which ever virtual directory you have created>
Gary
-
Oct 23rd, 2009, 09:27 AM
#24
Thread Starter
Lively Member
Re: Advice on uploading to web server
I see i see ok ive done that and ive even edited a page and re published it to my local folder and it all works fine. even the changes i have made are their and its running through IIS
-
Oct 23rd, 2009, 09:39 AM
#25
Re: Advice on uploading to web server
Hey,
In which case, this suggests that there is something on your remote web server causing a problem.
Can you delete everything (except your database of course) and upload again? Just this once, since you are doing thing differently? Going forward, you can only upload the files that have changed.
Ideally, an IISRESET would do the trick, but I doubt you have this ability on the remote server.
Gary
-
Oct 23rd, 2009, 09:58 AM
#26
Thread Starter
Lively Member
Re: Advice on uploading to web server
right lol... we've made some progress i deleted everything on my web server except from my blog folder then copied my site from my local folder that is running through IIS onto my web server and that has worked great.
how ever i still get an error if i just copy over an individual page. so in fileZilla i had to delete everything again then copy it over again lol. which i suppose is alot quicker but still doesnt solve my problem of wanting to copy over a single page
-
Oct 23rd, 2009, 10:00 AM
#27
Re: Advice on uploading to web server
Hmm, that is very strange?!!?
Unless I am having a blonde moment, you should be able to do this.
I am not in a position to test this for you just now, but if/when I get a chance, I will give it a try and let you know what I come up with.
Oh, by the way, for the sake of clarity, when you are uploading a change, can you give an example of what change you are making, and what files you are uploading?
At least, for now, you have a work around.
Gary
-
Oct 23rd, 2009, 10:04 AM
#28
Thread Starter
Lively Member
Re: Advice on uploading to web server
ok thanks i will look forward to hearing from you later
thanks for your help for now though i'm getting closer all also have a play and yes ill remeber that for next time
-
Oct 23rd, 2009, 10:05 AM
#29
Re: Advice on uploading to web server
Hey,
Did you see my question:
Oh, by the way, for the sake of clarity, when you are uploading a change, can you give an example of what change you are making, and what files you are uploading?
Would be good to know this so that I can replicate.
Gary
-
Oct 23rd, 2009, 10:08 AM
#30
Thread Starter
Lively Member
Re: Advice on uploading to web server
 Originally Posted by gep13
Hey,
Did you see my question:
Would be good to know this so that I can replicate.
Gary
O yeah sorry lol
i was just adding an extra keyword into my meta keywords on my home page
-
Oct 23rd, 2009, 10:13 AM
#31
Thread Starter
Lively Member
Re: Advice on uploading to web server
when i click publish it wont be to do with any this check boxes will it?
allow this pre compiled site to be updated
use fixed naming and single page assemblies
emit de-bug information
enable strong naming on pre-complied assemblies
because i only have the 1st one ticked?
thanks
-
Oct 23rd, 2009, 10:17 AM
#32
Re: Advice on uploading to web server
 Originally Posted by Roofuss
O yeah sorry lol
i was just adding an extra keyword into my meta keywords on my home page
Hey,
So, I assume you were only uploading the aspx page, is that right?
Gary
-
Oct 23rd, 2009, 10:19 AM
#33
Thread Starter
Lively Member
Re: Advice on uploading to web server
-
Oct 23rd, 2009, 10:35 AM
#34
Thread Starter
Lively Member
Re: Advice on uploading to web server
ok now this is weird after further playing... i have seen that if i copy a file across (aboutus.aspx) then try and view the page i get the same error as i showed above but if i then open the file for editing through fileZilla and simply close it.... the page then works?
what is going on lol...
-
Oct 23rd, 2009, 10:39 AM
#35
Re: Advice on uploading to web server
Interesting...
Not sure, will have to investigate.
-
Oct 23rd, 2009, 11:01 AM
#36
Thread Starter
Lively Member
Re: Advice on uploading to web server
hi this is the error im geting now (im working with my about page)
Code:
Server Error in '/' 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 the assembly 'App_Web_-qajy9ls'. Make sure that it is compiled before accessing the page.
and its referencing this part of line 1: inherits="about, App_Web_-qajy9ls" %>
i dont even know what App_Web_-qajy9ls is!
-
Oct 23rd, 2009, 11:04 AM
#37
Re: Advice on uploading to web server
Hey,
That is an auto-generated assembly name created by ASP.Net, which suggests that it is still being compiled on request, rather than using the pre-compiled version.
Gary
-
Oct 23rd, 2009, 11:09 AM
#38
Thread Starter
Lively Member
Re: Advice on uploading to web server
 Originally Posted by Roofuss
when i click publish it wont be to do with any this check boxes will it?
allow this pre compiled site to be updated
use fixed naming and single page assemblies
emit de-bug information
enable strong naming on pre-complied assemblies
because i only have the 1st one ticked?
thanks
referring back to these have i got these correct with only having the 1st one ticked or should i have more or non ticked?
-
Oct 23rd, 2009, 11:20 AM
#39
Re: Advice on uploading to web server
Hey,
That is the part that I am not sure on, and which I was going to be checking for you 
Gary
-
Oct 23rd, 2009, 01:36 PM
#40
Thread Starter
Lively Member
Re: Advice on uploading to web server
ok thanks im not sure if this file is to do with those settings but i get PrecompiledApp.config file that gets created when i publish.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|