我用Windows server 2008 R2创建了一个windows azure VM.服务器的状态正在运行.港口是开放的.但我不能RDP它.它给了我一个错误
由于以下原因之一,远程桌面无法连接到远程计算机:
- 未启用对服务器的远程访问
- 远程计算机已关闭
- 远程计算机在网络上不可用
确保远程计算机已打开并连接到网络,并且已启用远程访问.
有帮助吗?我实际创造了两次,但没有运气
编辑
我能够从家里连接.但不是来自工作网络.所以绝对是一个工作网络限制.你能否建议我下一步应该从工作中获取它
我正在研究在服务器端的TFS中实现一些签入策略的项目.作为其中的一部分,我正在尝试获取变更集的历史记录.但是当签入时,我将变更集编号设置为-1.我不知道为什么会这样.我怀疑是否仅在执行ProcessEvent方法后分配变更集编号.感谢您的帮助.
public EventNotificationStatus ProcessEvent(TeamFoundationRequestContext requestContext, NotificationType notificationType,
object notificationEventArgs, out int statusCode, out string statusMessage, out ExceptionPropertyCollection properties)
{
statusCode = 0;
properties = null;
statusMessage = string.Empty;
if (notificationType == NotificationType.DecisionPoint)
{
try
{
if (notificationEventArgs is CheckinNotification)
{
CheckinNotification notification = notificationEventArgs as CheckinNotification;
int changeId = notification.Changeset;; // here I get the Changeset as -1
}
}
}
}
Run Code Online (Sandbox Code Playgroud)