windows-server-2012

Windows Service Start Failure for self hosted SignalR

十年热恋 提交于 2019-12-12 01:47:16
问题 Really trying to figure out how to install a SignalR Self Host windows service. It's my first attempt with a windows service and it's driving me bonkers. After many failed attempts, I really could do with some help. I'm using cmd in a windows server 2012 environment. The error in a traditional win popup: Cannot start service from the command line or debugger. A windows Service must first be installed(using installutil.exe) and then started with the ServerExplorer, Windows Services

WordPress Custom Structure permalinks breaks after migrating site to new domain and server

一世执手 提交于 2019-12-11 22:45:21
问题 I had my WP on a site mysite1.com and am migrating it to mysite2.com , hosted on a different server. I simple ran a find-and-replace in the database, mysite1.com -> mysite2.com , and the homepage mysite2.com now works fine but all the subpages ( mysite2.com/subpage1 , mysite2.com/subpage2 , mysite2.com/subpage1/thing?id=1 , etc.) do not work. I'm using the Custom Structure http://mysite2.com/%postname%/ , which worked just fine on mysite1.com . All the other Permalink structures work on

Should I create my folder for file uploads under wwwroot inside visual studio?

我是研究僧i 提交于 2019-12-11 15:19:35
问题 If I were to follow this example file uploads would be stored in the wwwroot file. It is my understanding this file is where you should store static files that will be served to the user. Sure, I want my users to be able to download but is there a filesystem, specific to asp.net core/IIS/Windows Server 2012, that would be best? I'm expecting around 10,000 files max after several years. I'm planning on creating a folder for the uploaded documents, I'm just unsure of where to place it. Note:

DSC Configuration Keeps Restarting

眉间皱痕 提交于 2019-12-11 11:27:02
问题 I have my LocalConfigurationManager set up as follows: [DSCLocalConfigurationManager()] Configuration LCMConfig { Node localhost { Settings { RebootNodeIfNeeded = $true ActionAfterReboot = 'ContinueConfiguration' AllowModuleOverwrite = $true DebugMode = 'All' } } } LCMConfig Set-DscLocalConfigurationManager -Path .\LCMConfig -Verbose -Force Then I kick off a DSC Configuration via Start-DscConfiguration -Path .\RDS -Verbose -Wait This configuration sets up an RemoteApp server which involves a

Configure windows Authentication in IIS 8.5 on Windows Server 2012

北城以北 提交于 2019-12-11 11:05:42
问题 I searched enough but couldn't find a solution. I have a ASP.NET Intranet app at Windows Server 2008 IIS 7.5 with windows authentication - this all work great. I have been trying to migrate it to Windows Server 2012. I have already installed Windows Authentication role for the server and already enabled the windows authentication for the web site. The application seems to be working fine for my account but if anybody else try to connect they get windows login popup. 回答1: I was having similar

Configure SQL server to store session state

末鹿安然 提交于 2019-12-11 09:05:57
问题 I am trying to set up session state in SQL server. Command: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regsql.exe -ssadd –sstype c -d SomeName -S SERVERNAME -U someUser -P somePass It throws: The argument '-sstype' is invalid. Any tips? 回答1: Stupid. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regsql.exe -ssadd -d SomeName -S SERVERNAME -U someUser -P somePass –sstype c The arguments order... 回答2: You need to enable Agent XPs to run Aspnet_regsql.exe tool From Installing

Kerberos Client not found in kerberos database

不羁岁月 提交于 2019-12-11 06:18:43
问题 I've been running the following commands on W12 Server :- setspn -A HTTP/ krbspn ktpass /princ HTTP/@ /crypto ALL /ptype krb5_nt_principal /mapuser krbspn c:\ticket\krbspn.keytab -kvno 0 /pass Pa$$w0rd and kinit krbspn gives the correct result, however kinit HTTP/ returns :- KrbException: Client not found in Kerberos database (6) at sun.security.krb5.KrbAsRep.(KrbAsRep.java:76) at sun.security.krb5.KrbAsReqBuilder.send(KrbAsReqBuilder.java:319) at sun.security.krb5.KrbAsReqBuilder.action

NumberGroupSizes for “en-IN” culture in windows server 2012 is wrong

岁酱吖の 提交于 2019-12-11 05:52:51
问题 NumberGroupSizes for "en-IN" culture is set as 3,2,0 which is wrong and ideally be set as 3,2 in windows server 2012. // Gets a NumberFormatInfo associated with the en-IN culture. NumberFormatInfo nfi = new CultureInfo("en-IN", false).NumberFormat; // Displays a value with the default separator ("."). Int64 myInt = 123456789012345; Console.WriteLine(myInt.ToString("N", nfi)); The above code ran on windows server 2012 gives out put as 1234567890,12,345.00 which is wrong. Ideally it should be

How to “Deploy” asp.net MVC 4 to Microsoft Server 2012 IIS7 [closed]

我是研究僧i 提交于 2019-12-11 05:48:18
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I have asp.net MVC 4 application and i want to "send" it to Microsoft Server 2012 IIS7, so the site can be reached from internet. How to do that? 回答1: Right click on the Web project in Visual Studio and then choose the Publish ... option from the context menu. Then follow the

Running a Powershell script, restarting and then continue to run

有些话、适合烂在心里 提交于 2019-12-11 03:18:32
问题 I'm just starting out with the very basics of Powershell scripting and am looking at creating a script to one set of instructions then restart and continue running the rest of the script. The first part of the script makes changes to the registry, firewall and ip/dns settings, then renames the server(win2012). Then a restart is needed to continue with the installation of ad domain services and forest creation. I've had a look around but don't really understand the concepts. Can anyone