Configuration :: Web App Compile/publish From Command Line?

Nov 3, 2010

I am trying to figure out how to publish a web app from a command line if there isn't a solution file present. Is this possible? Is it possible to generate a solution file from the command line? I would need example of how this is accomplished.

View 2 Replies


Similar Messages:

How To Publish Site From Command Line With Some Publish Profile

Aug 5, 2010

msbuild /t:publish [use PublishProfileName] someproject.csproj

View 2 Replies

Compile A Single (.aspx) Page From The Command Line?

Apr 9, 2010

I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.

View 2 Replies

Web Forms :: How To Compile Application Using Command Line Prompt

Nov 12, 2013

how can i compile command line through web application? my application is built on asp.net(C#)....

View 1 Replies

C#: How Compile Classes In App_Code So That Can Be Run From Command Line For Unit Testing

Jul 27, 2010

I have several class files in App_Code in an ASP.net website running in Microsoft Visual Studio 2005 Professional.In liu of using a full unit test suite I just want to somehow compile those project-wide classses into an .EXE so that I can nightly run unit tests on them.I do know how to create a separate C# library project consisting of those files and how to include them into my website--but that is not desirable--I don't want to give up the ability to make on-the-fly code changes of those library classes when running the website in the debugger. As far as I know .Net debugger isn't powerful enough to modify code in included libraries with instant auto re-compilation on page re-load.So, I want my cake and eat it, too:
Command-line unit testing of website class files in App_Code directoryBeing able to modify those class files w/o stopping/re-starting the web debugger.

View 2 Replies

How To Use VS2010 One-Click Publish (MsDeploy) To Deploy Remotely From The Command Line

May 10, 2010

On the remote web server I have installed the remote service http://x.x.x.x/MsDeployAgentService.If I use the Web Application Project's Publish command in VS2010 I can successfully publish to this remote web server and update a specific IIS website.

What I want to do now is execute this capability from the command line.I am guessing it is two steps. First build the web application project using the relevant build configuration:

msbuild "C:MyApplicationMyWebApplication.csproj"
/T:Package /P:Configuration=Release

Then issue the MsDeploy command to have it publish/sync with the remove IIS server:

msdeploy -verb:sync
-source:package="C:MyApplicationobjReleasePackageMyWebApplication.zip"
-dest:contentPath="My Production Website",
computerName=http://x.x.x.x/MsDeployAgentService,
username=adminuser,password=adminpassword

Unfortunately I get an the error: Error: (10/05/2010 3:52:02 PM) An error occurred when the request was processed on the remote computer.

Error: Source (sitemanifest) and destination (contentPath) are not compatible for the given operation. Error count: 1.

I have tried a number of different combinations for destination provider but no joy .Has anyone managed to replicate VS2010 Web Application Project "One Click" Publish from the command line?

View 2 Replies

Visual Studio :: Publish The Website And Reduce Its Size By Command Line

Sep 11, 2010

We need through command line to build our site (which we already do using msbuild.exe), but the resulting files are way too many and it takes our to ftp it to the server. I am able to publish the website and reduce its size by ~90%; however, we need to do this through command line not manually using the GUI. I have read many postings but noone is clear on how to do it (and msbuild seems to no be able to do this). Can anyone provide me a link. We are using Visual Studio 2010 and DOT NET4.0

View 3 Replies

Configuration :: Compile And Publish Site - Update .HTM Includes?

Nov 16, 2010

Compile and Publish Site - but i want to be able to update .HTM includes? I have a few pages that have JQUERY sliders and every onces in a while the client wants to update IMAGES, i thought it would be easy if i could access the .HTM file update code instead of doing a recompile! is this even possible? or am i doing it complety wrong?

View 2 Replies

Configuration :: Using VS2008 To build / Compile Web Application And Then Publish It To The Server?

Jul 27, 2010

I'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.

I have been reading that publishing via VS is not the best approach, so I guess I have two questions:

1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?

2. In your opinion what is the best deployment strategy?

View 4 Replies

Configuration :: Using Publish Web Site Command?

May 30, 2010

I love the idea of precompiling my web site. In fact, 've never understood why MS didn't consider this important all along. So I tried the new Publish Web Site command in VS2010 and it seems to work well. That is, until I need to make a change to my site!In order to implement the tiniest of changes to my site, it looks like I must run the Publish Web Site command again, which takes forever because it overwrites and copies absolutely everything on my site, including the upload directory where users' images get stored, which is a problem!If I attempt to instead use Copy Web Site, then I get error about how I can't have an App_Code folder, or something along those lines, in a precompiled app.So what am I supposed to do? Is the only way I can have a precompiled site by requiring a complete reset of all content if I need to implement the tiniest of changes?

View 13 Replies

Configuration :: Command Line Build And Deploy On Windows 7

Jul 6, 2010

I've been doing this project at work on a little app that we use for building and deploying websites to different customers. It works quite well, and we actually only have to press two buttons to have our DataProviders and DataRecords generated from sql and having our dll's compiled and everything sent to the customers ftp as a zip file, ready to unpack and use.

Now the problem is that since I've upgraded to Windows 7 (was XP) our compiler (either csc.exe or the msbuild.exe) seems to be messing with the codepage of our generated files. Resulting in æøå and characters alike are being converted to what seems to be ANSI encoding (this doesn't happen when running on XP).

