Click here to Skip to main content
11,721,053 members (83,300 online)
Rate this: bad
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 9:28am

1 solution

Rate this: bad
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: or
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!
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 Sergey Alexandrovich Kryukov 500
1 OriginalGriff 334
2 Mika Wendelius 160
3 F-ES Sitecore 140
4 Maciej Los 80
0 Sergey Alexandrovich Kryukov 2,199
1 OriginalGriff 959
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540

Advertise | Privacy | Mobile
Web02 | 2.8.150901.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