我有一个位于IIS 7服务器上的网站: WWW.example.COM
我想创建几个看起来像SUBDOMAIN1.example.COM的子域
我创建了一个IIS网站,我将绑定设置为http,端口80,我的服务器的IP地址,以及SUBDOMAIN1.example.COM和example.COM下文件夹的物理路径
我重新启动了我的网站并点击浏览,浏览器比打开地址:http: //SUBDOMAIN1.example.COM
但该网站没有显示出来.
我必须对DNS做些什么吗?
我正在尝试使用以下日志记录程序集配置控制台应用程序:
如果以编程方式配置记录器,那么一切正常:
NameValueCollection properties = new NameValueCollection(); properties["showDateTime"] = "true";
Common.Logging.LogManager.Adapter = new Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter(properties);
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试使用以下配置文件启动它,它会爆炸:
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
<arg key="configType" value="FILE-WATCH"/>
<arg key="configFile" value="~/Log4NET.xml"/>
</factoryAdapter>
</logging>
</common>
</configuration>
Run Code Online (Sandbox Code Playgroud)
这些是相关的错误消息:
{"Unable to cast object of type 'System.Configuration.DefaultSection' to type 'System.Configuration.AppSettingsSection'."}
{"Failed obtaining configuration for Common.Logging from configuration section 'common/logging'."}
Run Code Online (Sandbox Code Playgroud)
它似乎无法解析我的配置文件,是否有人知道正确的格式应该是什么,或者是其他错误的东西?我使用官方文档创建了配置文件.
我在服务器上安装了一个Windows服务(C#),它每10分钟启动一个可执行文件(C#),以处理从一个目录到另一个目录的一些图像.任何用户都不需要进行任何交互.尽管如此,由于可执行文件作为输出窗口,为了使服务运行,我必须启用" 允许服务与桌面交互 "复选框,这被认为是一种不安全和不良做法.我该如何解决这个问题?我喜欢将可执行文件与我的Windows服务分开,因为
编辑:
未启用与桌面的交互时,控制台应用程序无法正确执行,并且Windows日志中会出现以下错误:
Faulting application myapp.exe, version 1.0.0.0, time stamp 0x4b8304c3,
faulting module KERNEL32.dll, version 6.0.6002.18005, time stamp 0x49e03821,
exception code 0xc0000142, fault offset 0x00009eed, process id 0x10ec,
application start time 0x01cab736950a64b5.
Run Code Online (Sandbox Code Playgroud)
启用桌面交互后,应用程序将正常执行.
有什么想法吗?
非常感谢你的时间.
我正在尝试使用Visual Studio 2010 Professional 调试.NET Framework的源代码.我按照Raj Kaimal的帖子中描述的步骤进行了操作,但我必须做错了,因为我要看到的唯一代码是反汇编代码:
替代文字http://jdecuyper.github.com/images/SO/vs2010DebugFramework.jpg
正如您在图像中看到的,禁用了" 转到源代码"和" 加载符号"选项.然而,从Microsoft的服务器下载符号,因为我可以在本地缓存目录中看到它们.
我正在调试的代码如下:
var wr = WebRequest.Create("http://www.google.com");
Console.WriteLine("Web request created");
var req = wr.GetRequestStream();
Console.Read();
Run Code Online (Sandbox Code Playgroud)
当我点击F11进入第一行代码时,会弹出一个窗口,查找"f:\ dd \ndp\fx\src\Net\System\Net\WebRequest.cs"中的"WebRequst.cs"文件在我的机器上不存在.
我错过了什么?
有没有人找到/使用类似于Joomla的ASP.NET应用程序?
我需要在Windows Server上设置一个快速而脏的CMS,我们的客户端不希望我们使用除ASP.NET之外的其他东西.
Drupal 6的缓存可以设置为禁用,正常或激进.我找不到Drupal 7安装的这些选项.只有一个按钮可以刷新所有缓存,但是对于我对模块或模板所做的每个更改都必须单击它.通过更改,我的意思是将一些HTML标记添加到模块或模板.
感谢mirzu的回应,我已经安装了devel模块,但它也不起作用.我这样看到我的更改的唯一方法是禁用和启用模块.
hello.module看起来像:
function annotate_menu() {
$items = array();
$items['hello'] = array(
'title' => t('Hello world'),
'page callback' => 'hello_output',
'access arguments' => array('access content'),
);
return $items;
}
function hello_output() {
header('Content-type: text/plain; charset=UTF-8');
header('Content-Disposition: inline');
return 'annotate';
}
Run Code Online (Sandbox Code Playgroud)
模板page-hello.tpl.php包含print $content;
.
我通过访问该页面http://localhost/test/hello
.
使用以下代码,我可以显示"应用程序"日志下列出的所有条目:
EventLog appLog = new EventLog();
appLog.Log = "Application";
appLog.MachineName = ".";
foreach (EventLogEntry entry in appLog.Entries)
{
// process
}
Run Code Online (Sandbox Code Playgroud)
由于我没有FTP o RDP访问服务器,有没有办法获取所有可用日志的列表,在"应用程序"旁边?某些日志是标准的,但新的可以由用户/应用程序添加.
我需要知道SQL Server 2000中的所有数据库占用了多少空间.我做了一些研究,但找不到任何帮助我的脚本.
在工作中,我们有一个安装了IIS和Subversion的Windows Server 2003.我们使用它来发布和测试我们的ASP.NET网站.每个程序员都在他的PC上安装了Tortoise,可以更新/提交内容到服务器.托管存储库工作正常.但是,保存在这些存储库中的文件需要复制到我们的本地IIS(虚拟目录).
将这些subversion存储库发布到本地IIS的简单方法是什么?
编辑:
感谢puetzk我添加了一个简单的bat文件,每次提交时都会执行(检查有关钩子的subversion文档).我的bat文件只包含:
echo off
setlocal
:: Localize the working copy where IIS points)
pushd E:\wwwroot\yourapp\trunk
:: Update your working copy
svn update
endlocal
exit
Run Code Online (Sandbox Code Playgroud) 在asp.net页面内,我应该使用
<html><title>My page's title from México</title></html>
Run Code Online (Sandbox Code Playgroud)
要么
<html><title>My page's title from México</title></html>
Run Code Online (Sandbox Code Playgroud)
两个示例都具有相同的输出.由于asp.net将我的所有页面编码为utf-8,因此不需要使用html实体,是吗?