I've been searching the net to find a viable solution to our problem and the only thing I have come upon is that the .NET framework version 4 has a parameter for codepage. Since we are using webdeploy build files on the 2.0 framework (and don't have time to roll our projects on to the next version framework) I would like to know if anyone has a quick remedy to resolve our problems with codepage.

View 1 Replies

Configuration :: Invalid @ Command Directive /left.aspx, Line 1?

May 15, 2010

I'm writing my application in ASP.Net and everything works fine,but when I put it online,it won't display my .aspx pages.I get this error:

I keep getting this error when I put my asp files online:

Invalid @ Command directive

/left.aspx, line 1

The specified 'Page Language="vb" AutoEventWireup="false" Codebehind="left.aspx.vb" Inherits="shoppingknokkeheist.left" ' option is unknown or invalid.

View 3 Replies

AJAX :: Command Line Tool Run From The Command Line?

Mar 24, 2011

ave never used ajax.... I'm currently putting together a little web app that basically calls a program on the server itself (a command line tool) and displays the output to the web page.When the command line tool is run from the command line, it outputs status messages as it does it's thing... as it is now, my page just displays all the output when it's done. What I would like to do is show each line of output on the web page as they happen, just like when run from the command line. I'm guessing ajax is what I need... can anyone point me in the right direction for this specific scenario (user clicks button, output streams to web page as it happens without full page post backs)... a good example would be how ping.exe displays it's output on the command line

View 2 Replies

Web Forms :: Saving PDF Files By Suppressing Save Dialog Box When Running Print Command Through Command Line

Sep 2, 2010

[Code]....

Using above code, I got succeeded in printing PDF file through command line. But it runs the Acrobat Reader and opens Save dialog box.

In my case, I want to suppress Save dialog box and save the file on other location using c# coding. I mean I want to save a PDF file behind the scene.

View 1 Replies

MVC :: Line Fails With An Unhandled Compile Error ?

Jul 24, 2010

I'm working through the Mvc Music store tutorial on PDF. At page 52, near the bottom, is a line that reads:

<%: Html.EditorFor(model => Model.Album, new {Artists = Model.Artists, Genres = Model.Genres})%>

This line fails with an "unhandled compile" error when I run the program and enter "storemanager/edit/388" in the address bar. I have gone over every bit of code I can find and it compares perfectly to the tutorial.

View 3 Replies

Causes Transient Aspx First Line Compile Errors?

Feb 8, 2010

Every once in a while, when I'm editing an aspx or ascx page, Visual Studio will start telling me there is an error on the first line of my file. For instance, right now, it is saying Argument missing on line 1. That line is just your typical header, with no apparent problems (to my eyes), and I hadn't even changed that one when the error started appearing.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyControl.ascx.cs"
Inherits="MyNamespace.MyControl" Debug="true" %>

Unlike most compile errors, the build still succeeds. (At least this time it did.)

It's worth noting that no other errors or warnings are thrown by this file or its as[p|c]x.cs

Sometimes, to get out of it, I am forced to undo my changes until it disappears and carefully redo what I wanted. This time, grasping at straws, I cleaned and rebuilt the solution. While I was typing this, the error disappeared, sometime after the rebuild finished.

I have a suspicion that it often happens when I tinker with the databinding in my markup. Sometimes it seems to appear if I'm missing a space inside a tag before its closing slash, like so:

