我配置了一个带Xcode服务的新OS X Server.它运作顺利.但重启机器后,Xcode服务停止了.在再次打开它时,它要求运行Xcode实例,然后它停留在'等待Xcode设置完成'上.还有一个新用户登录'_xcsbuildd',我无法访问.
如何在这里重新配置Xcode服务?也有任何方法可以安全地重启系统,以避免将来出现这种情况
我在数据库中插入记录时遇到错误.
System.Transactions.TransactionException: The operation is not valid for the state of the transaction. ---> System.TimeoutException: Transaction Timeout
--- End of inner exception stack trace ---
at System.Transactions.TransactionState.EnlistPromotableSinglePhase(InternalTransaction tx, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction)
at System.Transactions.Transaction.EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification)
at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx)
at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
Run Code Online (Sandbox Code Playgroud)
实际上我是通过事务范围方法在数据库中插入数据,其代码如下所述.
TransactionOptions tOptions = new TransactionOptions();
tOptions.IsolationLevel = IsolationLevel.ReadCommitted;
tOptions.Timeout = TransactionManager.MaximumTimeout;
using (var transactionScope = new TransactionScope(TransactionScopeOption.RequiresNew, tOptions))
{
}
Run Code Online (Sandbox Code Playgroud)
上述陈述中有什么不正确之处吗?
这里要提到的一点是,我在大量10个表中大量插入数据,包含大量记录,表也允许在批量插入中插入重复记录.用于实现此目的的语法如下所述.
CREATE UNIQUE INDEX …Run Code Online (Sandbox Code Playgroud) 我需要在c#中开发一个应用程序,它可以在连接到系统时自动检测iPhone并读取iPhone文件系统的特定文件.我基本上希望将此文件从设备自动下载到PC.我使用USBpcap工具表明iTunes使用某种XML格式连接到手机.任何帮助或见解非常感谢.是否有任何可以让我入门的第三方API文档?有些应用程序可以复制iTunes功能,例如Copytrans
是否有Apple提供的协议或API?
我一直在挖掘互联网,发现这个链接为iPhone分层通信.此外,我使用LibUsbDotNet库与USB设备进行通信(示例).任何人都可以建议应该使用哪个EndPoints.
在我看来,我必须在Windows应用程序中实现usbmuxd.它是一种多层协议.必须有一些库实现usbmuxd(我不认为我必须自己实现协议)
我对iTunes通信以及USB通信都不太了解.我正在尽可能多地添加信息(当然还有我在研发中提出的内容).任何帮助都非常感谢.
public static DateTime LastDataEventDate = DateTime.Now;
public static UsbDevice MyUsbDevice;
#region SET YOUR USB Vendor and Product ID!
public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(1452, 4768);
#endregion
private void LibUSB()
{
ErrorCode ec = ErrorCode.None;
try
{
// Find and open the usb device.
MyUsbDevice = UsbDevice.OpenUsbDevice(MyUsbFinder);
// If the device is open and ready
if (MyUsbDevice == null)
throw new Exception("Device Not Found.");
// If this is a "whole" …Run Code Online (Sandbox Code Playgroud)