Click here to Skip to main content
11,495,319 members (68,725 online)
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 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 265
3 Nakul Chaudhari 236
4 OriginalGriff 191
0 Sergey Alexandrovich Kryukov 10,322
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,422
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 11 May 2013
Copyright © CodeProject, 1999-2015
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