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.
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:
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?
How do I build a web application project from command line using Web Developer Express 2010?
I am using the same command format that I would use with devenv.exe (Visual Studio), so I can evaluate us moving forward to VS2010. However, I am having real trouble building our code. Our solution consists of 4-5 projects, consisting of assemblies. The last assembly is the web site code. The root .sln file is the one which when opening in the IDE can click Rebuild All, and the DLL's of each project are generated and then brought into the website project.
However, when I run vwdexpress.exe from the command line nothing happens and no Dlls are generated. This is not giving me any confidence to run with VS2010.
The in folders of each respective project are empty, but it takes 3-4 seconds for the command to finish, which gives me the impression it did something.
In Windows XP, I used the following command line to tie a particular website to a particular version of .Net Framework:
C:WindowsMicrosoft.NetFrameworkv2.0.50727 aspnet_regiis -s w3svc/1/root/sdcrrlf (sdcrrlf is the website and is written in ASP.NET 2.0; hence uses v2.0.50727; some other of my sites use V1.1.4322)
This command line does not work in Windows 7 with IIS 7.0; error message says path is incorrect.
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.
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.
I want to deploy asp.net 4.0 web site on windows server 2003, Now I already have a classic asp site running on it. Would there be any problem if I install .net 4.0 framework for my new site. Will the existing site (the one in classic asp) be affected?
Can someone point me to a step-by-step guide on how to deploy ASP.Net applications to a totally empty and brand new Windows 2003 Server?The server has ASP.Net and the .Net framework installed on it. IIS is up and running. I have created a new application pool.
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
I'm working on a project where we're using Windows Desktop Search (WDS) to index files on a web share and then later allow the user to search via a website for documents in the share.
These documents are transferred to the share via FTP, however it would seem that either the computer never goes idle to index or at some point the indexing stops. Is there a way from the command line or within the program itself to force this to happen without having to re-invent the wheel? Using .NET 3.5 and C#.
i am facing an issue with crystal report when i deploy my web application in client side. I have a web application developed in visual studio 3.5. Our build machine contains crystal report version 10.5, we have published the web application and created the build to deploy in the client machine IIS. We have installed the redistribution of crystal report 11 in the client machine. we have currected the config file and all based on this. but we are getting a runtime error when the application try to load reports.
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.
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?
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.
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.....
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?
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?
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?
If I open a command line on that server and type that command, it returns all of the scheduled tasks for the system. If I run that code, it returns a blank page.
I built my ASP.NET website using vs2008 professional.
Now I have purchased vs2010 professional edition.
I do format my computer and then installed vs2010.
Now I want to deploy my website in vs2010, but it is giving configuration error in <add assemblies...
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'