publish

Why won't my MVC project work after publishing it?

好久不见. 提交于 2019-12-03 14:26:43
I recently published my first MVC 2 project to a commercial web server, running Windows 2008, and which purportedly supports other MVC sites without issue, but have been experiencing some problems. Here is the high-level structure of the project. As you can see, it is very simple: But, after the site is published, and I navigate to the URL, I get "HTTP Error 403.14 - Forbidden: The Web server is configured to not list the contents of this directory." So, I contacted the web host about it and was told I had to include a default landing page, such as Default.aspx, Index.aspx, etc. I doubted this

Publish ClickOnce from the command line

耗尽温柔 提交于 2019-12-03 13:51:16
问题 Is there a way to have Visual Studio 2008 execute the "Publish Now" button from the command line? I've seen posts that suggest to use msbuild /target:publish to call it. That is OK, but MSBuild doesn't increment the revision number. I'm hoping for something like: devenv mysolution.sln /publish 回答1: To increment build numbers, I am using MSBuild Extension pack inside my .csproj file as follows: <Target Name="BeforeBuild" Condition=" '$(Configuration)|$(Platform)' == 'Release-VersionIncrement

Why does Sitecore publish draft items from the C# API, and how do I stop it doing so?

纵饮孤独 提交于 2019-12-03 12:44:24
I'm running a scheduled publish of my Sitecore master DB using the Sitecore publishing API. I call a web service at scheduled intervals during the day which runs the following code (slightly condensed for readability): // grab the root content node from sitecore Item contentNode = dbSource.Items[ID.Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}")]; PublishOptions options = new PublishOptions(sourceDatabase, targetDatabase, PublishMode.Smart, lang, DateTime.Now); options.RootItem = contentNode; options.Deep = true; Publisher p = new Publisher(options); p.PublishAsync(); When we run the above

publishing asp.net website give “Object reference not set to an instance of an object.” error

断了今生、忘了曾经 提交于 2019-12-03 12:33:43
I am getting fed up with this error. I have search all over the web and tried every possible suggestion to this error I could find. delete app_code, build, add files back, publish. (did not work) delete temporary asp.net files (did not work) In the end I even tried the command line and get the following stacktrace. error ASPRUNTIME: Object reference not set to an instance of an object. [NullReferenceException]: Object reference not set to an instance of an object. at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile, String destPhysicalPath) at System.Web.Compilation

Publish Version vs Assembly (etc) Versions

[亡魂溺海] 提交于 2019-12-03 12:21:19
问题 I've read threads here about the Assembly, File and Assembly Informational versions. I'd like to know where the Publish version fits in. The result of... string thisAppsVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); ...appears to be the AssemblyVersion. Up until now I've been using the publish version with the deployment class: ApplicationDeployment deployment = ApplicationDeployment.CurrentDeployment; Version thisAppsVersion = deployment

bootstrap的响应式布局

♀尐吖头ヾ 提交于 2019-12-03 12:15:16
css ul{ list-style: none; margin: 0; padding: 0; } a{ color: #666; text-decoration: none; } a:hover{ text-decoration: none; } body{ background: #f5f5f5; } .container{ background: #fff; } /* 因为设计稿是1280px的,而bootstrap里面的container最大为1170px,因此我们手动修改container宽度 */ @media screen and (min-width:1280px){ .container{ width: 1280px; } } /* header */ /* 如果header不设置padding-left,它本身有一个左侧内边距,因为我们需要右侧内边距,所以不能使用.row的bootstrap类样式,所以可以用这种方式 */ header{ } .logo{ background-color: #429ad9; } .logo img{ display: block; margin: 0 auto; /* width:100%; */ max-width: 100%; /* logo图片不需要缩放 */ } .logo p{ height: 50px; font

Publish WebApplication using NAnt

本秂侑毒 提交于 2019-12-03 11:17:13
问题 Is it possible to accomplish publish (as in Visual Studio publish on Web Application project) on solution using NAnt? I just can't find the solution. 回答1: They key is to use the built-in "_CopyWebApplication" target. Here is what i do <target name="compile" description="Compiles the project."> <exec basedir="." program="${DotNetPath}msbuild.exe" commandline=" src/MyProject.Web/MyProject.Web.csproj /nologo /t:Rebuild /t:ResolveReferences;_CopyWebApplication /p:OutDir=../../output/build/bin/ /p

IOS工程自动打包并发布脚本实现

女生的网名这么多〃 提交于 2019-12-03 11:13:22
作者:webfrogs 转载请注明出处。 前言 IOS的开发过程中,当需要给测试人员发布测试包的时候,直接使用xcode来做的效率是非常低下的。尤其是当有一点小改动需要重新出包时,那简直是个折磨的人的工作。通过一番研究后,遂决定写一系列脚本,以代替人工完成打包和发布的过程。 目前脚本已经完成,基本可以满足我目前的需求。现将其开源,托管在github上,项目地址: 点击这里 思路 借助xcode所附带的“Command Line Tools”,可以通过命令行来完成IOS工程的编译和打包工作。脚本正是基于此完成的。 本套脚本分为三个部分:负责编译工程并打包的脚本ipa-build,负责生成itms-services协议文件的脚本ipa-publish,以及负责将ipa-publish脚本生成文件上传到服务器的脚本upload。 其中,由于我自己的情况是服务器端的同事给我了内部测试服务器的sftp的上传权限,所以这个upload脚本主要实现了使用sftp来上传的功能。具体可以实际情况来做修改。 关于itms-services协议的一些内容,可以参考我之前的文章: 《shell脚本实现ipa一键安装(itms-services协议)》 注意: 默认安装完的xcode并没有自带“Command Line Tools”,需要在xcode中选择后下载才能使用 实现 打开工程后

netcore程序部署 docker 异常 --生成图片二维码缺少libdl

百般思念 提交于 2019-12-03 10:47:20
The type initializer for 'Gdip' threw an exception, Unable to load shared library 'libdl' or one of its dependencies. 如下图所示: 通过报错分析,docker容器缺少libdl文件导致报错。 需要在镜像里安装组件libgdiplus 、libc6-dev 构建Dockerfile内容如下: #基于 `microsoft/aspnetcore:latest` 来构建我们的镜像 FROM microsoft/aspnetcore:latest AS base RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev #拷贝项目publish文件夹中的所有文件到 docker容器中的publish文件夹中 COPY . /publish #设置工作目录为 `/publish` 文件夹,即容器启动默认的文件夹 WORKDIR /publish #使用`主程序.dll`来运行应用程序 CMD ["dotnet", "主程序.dll"] 来源: https://www.cnblogs.com/hank-hu/p/11791683.html

Publish webcam feed to Flash Media Server

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a fairly high-end webcam (snc-rz25n) that I need to rebroadcast using the Flash Media Server. I can get the picture as MPEG-4 (not h.264). So I need to transcode to h.264 and publish at multiple bitrates to FMS. The only solution I have been able to come up with thus far is to transcode the stream using ffmpeg and then also use ffmpeg to downconvert the stream (for the multiple bitrates) and then publish all of these transcoded streams to FMS via custom Java code (using Red5). Surely there is a better way. Flash Live Media