我需要在ASP MVC项目的构建过程中从TC的工件中排除一些文件.这些文件包含web.debug.config文件,但也有其他文件.
目前,TC中的工件路径设置如下所示:
src/Project.Web/*.config => arch.zip
我需要以某种方式告诉它跳过web.debug.config文件.我试过这个并不起作用:
src/Project.Web/*.config => arch.zip
-src/Project.Web/*.debug.config
所以,理想情况下,我不希望在构建期间创建的arch.zip中的这些文件.
我正在使用Entity Framework Code First 4.3 + Azure并且无法连接到数据库.我得到的错误如下(在第一个查询上):
Keyword not supported: 'server'.
Run Code Online (Sandbox Code Playgroud)
我在Web.config中设置了以下连接
<configSections>
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
<add name="TestDBContext"
connectionString="Server=tcp:[SUBSCR].database.windows.net,1433;Database=[MyDB];User ID=[user];Password=[pass];Trusted_Connection=False;Encrypt=True;PersistSecurityInfo=True"
providerName="System.Data.EntityClient" />
</connectionStrings>
Run Code Online (Sandbox Code Playgroud)
我的DbContext实现类使用连接字符串的名称:
public class MyContext : DbContext, IMyContext
{
public MyContext()
: base("TestDBContext")
{
Configuration.LazyLoadingEnabled = true;
Configuration.ProxyCreationEnabled = true;
}
Run Code Online (Sandbox Code Playgroud)
你能说出发生了什么吗?
entity-framework connection-string azure code-first ef-code-first
任何人都可以建议在Silverlight中创建WPF中存在的UpdateTarget()方法的解决方法吗?删除DP上存在的现有绑定并手动设置值不是我的选择.谢谢
拥有以下app.config:
<configuration>
<appSettings>
<add key="filepath" value="D:\Data" />
<add key="node2" value="..." />
...
</appSettings>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我想用一个新值替换具有'filepath'键的设置(在这种情况下通过替换'D:\ Data ..').新值应作为参数传递给powershell脚本.谢谢
我在AppHarbor中使用RavenDB来使用jQuery查询索引.我得到了一个未经授权的Http 401.如果我使用我的本地连接字符串,一切正常,我想我需要设置RavenDB来接受我指向Appharbor数据库的请求.我用于查询的jquery看起来像这样(queryUrl有效):
function search(queryUrl) {
$.ajax({
url: queryUrl,
dataType: 'jsonp',
jsonp: 'jsonp',
success: function (data) {
$("#companiesHolder").empty();
$.each(data.Results, function() {
$("#companiesHolder").append("<li><hgroup class='title'><h2>" + this.Name + "</h2><h5>" + this.Email + "</h5></hgroup></li>");
});
},
error: function (error, stat, message) {
alert(stat + ":" + message);
}
});
Run Code Online (Sandbox Code Playgroud)
我在浏览器中遇到的错误是:
parsererror:未调用jQuery162024808977324209974_1337018748684
如何在AppHarbor中配置RavenDB以允许我的请求?或者我应该使用jQuery发送一些请求?(也许我应该把我的ApiKey是在documentStore集?)其他的我不这样做,我应该如何处理这个如果某些查询的,我需要的授权,但?
app-config ×1
appharbor ×1
azure ×1
binding ×1
code-first ×1
jquery ×1
powershell ×1
ravendb ×1
silverlight ×1
teamcity ×1