windows-server

wampserver homepage only visible from localhost

↘锁芯ラ 提交于 2019-12-06 11:36:26
问题 Recently I used WAMP server to set up a server environment in a Windows machine. Everything works great, but I have a little problem: everyone can access the wampserver homepage, therefore they can see other webpages hosted in the same server, the server file system, etc . The URLs of the webpage have the following format: hostname/project1 , hostname/project2... The main problem is that, anyone can see all the projects that are hosted by going to the direction of the hostname because this

How to check if a exe is accessed from the server

醉酒当歌 提交于 2019-12-06 07:23:16
问题 This is a client server application. I'm creating a update program that will replace a list of exe files, run scripts, and anything else that needs to be updated. This will be installed on the server. First I need to check if the executable file is opened via a network share. I can do this manually by going into Computer Management then Shared files and Open files. This seems to be the only way to check if the file is open. I tried using R/W to check if the file is opened but this did not

Error trying to create a scheduled task within Windows 2016 Core container

帅比萌擦擦* 提交于 2019-12-06 02:28:51
问题 I am trying to build a container which would include a custom scheduled task. This is my dockerfile: FROM microsoft/windowsservercore RUN schtasks /create /tn hello /sc daily /st 00:00 /tr "echo hello" I get the following error: ERROR: The task XML contains a value which is incorrectly formatted or out of range. (43,4):Task: I get the same error also when attaching to a running default windows core container and running the command. Needless to say, the command works well on standard windows

A connection attempt failed because the connected party did not properly respond after a period of time or connected host has failed to respond

坚强是说给别人听的谎言 提交于 2019-12-05 16:46:57
I'm developing a windows service, that downloads images from a specific URL. The service runs correctly on my computer but when I install it in the server it does not download the image and it gives the following error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 212.100.220.117:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,

Is it possible to get SQL Server to log into an SFTP and upload a file just by using T-SQL commands, no SSIS?

。_饼干妹妹 提交于 2019-12-05 13:15:10
I have an SSIS package which logs into my client's SFTP site and uploads a file using commands sent to WinSCP. This package fails quite often and is difficult to work with. Visual Studio crashes so frequently that my team refuses to use it any more. We are migrating all automated tasks to Stored Procedures and SQL Agent Jobs, as they work a lot better than SSIS does. However, this leaves us with no good solution for automating FTP uploads of report files produced on SQL Server. I have been doing it using PSFTP and batch files called from VB scripts. The script checks a particular folder to see

How to run application with Admin privileges using Manifest file in Visual Studio 2005?

社会主义新天地 提交于 2019-12-05 11:46:01
问题 I need to create an application which needs to create files/folders in "C:\Program Files","Users[username]" and Sys32. Also the application needs to make some registry entry. This application needs to work on Vista and higher. Also, on Windows Server 2003 and higher. The above Operating Systems have the concept of User Account Control (UAC), where to access Program Files and writing in registry requires admin privileges. I looked into many forums and found that using Microsoft SDK we can

How can I give remote access to my visualsvn server

时间秒杀一切 提交于 2019-12-05 11:16:56
I am currently running VisualSVN Server Enterprise on a Windows Server 2008 R2 x64 machine and I had no problem installing and setting it up locally. I need to give remote access to a user in the UK and wanted to know how this is done on a Windows Server. I presume he will access it using https but I have no idea what I need to do on my end locally to grant remote access. Any help or direction would be much appreciated. Thanks. First can you please check the Visual SVN on what port and IP it's listening: To do so, go to Start > VisualSVN server manager > Right click on VisualSVN Server (local)

lower_case_table_name Error

核能气质少年 提交于 2019-12-05 05:21:58
I'm trying to set the lower_case_table_name value to 2 , since it is a Windows server. But when I start MySQL Workbench and connect to my server I get the following error: A server is in a system that does not properly support the selected lower_case_table_names option value. Shouldn't a Windows server support a value of 2 ? I'm running MySQL 5.6 on Windows Server 2012 and using MySQL Workbench 6.3. You can safely ignore this error. I recently installed MySQL on a new Windows computer and got this error as well after setting lower_case_table_names to 2 . I don't remember seeing it previously.

Cant load a site in IIS8 on 32bit pool (WinSrv 2012 and Sharepoint 2013)

最后都变了- 提交于 2019-12-04 18:02:50
We have a WCF service that interacts with TFS 2010, we are planning to migrate to TFS 2012 so we installed a server to test it, the server have the following installed: Windows Server 2012 SQL Server 2012 SharePoint 2013 TFS 2012 I created a site for my service and tried to running, i was greeted with the following message: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader' or one of its dependencies. An attempt was made to load a program with an incorrect format. So I changed the pool to 32bit, but then I was greeted with this: The Module DLL 'C

Prevent direct access to files on IIS server

﹥>﹥吖頭↗ 提交于 2019-12-04 12:27:20
I have two servers, one for my mvc application and the other one as a storage for large files like images etc, both running on Windows Server 2012 R2. How can I prevent direct access to the files on storage server? say, mvc is on IP1/ and storage is on IP2/ . Link to a file would be like: IP2/MediaFiles/2015/12/image0001.jpg . I need only GET requests from IP1 have access to the link above. How? UPDATE server1 on IP1 needs to be free of file sharing since media server is on IP2 and we don't need to load files per request on server1's RAM. (server1 will crash soon!) therefore no HttpHandler can