English 中文(简体)
有效载荷的临时夹
原标题:Temporary folder for uploads

我想设立一个临时文件,在我的申请中储存上载荷。 我在申请中添加了脚本,在开发过程中,我做了一些细微的工作。

However when I publish to my test server, the folder doesn t get published unless it has a file in it. On top of that, the permissions are wrong on the folder and I need to manually change them by logging onto the test server and doing it through explorer. I am using ClickOnce WebDeploy to publish to the test server.

是否有比我这样做更好的选择? 或以某种方式在出版时将许可放在文件夹上?

最佳回答

To automate the setting of folder permissions, see http://sedodream.com/2011/11/08/SettingFolderPermissionsOnWebPublish.aspx

要部署双手,最容易的办法就是在你的项目中把一只 du子文件,如一只 file子文件,其中没有任何东西。 Web Deploy获得一只手.,是空的。

问题回答

这样做的“官方”方式是使用WebDeploy,但这不是一项简单的工作,需要开展大量工作,以便安装、配置,然后为网站制作部署文字。

你不提你重新使用什么方法出版。 FTP? 档案系统





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签