我正在尝试将我已经解决的问题转移到Visual Studio 2012,其中一个项目类型是.vdproj.
根据此链接,Visual Studio 2012不支持此项目类型:MSDN表示他们建议您使用InstallShield Limited Edition for Visual Studio.
问题是,当我在VS2012中打开我的解决方案并尝试在我的解决方案中添加一个新的"启用InstallShield Limited Edition"项目时,我收到一条错误消息:
创建项目'test'...项目创建失败.


为什么我可能无法在我的解决方案中添加此类型的项目?
如果我创建一个新的空解决方案,我无法在其中创建InstallShield项目.
我将尝试下载InstallShield限量版,看看它是否有任何作用.
我尝试了InstallShield下载,并添加了两个额外的项目类型,但我无法创建其中任何一个.我能够将正常的网站项目添加到我的解决方案中,但不是部署项目.
安装程序命名相同,但这个促使我重新启动.重新启动后,我能够添加一个InstallShield项目,但它是在自己的解决方案中创建的.所以,现在看起来我必须弄清楚如何使用它,我会很高兴.
看起来限量版没有安装Windows服务的支持.
windows-installer vdproj visual-studio-2012 installshield-le iswix
我有一个在localhost下运行良好的应用程序.
我今天尝试将它作为子应用程序放在IIS服务器上.所以新路径将是localhost/SubDir.
System.js到处试图加载模块.我设置了basePath并使用路径/地图配置变量播放了几个小时,但无法登陆魔术设置.
有没有人有我想要调整的想法,或任何有助于调试的东西?
索引HTML
<html>
<head>
<script src="~/node_modules/es6-shim/es6-shim.js"></script>
<script src="~/node_modules/systemjs/dist/system.src.js"></script>
<script src="~/node_modules/angular2/bundles/angular2.dev.js"></script>
<script src="~/node_modules/angular2/bundles/http.dev.js"></script>
<script src="~/node_modules/angular2/bundles/router.dev.js"></script>
<link href="~/node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="~/assets/css/site.css" rel="stylesheet" />
<script>
System.config({
packages: { 'app': { defaultExtension: 'js' } },
baseURL: '/MedicheckAngular/',
paths: {
//'angular2/*': 'node_modules/angular2/ts/*.js' …Run Code Online (Sandbox Code Playgroud)我使用以下查询创建了弹性索引:
PUT public_site
{
"mappings": {
"page": {
"properties": {
"url": {
"type": "string"
},
"title":{
"type": "string"
},
"body":{
"type": "string"
},
"meta_description":{
"type": "string"
},
"keywords":{
"type": "string"
},
"category":{
"type": "string"
},
"last_updated_date":{
"type": "date"
},
"source_id":{
"type":"string"
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
我想使用.net NEST库将文档插入到此索引中.我的问题是.net更新方法的签名对我没有任何意义.
client.Update<TDocument>(IUpdateRequest<TDocument,TPartialDocument>)
Run Code Online (Sandbox Code Playgroud)
Java库对我来说更有意义:
UpdateRequest updateRequest = new UpdateRequest();
updateRequest.index("index");
updateRequest.type("type");
updateRequest.id("1");
updateRequest.doc(jsonBuilder()
.startObject()
.field("gender", "male")
.endObject());
client.update(updateRequest).get();
Run Code Online (Sandbox Code Playgroud)
在NEST哪里TDocument和TPartialDocument班级来自哪里?这些C#类是否代表我的索引?
我正在尝试设置美国各州的地图,我已经放弃了jVectorMap但无论我做什么都无法改变颜色.
我试图在jsfiddle中实现我的问题,但它不想在那里做任何事情.在我的计算机上生成一张地图,但颜色不会改变.
我正在使用的插件:http://jvectormap.com/
任何人都有任何想法,为什么我不能改变州的颜色?
或者,如果有一个更容易使用的地图我也会采取这个建议.我基本上只想在我的页面上使用颜色和悬停效果的可点击地图.
编辑现在尝试不同的地图库,完成后会发布结果
我有一个 Telerik RadHtmlChart,它为图形生成一些 svg。
该图目前如下所示:

每个圆圈都有一个与之关联的标签。不幸的是,它们往往会聚在一起并相互重叠。
我想用 javascript 向上/向下移动文本元素,这样它们就不会全部重叠,但我不确定最好的方法。
我写了一些代码来循环遍历<text>svg 元素,但卡在重叠检测/移动部分。
var svg = document.getElementsByTagName("svg")[0];
var svgLabels = svg.getElementsByTagName("text");
for (i = 0; i < svgLabels.length; i++) {
//Check for overlap, move if necessary
}
Run Code Online (Sandbox Code Playgroud)
有什么办法可以很好地做到这一点吗?
我有两个来自 Nest 2.3 的代码片段,我无法在最新的 5.0.0-rc3 中进行合作。
var titleField = Infer.Field<Page>(p => p.Title, 2);
var metaDescriptionField = Infer.Field<Page>(p => p.MetaDescription, 1.5);
var metaKeywordsField = Infer.Field<Page>(p => p.Keywords, 2);
var bodyField = Infer.Field<Page>(p => p.Body);
MultiMatchQuery multiMatchQuery = new MultiMatchQuery()
{
Fields = new [] {
bodyField,
metaKeywordsField,
metaKeywordsField,
titleField
},
Query = search.Term
};
Run Code Online (Sandbox Code Playgroud)
这里的构建错误是“无法将 Nest.Field[] 隐式转换为 Nest.Fields”。我可以做类似的事情
MultiMatchQuery multiMatchQuery = new MultiMatchQuery()
{
Fields = Infer.Fields<Page>(p => p.Title, p => p.MetaDescription, p => p.Keywords, p => p.Body),
Query = search.Term …Run Code Online (Sandbox Code Playgroud) 尝试从我试图实现的jquery文件上传器向.ashx处理程序发出DELETE请求时,我收到HTTP错误405.0 - 方法不允许错误.
引用这个问题(http://stackoverflow.com/questions/6695587/enabling-put-on-iis-7-5-for-an-ashx-handler-using-windows-authentication)我已将以下部分添加到我的web.config文件,但似乎无法让错误消失.有没有其他技巧我找不到让DELETE工作?
我正在使用.Net 4.0和IIS7.5,同时运行windows azure存储模拟器.
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers accessPolicy="Read, Write, Execute, Script">
<remove name="WebDAV" />
<remove name="SimpleHandlerFactory-Integrated-4.0" />
<remove name="SimpleHandlerFactory-Integrated" />
<add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode" />
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="*" verbs="GET,HEAD,POST,PUT,DELETE,DEBUG" />
</authorization>
</security>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)
这是调用处理程序的前端代码:
<td class="delete">
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" data-url="/webservices/FileTransferHandler.ashx?f=df69bfd1-2a15-43e3-9310-3ca163e2aeb2" data-type="DELETE" role="button" aria-disabled="false" title="Delete">
<span class="ui-button-icon-primary ui-icon ui-icon-trash"></span>
<span …Run Code Online (Sandbox Code Playgroud) 我有一个Kendo NumericTextBox,我想在其中将文本与一些填充对齐.
这是telerik的演示页面:http://demos.kendoui.com/web/numerictextbox/index.html
我已经应用了以下样式,它将文本对齐:
/*Right align numeric text*/
.k-numerictextbox .k-input {
text-align: right;
}
Run Code Online (Sandbox Code Playgroud)
我的问题是,每当我添加填充时,向上/向下箭头都会被压扁而不是我的文本移位.
我已经尝试将box-sizing设置为border-box,但是不能完全正确.
有css技能的人想看看吗?
我试图在multiMatch搜索中增加一些字段而不是其他字段.
看看我看到的文档可以Field通过这样做来创建一个提升
var titleField = Infer.Field<Page>(p => p.Title, 2);
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚这是如何转化的Fields.
这样的事情是不对的
var bodyField = Infer.Field<Page>(p => p.Body);
var titleField = Infer.Field<Page>(p => p.Title, 2);
var metaDescriptionField = Infer.Field<Page>(p => p.MetaDescription, 1.5);
var metaKeywordsField = Infer.Field<Page>(p => p.Keywords, 2);
MultiMatchQuery multiMatchQuery = new MultiMatchQuery()
{
Fields = Infer.Fields<Page>(bodyField, titleField, metaDescriptionField, metaKeywordsField),
Query = search.Term
};
Run Code Online (Sandbox Code Playgroud)
我是否需要为字段使用字符串名称
var titleFieldString = "Title^2";
Run Code Online (Sandbox Code Playgroud)
把它们传递进去 Infer.Fields
我有一些代码表现得像我的变量通过引用传递,当我不认为它们应该是.
在我有的类库中
public class ListingHelper
{
public static List<FilterCategory> getListingFilterCertifications(ListingCategory parentListingCategory, ListingFilters filters)
{
...//Building up return object
filters.gradingServiceId = 2;
}
}
Run Code Online (Sandbox Code Playgroud)
在页面的pageLoad中我称之为:
private void BindForm()
{
ListingFilters filters = new ListingFilters();
filters.gradingServiceId = 0;
if (filters.gradingServiceId > 0)
{
listCertification.DataSource = ListingHelper.getListingFilterCertificationById(filters.gradingServiceId);
listCertification.DataBind();
}
}
Run Code Online (Sandbox Code Playgroud)
filters.gradingServiceId当我从库中调用我的方法回来时,我认为应该是0,但它又回来了2.静态方法的方法参数是否真的通过引用传递?
清单过滤器:
public class ListingFilters
{
public String state { get; set; }
public int categoryId { get; set; }
public int gradingServiceId { get; set; }
public int gradeId { get; …Run Code Online (Sandbox Code Playgroud) 我对数据库设计有一些疑问.
我有一个用于存储关系的通用表结构.
最近我重构了一些使用这种通用结构而不是直接Fk列的东西,但现在我不确定这是否真的是最好的主意.
原始架构:
+------------------+ +---------------------+ +----------------------+ | Book | | Note | | MetaParent | |------------------| |---------------------| |----------------------| | Id | | Id | | Id | | NoteId | | MetaParentId:(Null) | | MetaTableId | | +-------+ +----+ KeyValue | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +------------------+ +---------------------+ +----------------------+
新架构
+------------------+ …
在传递两个参数时,我无法从jquery获得WCF调用.如果我稍微更改代码以通过一件事就可以了.
Javascript:
$.ajax({
type: "POST", //GET or POST or PUT or DELETE verb
url: "/Services/JobNumberService.svc/GetActiveJobNumberByCustomerOrJointBilling", // Location of the service
data: '{"customerId": "' + customerId + '", "departmentId": "' + departmentId + '"}', //Data sent to server
contentType: "application/json; charset=utf-8", // content type sent to server
dataType: "json", //Expected data format from server
processdata: true, //True or False
success: function (msg) {//On Successfull service call
fillDropDownFromLookupList(msg, jobNumberDropDownId);
prependItemToDropDown('', 'NONE', jobNumberDropDownId); //Add blank item to top of list
},
error: ServiceFailed// …Run Code Online (Sandbox Code Playgroud) asp.net ×3
nest ×3
c# ×2
jquery ×2
svg ×2
.net ×1
ajax ×1
angular ×1
css ×1
foreign-keys ×1
iis-7 ×1
iis-7.5 ×1
iswix ×1
javascript ×1
jvectormap ×1
kendo-ui ×1
radhtmlchart ×1
systemjs ×1
vdproj ×1
wcf ×1