我很久以前将我的robots.txt文件提交给Google,它仍然给我一个不理解第一行的语法.
谷歌搜索后最常见的问题是Google添加'?' 在线的开头,但它不是这样做的.
robots.txt的网址是
www.leisurepursuits.co.uk/robots.txt
错误是:
第1行:用户代理:*语法不明白
很抱歉在提出另一个问题之后很快就问这个问题,但我现在正在努力解决这个问题.
我有一个jQuery方法,它收集数据并将其传递给valuescontroller中的PUT函数.但控制器甚至没有被调用(因为我有一个断点,它没有打破)
我可以检查一下我的jQuery是否正确?
var data = {
id: truckId,
obj: {
TruckId: truckId,
Reg: reg,
Description: desc,
Condition: condition
}
};
var json = JSON.stringify(data)
$.ajax({
url: '/api/Values',
type: 'PUT',
contentType: "application/json; charset=utf-8",
data: json,
success: function (results) {
$.getJSON("api/Values", LoadTrucks);
alert('Truck Updated !');
}
})
Run Code Online (Sandbox Code Playgroud)
控制器看起来像这样:
public void Put(int id, TruckInfo obj)
{
WebApiTestEntities db = new WebApiTestEntities();
var data = from item in db.TruckInfoes
where item.TruckId == id
select item;
TruckInfo oldRecord = data.SingleOrDefault();
oldRecord.Reg = obj.Reg;
oldRecord.Description …
Run Code Online (Sandbox Code Playgroud) 我有一台新的Windows 10 Home机器,我想安装SQL服务器.我已经安装了Visual Studio 2017和SSMS 2017(我最初安装了SQL).
在第一次尝试时,我收到此错误:
VS Shell安装失败,退出代码为1638
并发现我需要卸载Microsoft Visual C++ 2017 Redistributable(x86)和(x64),安装SQL Server,然后重新安装Microsoft Visual C++ 2017 Redistributable(x86)和(x64).如此处所见
然后我收到了这个错误:
试图执行未经授权的操作
我一直在尝试安装SQL Server 4周
编辑:
我找到了日志,但错误似乎相同:
我试图掌握NSerivceBus,虽然它很顺利,但我很难理解如何配置EndPointName.
因此,例如,在完成以下几个示例之后,我设法提出以下内容,但我所做的任何更改EndPoint名称的尝试都失败了.
所以myServer队列当前是它的名字,我想从这里命名空间:
namespace MyServer
{
class EndPointConfig : IConfigureThisEndpoint, AsA_Server
{
}
}
Run Code Online (Sandbox Code Playgroud)
但是当我把[EndpointName("AnotherQueue")]没有任何改变时(除了它没有填满myServer队列.
我还尝试更改Global.ASAX:
public static IBus Bus { get; set; }
void Application_Start(object sender, EventArgs e)
{
Bus = NServiceBus.Configure.With()
.Log4Net()
.DefaultBuilder()
.DefineEndpointName("AnotherQueue")
.XmlSerializer()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start();
}
Run Code Online (Sandbox Code Playgroud)
但同样,它没有用.
我正在通过查看mmc并检查那里排队的消息来测试它.
最后我尝试改变web.config
<configSections>
<section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NserviceBus.Core"/>
<section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core"/>
</configSections>
<MsmqTransportConfig ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5"/>
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="MyMessage" Endpoint="AnotherQueue"></add>
</MessageEndpointMappings>
</UnicastBusConfig>
Run Code Online (Sandbox Code Playgroud)
但仍然没有.
有人能帮忙吗?我仍然试图解决这个问题(对我来说这是一项新技术)所以如果我对这个问题提出质疑,我就会开玩笑.
在此先感谢Lex