小编Mic*_*ein的帖子

MsDeploy无法进行webdeploy

我正在尝试网络部署.

因为我希望能够重现这一点,所以我使用了测试系统

Windows 2008 RC,IIs 7.5 +部署包我使用http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/ 启用了跟踪 来配置部署 http://technet.microsoft.com /en-us/library/ff729439(v=ws.10).aspx

我创建了一个新的WCF服务应用程序,(没有改变)编译它并尝试部署

我收到以下回复(几分钟后)

------ Build started: Project: WcfService1, Configuration: Debug Any CPU ------
  WcfService1 -> C:\Development\BrandShield\Services\WcfService1\bin\WcfService1.dll
------ Publish started: Project: WcfService1, Configuration: Debug Any CPU ------
Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Debug\Package\PackageTmp.
Start Web Deploy Publish the Application/package to http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE ...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Error : Web deployment task failed.(Could not complete the …
Run Code Online (Sandbox Code Playgroud)

visual-studio-2010 iis-7.5 webdeploy

7
推荐指数
1
解决办法
1万
查看次数

在 pycharm 调试器中调试异步程序

我的请求是从调试器和 pycharm 提示符中获取调试数据:

假设我有一个带有错误的旧式 python 同步程序:

   def listdir(self, remote_path):
         with ssh.connect(self.connection_settings['host'], username=self.connection_settings['username'],
                                    password=self.connection_settings['password']) as conn:
            with conn.start_sftp_client() as sftp:
                sftp.chdir(remote_path) # breakpoint here

                files = sftp.readdir()
                files_name = [file.filename for file in files]

                return files_name

Run Code Online (Sandbox Code Playgroud)

我会停止它,转到调试器,单击调试器控制台-> 显示 python 提示,然后在运行时调试我的问题:

> sftp.getcwd()
bad_user_location
> sftp.chdir(good_base_location)
> sftp.readdir()
Run Code Online (Sandbox Code Playgroud)

只需即时重写代码并测试状态和运行时即可。(这一直是我调试的方式,使用immediate windowMicrosoft 语言开发中的,以及 Python 和其他脚本语言中的 REPL。

现在我有一个异步程序:

  async def listdir(self, remote_path):
        async with asyncssh.connect(self.connection_settings['host'], username=self.connection_settings['username'],
                                    password=self.connection_settings['password']) as conn:
            async with conn.start_sftp_client() as sftp:
                await sftp.chdir(remote_path)  # breakpoint here


                files = await sftp.readdir() …
Run Code Online (Sandbox Code Playgroud)

python debugging asynchronous python-multithreading python-asyncio

5
推荐指数
1
解决办法
805
查看次数

如何计算两个ips之间的主机数量?C#

我有两个ips:

1. 1.1.1.1
2. 4.4.4.4
Run Code Online (Sandbox Code Playgroud)

显然这只是一个例子,这是一个动态计算器

如果子网掩码不相关,我如何计算所述ips之间的主机数?

c# algorithm ip

2
推荐指数
1
解决办法
1505
查看次数