windows-10

Get SQL Server Instances in Windows 10

别来无恙 提交于 2019-12-24 16:59:59
问题 I have some old VB.Net code that I have used for years that retrieves SQL instances. It has worked perfectly for a number of years (through SQL Server 2008, 2012, now 2014). But I installed Windows 10 a week ago and (this is the first time I've used the code since) now it's not returning any rows in the table whatsoever. And yes (I've read the other related items) SQL Browsing service is running). The code being used is directly out of MSDN (where I originally found it)... Dim instance As

Wamp is not working after Windows 10 upgrade

寵の児 提交于 2019-12-24 16:14:28
问题 WampServer worked fine on my computer running Windows 8.1. I've upgraded to Windows 10, and now Wamp is not working. The WAMP icon is red. I've looked into the Internet Information Services and found that World Wide Web Services folder was unchecked. I went to services.msc and the World Wide Web Publishing Service is missing from the list. Took off skype from port80. I've tried changing the port address in httpd.conf to 8090 and 9080. I tested port80 through WAMP - Apache interface and found

Perl - Detecting symbolic links under Windows 10

自闭症网瘾萝莉.ら 提交于 2019-12-24 15:24:36
问题 I have a problem with detecting symbolic links under Windows 10, which supports them. First I tried this: if(! -l $import_filename) { print "$0: $import_filename is not a symlink"; } That doesn't work. It gets executed when $import_filename is a symlink. Then I tried this: use File::stat; use Fcntl; my $statbuf = lstat($import_filename); if(!($statbuf->mode & S_ISLNK)) { print "$0: $import_filename is not a symlink"; } And it seems to be a different way to say the same thing. As expected, is

Windows 10 toast notification issue

江枫思渺然 提交于 2019-12-24 15:17:51
问题 I've tried using the registry changes to move the windows 10 toast notification thing, but when I went in, there was no "DisplayToastAtBottom"(Mind you, they already appear at the bottom) Very sorry if this isn't the right place to ask! :s 回答1: In this question on the Microsoft answers site, a Microsoft rep tries to smooth things over, but then later replies and basically says you can't: The Toast notification which you receive at bottom is by design in Windows 10. This cannot be changed. In

Using CreateInstance in Windows 10 Universal Apps

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 14:08:57
问题 The following code doesn't compile in a Windows 10 Universal App, but does in a .Net console app (both using Reflection): string objType = "MyObjType"; var a = Assembly.GetExecutingAssembly(); var newObj = a.CreateInstance(objType); It would appear that universal windows apps don't contain the method Assembly.GetExecutingAssembly() ; nor do the Assembly objects seem to contain CreateInstance . Activator.CreateInstance has 16 overloads in .Net and only 3 in A Win 10 app. I'm referencing the

prevent windows 10 mobile from locking

时光毁灭记忆、已成空白 提交于 2019-12-24 14:08:04
问题 I have finally upgraded my windows 8 app to windows 10 app. Unfortunately some of the features are not working in windows 10. One of the features I am looking is preventing automatic lock screen while my application is running. In windows phone 8 I am using below code to prevent auto locking of windows phone, however, in windows 10, I didn't find this feature. PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; What is the alternate of the above in windows 10?

UWP c# Binding to ItemsPanel / Custom Panel (Template)

好久不见. 提交于 2019-12-24 13:35:39
问题 I finally managed to create a GridView with my own Panel. The Layout is fine. Now I want to be able to Bind Values of my ViewModel to my own Panel. Can you help me doing this. For the moment I'm changing the values in the code behind of the page, which I don't like... For the moment I'm trying to do the x:Bind and I get an error: "Object reference not set to an instance of an object." I don't know if "normal" Binding will help. I did try it but with no success. Custom Panel public class

What is Administered port exclusions in windows 10?

耗尽温柔 提交于 2019-12-24 12:34:52
问题 I have hyper-v enabled in windows 10. When I check the excluded ports, I get: C:\> netsh interface ipv4 show excludedportrange protocol=tcp Protocol tcp Port Exclusion Ranges Start Port End Port ---------- -------- 5357 5357 9800 9800 9801 9801 49671 49770 49871 49970 50000 50059 * 61117 61216 61220 61319 61902 62001 * - Administered port exclusions. Why Hyper-V reserves these ports? How Administered port exclusions ( ie, range 50000-50059 ) differ from other port exclusions? For example,

IIS 10.0 AppPool crashing (causing 503 error)

梦想与她 提交于 2019-12-24 12:17:03
问题 Situation After the latest Windows 10 updates (Nov 2017) were installed, the Application Pool required by a local web application keeps stopping/crashing displaying the message below in Event Viewer: The worker process for application pool 'SrvAppPoolv4.0' encountered an error 'Cannot read configuration file ' trying to read configuration data from file '\\?\<EMPTY>', line number '0'. The data field contains the error code. Setup Windows 10 Internet Information Services (Version 10.0.16299.15

Control Panel Settings from Command Line

不羁的心 提交于 2019-12-24 11:47:34
问题 I'm looking for a way to make a Registry Change take affect right away. Specifically the value I want to touch is: HKEY_CURRENT_USER/Control\ Panel/Desktop/WindowArrangementActive When you change this setting directly from the Control Panel it takes effect immediately, but when I'm changing it manually, it is not registered before rebooting. I'm trying to make a script to disable/enable window snapping in Windows 10. I've currently tried running the following command after the change with no