[...] Text='<%# Eval("Field") %>'/>

versus:

[...] Text='<%# Eval("Field") %>' />

...But that doesn't seem to have been the problem in this case.

When coding PHP and Perl, sometimes the interpreter would throw an error referencing the very last line of the file. Over time, I learned to look for imbalanced brackets and other delimiters somewhere up above. This problem in ASP.NET feels similar, but stranger, since it's the first line, and not just something amiss above, cascading down to the bottom. Or is it just Visual Studio getting temporarily confused? Can any pros shed some light on this problem, with reasons why it happens? I'd like to have some logic (as opposed to my own built up superstition) to throw at this the next time it rears its ugly head.

View 1 Replies

Changing Web.config From Command Line

Dec 8, 2010

I have an ASP.NET application running under IIS. I'd like to be able to change one of the web.config values in Application Settings. I know it's possible to change it programmatically as described in this answer but I'm wondering if the same thing can be accomplished from the command line.

The IIS 7 Manager allows application settings and connection strings (among other options) to be changed. My hope is there is a way to do the same via the command line for IIS 6 and/or 7.

View 2 Replies

1.1 - Use The Command Line Compiler Behind Pages Into The DLL

Sep 12, 2010

I need to use Notepad to make changes to an old .Net 1.1 app. I then would like to use the command line compiler. the syntax (and where I need to navigate to in my cmd) to compile the changes I make in the code behind pages into the DLL?

View 3 Replies

Deploying A Web Application From The Command Line?

Jun 17, 2010

Im looking to deploy a web application on a build server.

It is a very small web app and so far i have written a nice little console app that checks out from SVN and then calls msbuild on the .sln file.

This of course is not the same as publishing a web app and so far have not found a programatic way of publishing.

After msbuild has run can i simply delete all .cs and .vb files and then deploy?

or

Should i really try and find a way to publish programatically?

View 1 Replies

C# - Running A Command Line In A Web Form?

Feb 10, 2011

i would like to do an automated test system which will allow me to run a batch file automatically. right now the procedure is:

[code]...

i would like to have a button so that once the user clicks it, the above processes are ran automatically.i have something done, which allows me to open up cmd.exe as shown below:protected void Button1_Click(object sender, EventArgs.

View 2 Replies

Web Forms :: Executing A .bat File In Using The Command Line In C#

Aug 23, 2010

I'm trying to execute a .bat file in my web page when a user clicks a button. The normal command I would run in the command window is as follows. abc.bat 1 Where 1 is project number which is dynamically assigned according to the scenario in the program. Also the .bat file is inside the folder D:Test1. My code looks like this.....

void CreateProjectData( string strProjectId)
{
System.Diagnostics.Process newProcess = new System.Diagnostics.Process();
newProcess.StartInfo.UseShellExecute = false;
newProcess.StartInfo.FileName = @"D:Test1abc.bat" ;
newProcess.StartInfo.Arguments = "abc.bat " +strProjectId;
newProcess.StartInfo.CreateNoWindow = true;
newProcess.StartInfo.RedirectStandardInput = true;
newProcess.Start();
newProcess.Close();
}

When I run the .bat file the data should be generated for project and stored in a database. When I run this in command line it works fine. But when I run the above code in the asp.net web page it executes without any errors but does not store any values in the database. Have I defined the project name, arguments correctly in the above scenario?

View 4 Replies

Standard Way To Retrieve Command Line Arguments

Nov 4, 2010

What is the most equivalent method to get the command line arguments in web, asp.net, simmiliar to an executable file application?

View 1 Replies

Post A Http Request From Command Line?

Nov 25, 2010

I need to post a request to aspx page within dos command line.. How can I do that ?

View 3 Replies

C# - Stream Command Line Output To A Webform?

Jul 9, 2010

Is there a recommended or good way to stream the output messages asynchonously to a web form so there's some indication of progress? A bit like TeamCity does for build scripts. Should I be polling a webservice? Using the OutputDataReceived event? Turning off buffering?

View 2 Replies

Command Line - SDelete Called From Page?

Jul 16, 2010

I want to use SDelete after some code is run on an asp.net page. SDelete is a command line tool. My specific question is has anyone been able to run this SDelete from an asp.net page? More generic question would be, how do you run a command line utility from an asp.net page?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved