我已经安装了sitecore,在iis(6.1)中创建了网站,然后正确映射到物理文件夹.当我添加一个测试文件(default.aspx)并浏览时,文件加载.但是当我尝试打开内容编辑器(例如:http:// localhost:XXXX/sitecore)时,我看到错误 System.InvalidOperationException:无法读取Sitecore配置
我猜这个,缺少一个小配置,这让我走了很久.
谁可以帮我这个事?
提前致谢
这是我的第一个Wix包,所以我可能不知道明显的东西,但我有以下要求:
如果我有一个Wix捆绑包,里面有一个bootstrapper应用程序和两个.msi包(让我们称之为A和B).我知道如果我把它们放在一个Chain元素中,它们将按顺序安装,在我的情况下我想先安装A,然后是B.然而在卸载时,我希望首先卸载B,而不是A.那可能吗?
谢谢.
我需要从单个统一UI安装多个MSI.我还需要一个"功能"树让用户选择要安装的产品.
看过类似的问题后,看起来Burn就是最佳选择.
看看这个,似乎我必须编写一个自定义BA并实现我自己的功能树.它是否正确?
看起来我最终会看到一个自定义UI,它看起来不像MSI的标准UI.当恕我直言,关于MSI的伟大之处在于它们总是向用户呈现相同的UI并且多年来一直这样做,这似乎很可惜.
如果这是要走的路,是否有一个简单的例子可以开始?
wix3.6真的不支持功能树吗?...似乎是一个非常基本和有用的功能有恕我直言...
是否可以通过编程方式设置TeamSettings?
var teamConfig = _tfs.GetService<TeamSettingsConfigurationService>();
var css = _tfs.GetService<ICommonStructureService4>();
var configs = teamConfig.GetTeamConfigurationsForUser(new[] { _selectedTeamProject.Uri });
var team = configs.Where(c => c.TeamName == "Demo").FirstOrDefault() as TeamConfiguration;
Run Code Online (Sandbox Code Playgroud)
上面的代码为我提供了团队演示的团队配置.查看TeamSettings,它包含属性BacklogIterationPath,CurrentIterationPath,IterationPaths.如何以编程方式设置这些?

我在设置TARGETDIR路径时遇到问题.我曾经dark.exe对一个正在运行的MSI文件进行逆向工程并阅读我在这个主题上可以找到的任何帖子,但我似乎无法将TARGETDIR设置为指向路径ProgramFiles\Manufacturer\Product.下面是我的WXS文件的提取,导致我的应用程序由于某种原因安装到我的D驱动器的根目录:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Name="FBL - Some App"
Language="1033"
Version="1.0.0.0"
Manufacturer="Foo & Bar Limited"
UpgradeCode="780286c6-e064-4402-80d8-dd2c68b56c04">
<Package InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine"
Comments="Performs some operation that is important" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Media Id="1" Cabinet="App.1.0.0.cab" EmbedCab="yes" />
<CustomAction Id="setTARGETDIR"
Property="TARGETDIR"
Value="[ProgramFilesFolder][Manufacturer]\[ProductName]"
Execute="firstSequence"
Return="check" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id="C__App.exe"
Guid="{074586E9-A675-2734-A4CD-1CE520922A41}">
<File Id="F__App.exe"
Name="App.exe"
KeyPath="yes"
Assembly=".net"
AssemblyManifest="F__App.exe"
AssemblyApplication="F__App.exe"
DiskId="1"
Source="D:\SomePath\bin\Debug\App.exe" />
</Component>
</Directory>
<Feature Id="DefaultFeature" ConfigurableDirectory="TARGETDIR" Level="1">
<ComponentRef Id="C__App.exe" …Run Code Online (Sandbox Code Playgroud) 在我的一个对话框中,我有以下控件:
<Control Id="EnvironmentComboBox" Type="ComboBox" Sorted="yes" ComboList="yes" Property="ENVIRONMENT" X="25" Y="110" Width="200" Height="15" />
Run Code Online (Sandbox Code Playgroud)
我在其他地方填写ComboBox如下:
<UI>
<ComboBox Property="ENVIRONMENT">
<ListItem Text="Development" Value="Development" />
<ListItem Text="SIT" Value="SIT" />
<ListItem Text="UAT" Value="UAT" />
<ListItem Text="Production" Value="Production" />
</ComboBox>
</UI>
Run Code Online (Sandbox Code Playgroud)
但是,如果我没有创建ComboBox位,MSI仍将构建,并且在安装期间它将失败(2205).因此,我想强制要求拥有一个名为ENVIRONMENT的属性.我试过在我的对话框中添加如下所示的PropertyRef:
<PropertyRef Id="ENVIRONMENT" />
Run Code Online (Sandbox Code Playgroud)
但是,这似乎没有好转<ComboBox Proeprty="ENVIRONMENT">.它将获取一个常规属性(<Property Id="ENVIRONMENT" Value="test" />),但这并没有多大帮助.
有没有办法要求ComboBox定义?
编辑: 为了澄清,我打算将ComboBox定义与Control定义分开,以便可以重用该对话框.
我对msi文件中的自定义操作进行了更改,以在服务停止或停止挂起时不尝试停止Windows服务。但是,在使用msiexec / fv mymsi.msi重新缓存了msi之后,在将主要升级运行到下一个版本(也具有已纠正的服务停止自定义操作)时,详细的日志记录表明仍在使用旧的自定义操作代码即使已更新缓存的msi,也可以运行。我什至对缓存的msi与重新缓存中使用的msi进行了二进制比较。
我在这里做错了。
我们在Sitecore 8.1 Update 1 MVC中使用GlassMapper 4.0.5.54.问题是,渲染ImageField时,高度和宽度属性都写在img-tag中 - 但仅限于页面编辑器模式.
我们尝试了不同的方法
@Html.Glass().RenderImage(Model, x=> x.ImageField, outputHeightWidth:false, isEditable:true, parameters:new {mw = 1218, mh = 530})
@Html.Glass().Editable(x => x.ImageField, new { mw = 1218, mh = 530, width = (string)null, height = (string)null })
Run Code Online (Sandbox Code Playgroud)
但我们总能得到
<img src="http://url_to_local_website/-/media/image_1218x530.jpg?h=530&la=en&mh=530&mw=1218&w=1216&hash=452505F9D5896956CB6B0F284755555217E62D8A" alt="Alt Text" width="1216" height="530" sc-part-of="field" class="scEnabledChrome">
Run Code Online (Sandbox Code Playgroud)
因此,即使使用显式参数,outputHeightWidth:false它也会在页面编辑器中输出宽度和高度属性并扭曲图像.有什么建议?或者这是一个错误?
在对Glass Mapper ImageParameters的评论中,其他人提到了相同的行为.但是没有答案.
我遵循以下代码是product.wxs files.But我面临如下错误:
错误5"Product:{}"部分中对符号'WixComponentGroup:MyWebWebComponents'的未解析引用
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<Product Id="702881b5-9a64-4ab8-ab47-f3babcd950a2"
Name="WixApplication" Language="1033"
Version="1.0.0.0"
Manufacturer="HexWireless"
UpgradeCode="42b7872b-78c8-4a0b-abcd-28a30c9804ab">
<Package InstallerVersion="200" Compressed="yes" Platform="x64" InstallScope="perMachine"/>
<!--<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />-->
<!--Find the Path to the sqlcmd.exe by performing a registry search. This is hardcoded for SQL 2012.
Change 110 to 100 for 2008. Might need to change the script too.-->
<Property Id="SQLBINDIR">
<RegistrySearch Id="SqlBinDir"
Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\110\Tools\ClientSetup"
Name="Path"
Type="raw"
Win64="yes"/>
</Property>
<Condition Message="Microsoft SQL Server 2012 needs to be installed before this …Run Code Online (Sandbox Code Playgroud) 将我的站点从7.1升级到8.1后,在expierence分析中删除任何页面时出现以下错误消息:
"由于服务器错误,无法显示'图表名称'图表.请与系统管理员联系."
以下调用在浏览器控制台上显示500错误:
我检查了日志文件,那里没有记录服务器错误!
更多信息:
错误消息:"ValueFactory尝试访问此实例的Value属性."
也
" at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetControllerMapping() at System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver constraintResolver, IDirectRouteProvider directRouteProvider) at System.Web.Http.Routing.AttributeRoutingMapper.<>c__DisplayClass2.<>c__DisplayClass4.<MapAttributeRoutes>b__1() at System.Web.Http.Routing.RouteCollectionRoute.EnsureInitialized(Func`1 initializer) at System.Web.Http.Routing.AttributeRoutingMapper.<>c__DisplayClass2.<MapAttributeRoutes>b__0(HttpConfiguration config) at System.Web.Http.HttpConfiguration.ApplyControllerSettings(HttpControllerSettings settings, HttpConfiguration configuration) at System.Web.Http.Controllers.HttpControllerDescriptor.InvokeAttributesOnControllerType(HttpControllerDescriptor controllerDescriptor, Type type) at System.Web.Http.Controllers.HttpControllerDescriptor..ctor(HttpConfiguration configuration, String controllerName, Type controllerType) at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.InitializeControllerInfoCache() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetControllerMapping() at System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver …Run Code Online (Sandbox Code Playgroud)