小编Sjb*_*ack的帖子

iPhone应用程序崩溃(仅限iOS4)

我的iPhone应用程序在安装后第一次运行时偶尔会崩溃.在此之后我每次尝试运行应用程序时,它都会保留在启动画面或黑屏上,直到它最终消失.我必须重新启动设备才能使应用程序正常工作.在此之后它每次都能正常工作.OS3代码和4之间的唯一变化是属性'UIApplicationExitsOnSuspend',以强制应用程序每次重新加载而不是暂停.任何帮助都会很棒.

以下是两个代码段:

- (void)applicationDidFinishLaunching:(UIApplication *)application 
{  
    taskListViewController = [[TaskListViewController alloc] initWithNibName:@"TaskListView" bundle:nil];
    taskListViewController.managedObjectContext = self.managedObjectContext;

    [taskListViewController setAppDefaults];

    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:taskListViewController];
    [taskListViewController release];

    navController.navigationBar.tintColor = [UIColor blackColor];

    [window addSubview:[navController view]];
    [window makeKeyAndVisible];
Run Code Online (Sandbox Code Playgroud)

}

- (void)viewDidLoad 
{
    NSLog(@"viewDidLoad - Start");
    [super viewDidLoad]; 

    NSError *error = nil;
    if(![[self fetchedResultsController] performFetch:&error])
    {
     NSLog(@"Error with initial fetch %@, %@", error, [error userInfo]);
    }

    [activityIndicator startAnimating];

    self.navigationItem.leftBarButtonItem.enabled = NO;
    self.navigationItem.rightBarButtonItem.enabled = NO;
    infoButton.enabled = NO;
    syncButton.enabled = NO;

    taskListTable.userInteractionEnabled = NO;
    taskListTable.allowsSelection = …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ipad ios4

7
推荐指数
1
解决办法
924
查看次数

SecurityNegotiationException:对SSPI的调用失败

我有一个WCF Web服务使用NetTcpBinding带有传输安全性和clientCredientialType设置为none.我没有使用此绑定在端点上指定身份.每次尝试在服务上调用方法都会导致以下错误:

客户端:

System.ServiceModel.Security.SecurityNegotiationException:对SSPI的调用失败,请参阅内部异常.

服务方面:

System.ServiceModel.Security.SecurityNegotiationException:远程端的身份验证失败(该流可能仍可用于其他身份验证尝试).

System.ComponentModel.Win32Exception:目标主体名称不正确

对此有任何帮助表示赞赏

谢谢

SJ

wcf sspi nettcpbinding transport-security

7
推荐指数
0
解决办法
1692
查看次数

具有NetTcp绑定的WCF和通配符证书

我有一个自托管的WCF服务,使用NetTcp绑定和TransportWithMessageCredential安全性,并使用通配符证书(*.company.com)作为服务证书.

服务器的客户端地址是(ServerName.company.com)进行服务调用时出现以下错误:

传出消息的身份检查失败.远程端点的预期DNS标识是"ServerName.company.com",但远程端点提供DNS声明"*.company.com".如果这是一个合法的远程端点,您可以通过在创建通道代理时明确指定DNS标识'*.company.com'作为EndpointAddress的Identity属性来解决问题.

这有可能吗?任何帮助表示赞赏.

c# dns wcf certificate net.tcp

7
推荐指数
0
解决办法
350
查看次数

Team foundation Server 2012数据库大小

我有一个400GB的TFS数据库(tfs_DefaultCollection).我已经运行了附件清理工具,它告诉我它删除了200GB的数据.在此之后并查询最大的表,行计数是相同的,并且大小没有改变.mdf文件大小保持不变,前四个表也是如此.(tbl_FunctionCoverage,tbl_TestResult,tbl_BuildInformation和tbl_Content).我假设我需要运行某种形式的整洁脚本吗?我已经执行了prc_DeleteUnusedContent和prc_DeleteUnUsedFiles,但我相信它们更适用于版本控制和工作区,因为它们没有做任何更改.

我将缩小数据库并重新索引表,但由于表行数和大小没有改变,我看不出它有多大区别.

任何建议表示赞赏.

database sql-server tfs tfs2012

7
推荐指数
1
解决办法
445
查看次数

Treeview虚拟化和不稳定的滚动

我有一个WPF树视图,其中包含大量嵌套数据,我已启用虚拟化,这对于正在加载的数据而言是有效的.但滚动已变得不稳定,直到整个视图滚动一次然后它解决了一些(仍然不是很好).我已经覆盖了ScrollViewer,我可以看到VirtualizingStackPanel中的范围高度在滚动时发生了不正常的变化.

有谁知道解决这个问题的方法?

任何帮助都是相关的.

下面的TreeView Xaml的相关部分:

        <TreeView  ItemsSource="{Binding Folders.ObservableTree}" Name="FoldersTreeView"
                AutomationProperties.AutomationId="foldersview_treeview_folders" TabIndex="0" PreviewMouseRightButtonDown="OnPreviewMouseRightButtonDown"
                VirtualizingStackPanel.CleanUpVirtualizedItem="VirtualizingStackPanel_OnCleanUpVirtualizedItem" 
                ScrollViewer.VerticalScrollBarVisibility="Auto"
                ScrollViewer.IsDeferredScrollingEnabled ="True"
                VirtualizingStackPanel.IsVirtualizing="True"
                ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                VirtualizingStackPanel.ScrollUnit="Pixel"
                VirtualizingStackPanel.VirtualizationMode="Standard"
                VirtualizingPanel.IsVirtualizingWhenGrouping="True" 
                VirtualizingStackPanel.CacheLengthUnit="Item">

        <TreeView.ItemsPanel>
                <ItemsPanelTemplate>
                <VirtualizingStackPanel IsItemsHost="True" CanVerticallyScroll="True"/>
            </ItemsPanelTemplate>
            </TreeView.ItemsPanel>
        <TreeView.Template>
            <ControlTemplate>
                <view:ScrollViewer2 Padding="{TemplateBinding Control.Padding}" Focusable="False" Name="TreeViewScrollViewer"  
                              CanContentScroll="True">
                    <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
                </view:ScrollViewer2>
            </ControlTemplate>
        </TreeView.Template>
Run Code Online (Sandbox Code Playgroud)

wpf treeview scrollbar

7
推荐指数
1
解决办法
248
查看次数

iPhone - 应用程序在后台运行时更改应用程序设置

我遇到的问题是,如果我在应用程序在后台运行时对应用程序设置进行了更改,则在重新启动之前,我的应用程序中的更改不可用.我错过了什么或是这样的吗?

非常感谢.SJ

iphone nsuserdefaults multitasking ios

6
推荐指数
1
解决办法
1222
查看次数

wsHttpbinding与TransportWithMessageCredential和Windows身份验证

我有一个IIS托管的WCF服务,其中包含以下绑定配置(我从空间绑定中删除了所有属性),用于wsHttpBinding和TransportWithMessageCredential

   <wsHttpBinding>
    <binding name="BindingName" .../>
      <security mode="TransportWithMessageCredential">
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </wsHttpBinding>   
Run Code Online (Sandbox Code Playgroud)

服务行为:

  <serviceBehaviors>
    <behavior name="ServiceBehavior">
      <serviceCredentials>
       <userNameAuthentication userNamePasswordValidationMode="Windows" />
      </serviceCredentials>
    </behavior>
  </serviceBehaviors>
Run Code Online (Sandbox Code Playgroud)

禁用匿名身份验证并启用Windows身份验证.

在客户端,使用有效的Windows用户和密码设置凭据,但在每次调用服务时我都会收到以下异常:

HTTP请求未经授权,客户端身份验证方案为"匿名".从服务器收到的身份验证标头是"Negotiate,NTLM".---> System.ServiceModel.Security.MessageSecurityException:HTTP请求未经授权,客户端身份验证方案为"Anonymous".从服务器收到的身份验证标头是"Negotiate,NTLM".---> System.Net.WebException:远程服务器返回错误:(401)未经授权.

使用自托管版本的WCF服务,它可以在有效的Windows帐户下正常运行.

任何帮助表示赞赏.

windows-authentication wshttpbinding transport-security

6
推荐指数
1
解决办法
2314
查看次数

错误 0x800B0100:必须对应用程序包进行数字签名才能进行签名验证

我正在尝试通过使用 WinAppDeployCmd.exe 安装应用程序来测试应用程序,但我收到以下错误:

正在安装应用程序...远程操作失败。0x800B0100 错误 0x800B0100:应用程序包必须经过数字签名才能进行签名验证。

我已经通过为应用程序商店选项创建通过 Visual Studio 打包。

sideloading windows-phone-8.1

5
推荐指数
0
解决办法
816
查看次数

带有v120_xp工具集的Visual Studio 2013项目出现MIDL 2072错误

我最近搬到了visual studio 2013并升级了所有的c ++项目,使用了8.1的windows SDK和v120_xp工具集.绝大多数项目都在编译和工作正常但我有两个项目拒绝构建,有几个类似于以下错误的错误:

error MIDL2072: inapplicable attribute : [annotation] [ Field 'pDescription' of Struct 'D3D10_MESSAGE' ( Type 'D3D10_MESSAGE' ) ]
Run Code Online (Sandbox Code Playgroud)

所有错误都是指d3d10sdklayers.idl文件.当项目idl文件作为项目的一部分编译时,如果我单独编译文件就会发生这种情况.

任何帮助或建议表示赞赏,谢谢.

c++ mfc midl vcproj visual-studio-2013

1
推荐指数
1
解决办法
818
查看次数