Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Well i need to publish a website, but 1st i need to compile codebehind (cs files) into dll's...i did this with this line of code in Developer command prompt of VS:
Aspnet_compiler -p "C:\SiteLocation" -v -f C:\DestinationFolder
However this line convert all files in dll (cs files and html files) and i dont need html files converted into dll's...and if i try using Publish website option in visual studio 2012, somehow it just wont work on server, its like it doesnt convert my cs files into dll's...and when i place it on server i constantly get this msg:
The page cannot be displayed because an internal server error has occurred.
i am kinda new with this type's of issues, so any help would be appreciated.
Posted 11-May-13 10:28am
Milos12364

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

if you use Visual Studio 2012 follow this:
 
BUILD -> Publish Selection -> Profile -> select in combo box
 
then set Publish Method to FTP
fill other field:
Server : ftp address of your site / like: ftp://yoursite.com or ftp://ftp.yoursite.com
Site Path: address of the main directory to locate your site / default set to '/'
Username , Password : user & pass in needed to be authenticated in FTP connection
 
Destination URL : you can omit this field.
 
press Publish
 
hope to help you!
  Permalink  
Comments
Milos12 at 12-May-13 10:04am
   
First of all thx for reply mate...well look, somehow i cant find Profile section, i think that's cuz i allrdy used publish website before (but i deployed it to folder on desktop), now what i get once i enter Publish Website section is that i'm asked for Target Location (drive path) and i have few check boxes below (like Allow this precompiled site to be updatable, use fixed naming and single page assemblies , Emit debug info)... do you maybe know how can i go back to that profile section so i could select FTP as publish method??? hope you understand what i mean...
abforce at 13-May-13 7:18am
   
select NEW in combo box and create a new profile
abforce at 13-May-13 7:15am
   
once you open publish window click on profile tab then click on combox and select and create a new profile for your publshing
Milos12 at 13-May-13 14:42pm
   
Thx mate for your help, i finally did it :) thx once again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 480
1 Maciej Los 290
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 11 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100