我遇到了与此帖相同的问题 - git update-index --assume-unchanged返回错误 但我不明白答案被标记为正确(我没有看到它解释了如何解决这种情况)
我这样做并得到这个错误:
$ git update-index --assume-unchanged web.config
fatal: Unable to mark file web.config
Run Code Online (Sandbox Code Playgroud)
那么我该怎么做才能解决?
我基本上尝试做与此问题相同的事情,在文件夹中创建一个新的应用程序,以便可以按如下方式访问它.
* http://www.domain.com/ < Main App
* http://www.domain.com/newapp < New App
Run Code Online (Sandbox Code Playgroud)
问题是newapp正在从主应用程序中读取web.config,这会导致错误,因为它没有所有相同的dll等.
对于新应用程序,在IIS中,起点设置为/ newapp,所以我我不知道为什么它从/读取web.config.它被设置为它自己的应用程序.
我在XP专业版的IIS6中测试这个,所以不确定这是否有所作为.主应用程序是dotnet 1.1,新应用程序是3.0.
编辑:添加'inheritInChildApplications <location
>在1.1中不起作用,您会收到错误:
Parser Error Message: Unrecognized attribute 'inheritInChildApplications'
Run Code Online (Sandbox Code Playgroud) 我无法获得facebook图谱API并阅读我的墙贴.
我创建了一个Facebook应用程序,现在它有一个App ID和AppSecret,使用这些,我通过这个url得到一个access_token:https://graph.facebook.com/oauth/access_token?grad_type = client_credentials&client_id = MYAPPID&client_secret = MYAPPSECRET
示例:access_token = 12313231321312312312
所以我在这里打电话:
https://graph.facebook.com/MYFACEBOOKID/feed?access_token=12313231321312312312
但是我看到的结果不是我墙上的物品清单.示例我今天发了一个帖子,而不是那个结果.唯一列出的是我在2周前添加的朋友,没有别的.
如果我转到https://developers.facebook.com/tools/explorer并输入放入/ MYFACEBOOKID/feed并提交的文本框,那么我会看到我想要获得的完整结果(使用应用秘密)等等).如果我从资源管理器页面复制access_token并将其放入我的网址,那么我也会得到完整的结果.
所以想知道我错过了什么?我是否需要在某处添加权限,因此我可以使用AppID/AppSecret方法获取相同的结果来请求access_token?
或者我只是在代码中使用资源管理器页面中的access_token?
刚刚从XP更新到Win7.
我正在使用添加了Tinywall的Windows防火墙(提供更多控制)
但是当我使用Git Bash时,防火墙会阻止所有命令.如果我禁用防火墙,那么一切正常
我无法确定添加到TinyWall白名单的正确例外.
我添加了shell窗口以及应用程序异常的git.exe,但仍然没有.我添加的这些异常程序路径:
C:\Program Files (x86)\Git\git-cheetah\..\bin\sh.exe
C:\Program Files (x86)\Git\bin\git.exe
Run Code Online (Sandbox Code Playgroud)
错误示例:
$ git pull
ssh: connect to host xxx.xxx.xxx port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud) 我有日期时间字符串看起来像以下任何一样:
"1 13 2009 2300","1 14 2009 0","1 14 2009 100"
我需要解析为DateTime.
我试过了:
string[] sExpectedFormats = {"M d yyyy Hmm", "M d yyyy hmm", "M d yyyy 0"};
DateTime dtReportDateTime = DateTime.ParseExact(sReportDateTime,
sExpectedFormats,
System.Globalization.CultureInfo.InvariantCulture,
System.Globalization.DateTimeStyles.None);
Run Code Online (Sandbox Code Playgroud)
但它在第三个"1 14 2009 100"上失败了.我不确定使用什么格式?
为了澄清,我在feed中将这些数据作为日期部分"1 14"和时间部分"100"得到,所以我将它连接起来以便我可以解析为DateTime.
谢谢
git ×2
asp.net ×1
asp.net-1.1 ×1
asp.net-2.0 ×1
c# ×1
datetime ×1
facebook ×1
iis ×1
windows-7 ×1