在Expression Blend 4中,在编译时我收到错误说法
指定的解决方案配置"Debug | BNB"无效.请使用"配置和平台"属性指定有效的解决方案配置(例如,MSBuild.exe Solution.sln/p:Configuration = Debug/p:Platform ="Any CPU")或将这些属性留空以使用默认解决方案配置.
完成建筑项目"myproject.sln" - 失败.
构建失败.
我试图准确理解Windows Azure中的AppFabric,与工作者角色和Web角色有什么区别以及如何在Visual Studio 2010中创建AppFaric项目,我的意思是哪种项目?
谢谢.
我有一个与webRole调试有关的问题.
未在托管服务或Development Fabric中运行.描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.
异常详细信息:System.InvalidOperationException:未在托管服务或Development Fabric中运行.
来源错误:
在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息.
堆栈跟踪:
[InvalidOperationException: Not running in a hosted service or the Development Fabric.]
Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.GetDefaultStartupInfoForCurrentRoleInstance() +169
Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener..ctor() +57
[ConfigurationErrorsException: Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.]
System.Web.Security.Roles.Initialize() +2230194
System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs) +68
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Run Code Online (Sandbox Code Playgroud)
这是关于Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener的web.config部分.
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
我收到一个警告,试图从另一个正在运行的项目中添加一个Cloud Service Reference,并在Windows Phone 7项目中使用它进行通信.
我收到警告:
自定义工具警告:无法加载一个或多个请求的类型.检索LoaderExceptions属性以获取更多信息.
此警告来自文件 Reference.svcmap
我尝试重新加载服务参考,因为我在其他网站上找到但仍然无法工作,我再次收到警告.
谢谢
我正在尝试实现IUpdatable.
错误1'WebRole1.InfoManager'没有实现接口成员'System.Data.Services.IUpdatable.ClearChanges()'我得到的所有错误都说我没有实现所有接口成员,但我实现了一些并非全部.我没有把孔代码我希望你能理解.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Services;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.StorageClient;
namespace WebRole1
{
public class InfoManager : IUpdatable
{
private TableServiceContext context;
// To Generate DataConnectionString and svcClient
private TableServiceContext GetContext()
{
//Implemented code
}
public CommentManager()
{
context = GetContext();
}
// To get my table infos
public IQueryable<Info> Infos
{
get
{
return context.CreateQuery<Info>("Infos").AsTableServiceQuery();
}
}
// Creating the resource and cheking the compatibility of the type and do an …Run Code Online (Sandbox Code Playgroud) 我想在选中时将 DataGridColumn 内部的复选框更改为图像,在未选中时将其更改为图像,我该怎么办?Ps:我的DataGridCheckBoxColumn定义如下:
<DataGridCheckBoxColumn Header="Priority" Binding="{Binding PRIORITY, Converter={StaticResource converter}}"/>
Run Code Online (Sandbox Code Playgroud)
转换器正在将字节转换为布尔值。
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="ApplicationTitle"
Text="{StaticResource AppName}"
Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="PageTitle"
Text="Save Info"
Margin="9,-7,0,0"
Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
Run Code Online (Sandbox Code Playgroud)
资源"AppName"无法解决,任何想法?