Tag:iis

  • Solution of vs2015 IIS express unable to start

    Time:2021-5-13

    Because I installed all kinds of messy software, then I accidentally unloaded IIS express and downloaded an IIS express 7 from the Internet. After the installation, I could not start debugging using vs 2015 locally, and F5 could not start IIS, After F5 debugging again, IIS express did not start. The logging error is as […]

  • IIS deployment asp.net MVC website design method

    Time:2021-4-9

    IIS is easy to configure ASP.NET MVC website, for your reference, the specific content is as follows Compiler: vs 2013Local IIS: IIS 7Operating system: Win 7MVC version: ASP.NET MVC4SQL Server Version: 2008 R2 Open vs 2013, create a new MVC project (Internet version), and then run the test locally. It should work. Then configure IIS […]

  • IIS ASP.NET Version conversion batch code

    Time:2020-11-7

    How to view the identifier:iisaspnet.bat code Copy codeThe code is as follows: @echo off echo ########################################## echo ######### IIS ASP.NET Version conversion##########echo ########################################## Echo Description:Echo site identifier: after opening IIS manager and clicking “website”, there is a unique site identifier after each site nameecho. Set / P VP = please enter the site identifier to […]

  • Computer access SVC through IIS error, unable to provide web page how to solve?

    Time:2020-10-20

    Today, Xiaobian brings you the problem of accessing SVC through IIS in the computer. During the deployment of WCF rest project, there is an error in accessing SVC service, which prompts 404 error, unable to provide web page. If you want to solve this problem, try the following methods. 1. Run as AdministratorPowerShell; 2. Enter […]

  • Using VBS to clear the record of logging in IP in IIS log

    Time:2020-9-10

    Option Explicit  Dim sourcefile,ipaddress,objargs const destfile=”tempfile” Const ForWriting = 2 Dim Text Dim fso,objNet,ServiceObj Dim txtStream, txtStreamOut  Set objArgs = WScript.Arguments  If objArgs.Count = 2 Then  sourcefile=objArgs(0) ipaddress=objargs(1) Else wscript.echo “Parameter Error”+ vbcrlf wscript.Echo “USAGE:KillLog.vbs LogFileName YourIP.” wscript.Quit 1 End If Set fso = CreateObject(“Scripting.FileSystemObject”) if fso.FileExists (sourcefile) then Set objNet = WScript.CreateObject( “WScript.Network” ) Set ServiceObj = GetObject(“WinNT://” & objNet.ComputerName & “/w3svc”) Set objNet=nothing ServiceObj.stop wscript.sleep 6000 Set txtStream = fso.OpenTextFile(sourcefile)  Set txtStreamOut = fso.OpenTextFile(destfile, ForWriting, True) Do While Not (txtStream.atEndOfStream)  Text = txtStream.ReadLine  if instr(Text,ipaddress)=0 then txtStreamOut.WriteLine Text  end if Loop Set txtStream = Nothing  Set txtStreamOut = Nothing WScript.Echo “The log file– ” & sourcefile &” has cleaned your IP!” Else WScript.Echo “The Log file– ” & sourcefile & ” has not found!” Wscript.quit End If fso.Copyfile destfile, sourcefile fso.deletefile destfile Set fso=Nothing ServiceObj.start Set ServiceObj = Nothing

  • Let IIS set up the site default is. Net 2.0, not. Net 1.1 code

    Time:2020-6-13

    ‘/*=========================================================================    ‘* intranet allows IIS to set up a site of. Net 2.0 by default, rather than. Net 1.1. WMI is not used, so you must stop IIS related services before you operate‘ * FileName    ChangeMetaBaseScriptMaps.vbs    ‘ * Author      yongfa365    ‘ * Version     v1.0    ‘ * WEB         http://www.yongfa365.com    ‘ * Email       yongfa365[at]qq.com    ‘ * FirstWrite  http://www.yongfa365.com/Item/ChangeMetaBaseScriptMaps.vbs.html    ‘ * MadeTime    2008-07-24 17:38:20    ‘ * LastModify  2008-07-24 17:38:20    ‘ *==========================================================================*/    WScript.Echo “Before clicking OK, please run” & vbcrlf & “net stop iisadmin / Y” […]

  • How to install. Net 4.5 in win10 IIS

    Time:2020-5-26

    By default, win10 IIS is. Net 4.0. After vs2015 is installed, IIS does not have. Net 4.5. The solution is to execute it directly under the CMD command line: dism /online /enable-feature /featurename:IIS-ISAPIFilter dism /online /enable-feature /featurename:IIS-ISAPIExtensions dism /online /enable-feature /featurename:IIS-NetFxExtensibility45 dism /online /enable-feature /featurename:IIS-ASPNET45 Knowledge point extension: win10 installs IIS and configures ASP.NET Four […]

  • VBScript uses ADSI to batch add masked or accessible IP for IIS

    Time:2020-5-9

    Copy codeThe code is as follows: ‘/*========================================================================= ‘* intro VBScript uses ADSI to batch add blocked or allowed access IP for IIS‘ * FileName VBScript-ADSI-IIS-Add-Deny-Grant-IP-Change-MetaBase.xml.vbs ‘ *==========================================================================*/ ‘AddDenyIP2All “192.168.1.106,255.255.255.0” ‘AddDenyIP2All “127.0.0.1” ‘AddDenyIP “123456”,”127.0.0.1″ “Add the IP or a group of computers to be masked to a specified siteSub AddDenyIP(strWebNo, strDenyIp) On Error Resume Next Set […]

  • IIS PHP installation script PHP install.vbs v3.1

    Time:2020-3-21

    Copy codeThe code is as follows: ‘/*========================================================================= ‘* intro PHP installation script, all you need to do is to save this file and put it together with the PHP folder to be installed (do not put it under the root directory of Disk C)‘* (if the current version of php-5.2.5-win32 is other, please replace the […]

  • Actual combat record of HTTP to HTTPS (IIS 7.5)

    Time:2020-3-2

    What is HTTPS SSL (security socket layer) is the full name of the encryption socket protocol layer. It is located between the HTTP protocol layer and the TCP protocol layer. It is used to establish the encrypted communication between the user and the server to ensure the security of the information transmitted. At the same […]

  • Asp.net core using IIS to host on Windows

    Time:2020-1-29

    abstract In recent projects, asp.net core is tried to be used for development. When deploying, the existing hardware can only be deployed on windows, and the Linux server is temporarily unavailable. Let’s have a look at the detailed introduction. Deployment considerations Enable IIS and kestrel in the code public class Program { public static void […]

  • Setting method of cookie domain when IIS implements reverse proxy

    Time:2020-1-10

    Reverse proxy Is Shenma a reverse agent? It refers to that the proxy server accepts the connection request on the Internet, then forwards the request to the server on the internal network, and returns the result obtained from the server to the client requesting the connection on the Internet. At this time, the proxy server […]