Quantcast
Channel: All Forums
Viewing all 27852 articles
Browse latest View live

Response.Write does not show & encode html tags correctly

$
0
0

Hi,

I faced a confusing issue with my new installation of Windows 10 and IIS that comes with it.

The issue is that Response.Write and also <%=varname%> outputs html tags so that all  "<"-signs and

">"-signs in the tags are replaced by the following character-combination: "+ADw-". 

Thus, browsers do not present html correctly.

For example, Response.Write("<div>hello</div>") outputs the following: +"ADw-div+AD4-hello+ADw-/div+AD4-"

Can anyone say what is the cause of this issue and how to fix it?

Regards,

Matti


LOCALHOST not working

$
0
0

hi guys i have my dotnetnuke localhost website is not working, my project is called /newach,  so when i put http:\\localhost\newach    or   http:\\127.0.0.1\newach nothing happening on the browser.

i created a folder on C:\inetpub\wwwroot\newach after that i extracted all the contents of the zip file"  DNN_Platform_8.0.3_Install.zip " into that folder, open IIS manager manager and created new website.

Thanks

Get IIS Version using WMI "\\root\\webadministration"

$
0
0

Hello!!

I am developing a IIS monitoring tool. I am using C# codes to execute webadministration WMI classes. I able to monitor almost all the parameter including Sites, AppPools, Applications, Virtual Directories, Worker Process ect. But I need few more things to monitor like 

1) IIS version

2) CPU usage

So if any one know the class name from webadministration namespace to fetch IIS version and CPU load please help me...

Here I added one example code which I used to fetch Site list. I want the class name for CPU and IIS version so that I can implement same way...

public void GetSiteDetails(){

ManagementScope managementScope = GetManagementScope(monAccount.IP, monAccount.UserName, monAccount.Password, 0, null);

SelectQuery QuerySite = new SelectQuery(string.Format("SELECT * FROM Site"));
ManagementObjectSearcher vmSearcher = new ManagementObjectSearcher(managementScope, QuerySite );
foreach (ManagementObject item in vmSearcher.Get())
{

    //getting site details here

}

}

public static ManagementScope GetManagementScope(string IPAddress, string Uname, string Pwd, int timeOut, string cimRoot)
{
if (string.IsNullOrEmpty(cimRoot))
cimRoot = "\\root\\webadministration";
ManagementScope oMs = null;
string serverIIS = "\\\\" + IPAddress.Trim() + cimRoot;
try
{
if (!string.IsNullOrEmpty(Uname) && !string.IsNullOrEmpty(Pwd))
{
ConnectionOptions oConn = new ConnectionOptions();
oConn.Authentication = AuthenticationLevel.PacketPrivacy;
oConn.Username = Uname;
oConn.Password = Pwd;
oMs = new ManagementScope(serverIIS, oConn);
}
else
{
oMs = new ManagementScope(serverIIS);
}
}
catch (Exception exp)
{
throw;
}
return oMs;
}

Hope I will get help here.

Thanks!

Windows Process Activation Service error 5 - Access Denied

$
0
0

Hello,

I have two IIS server using shared configuration. Shared config file is located on network share.

To connect to the share IIS uses domain account: mydomain\myshareaccount.

The account is not locked/disabled, password is valid.

Everything worked for quite long time until a reboot of both web servers.

After reboot I couldn’t start IIS anymore, because of the error message:

The Windows Process Activation Service service terminated with the following error:

Access is denied.”

I tried to run Windows Process Activation Service separately, but the same error message.

I run Process Monitor and I see following issue:

High Resolution Date & Time:           2/21/2017 11:35:50.1655989 PM

Event Class:           File System

Operation:             CreateFile

Result:    NAME NOT FOUND

Path:       C:\inetpub\temp\appPools\noq1qehh.oli

TID:        8332

Duration:               0.0000103

Desired Access:     Read Attributes

Disposition:           Open

Options:  Open Reparse Point

Attributes:             n/a

ShareMode:           Read, Write, Delete

AllocationSize:      n/a

Impersonating:      mydomain\myshareaccount

About 15 errors message that kind appear when I filtered the output in process monitor.

What I don’t understand, why WAS service wants to write in the C:\inetpub\temp\appPools\noq1qehh.oliwith mydomain\myshareaccount? WAS service is running as Local Account. In my case WAS service tries to write tmp files to C:\inetpub\temp\appPools\ with account which is used in IIS for connection to UNC location. Is this correct?

When I go to ACL of C:\inetpub\temp\appPools\noq1qehh.oli only SYSTEM andLocal Administrators group have permission for that file.

Permission for only that file is not inherited from C:\inetpub\temp\appPools wheremydomain\myshareaccount has access. I guess WAS service creates the file and set ACL so onlySYSTEM and Local Administrators have access to.

When I switch both of IIS server to use local configuration everything works just fine, IIS and WAS service are up and running. No Access Denied for C:\inetpub\temp\appPools directory. Temp files are created with the same ACLSYSTEM and Local Administrators.

Does anybody have idea what could be cause of this issue?

Thank you and Regards,

Lukasz

IIS10 and delivery email to hMailServer

$
0
0

I am a beginner for using IIS, and I am implementing an ASP.Net application that send email directly to SMTP server by go through IIS.

So, the SMTP server that I am using is hMailServer, I read through the the tutorial,

https://technet.microsoft.com/en-us/library/cc772058(v=ws.10).aspx

and the guild-line ask me to do this 

-----------------------------------------------------------------------------------------------------------------------------------------------------------

5. If Deliver e-mail to SMTP server is selected, do the following:

  1. Type the unique name of your SMTP server in the SMTP Server text box or select the Use localhost box to set the name to LocalHost. Setting the name to LocalHost means that ASP.NET will use an SMTP server on the local computer. Typically, this is the default SMTP virtual server.

-----------------------------------------------------------------------------------------------------------------------------------------------------------

  So, the below is my setting for deliver e-mail to hMailServer  

                                    vs

For your guys references, the below is my code for ASP.NET

-----------------------------------------------------------------------------

string from = "aaa@test.my";  //This email account is create by hMailServer

  string to= "bbb@test.my"; //This email account is create by hMailServer  

  string subject = "dummy";

   string to = "dummy";

   using( SmtpClient smtp = new SmtpClient("192.168.0.16", 25) )

   {

        smtp.Credentials = new System.Net.NetWorkCredential("aaa@test.my" , "123" );  // the sender  ID and Password

        smtp.Send( from , to , subject, message );

   }

-----------------------------------------------------------------------------

 192.168.0.16 is my computer IP address, my hMailServer is create by "Local Host", I have try 127.0.0.1 but did not work also. 

In my asp.net application, I can store email into the pickup directory if I select the option, but I cannot deliver email to hMailServer, the error Message is just "Failed to send the email".

So now I am wonder it what did I do wrongs :

1. Am I type in the wrong Unique name of hMailServer ?

2. Am I use the wrong port ? ( I removed the 25 under TCP/IP Ports from hMailServer, because I think it is necessary to prevent crashing between IIS and hMailServer)

3. Am I can't use hMailServer as delivery SMTP server? ( I also have install server manager for my window 10, but it cannot find any available server )

Hope you guys can give me some hints . I would appreciate it. 

How to get IIS Server Certificate List using "root\webadministration" (WMI)

$
0
0

Hi,

I am developing a IIS monitoring tool. I am using C# codes to execute webadministration WMI classes. I able to monitor almost all the parameter including Sites, AppPools, Applications, Virtual Directories, Worker Process ect. But I need one more parameter that is "Server Certificate List"

If any one knows the class name to fetch "Server Certificates" using webadministration namespace please help me.

Here is my simple working code example and I want to follow the same way to fetch Server Certificate also..



public List<Site> GetSiteList()
{
List<Site> siteList = new List<Site>();
SelectQuery QueryApplicationPool = new SelectQuery(string.Format("SELECT * FROM Site"));
ManagementObjectSearcher vmSearcher = new ManagementObjectSearcher(IISmgmtScope, QueryApplicationPool);
foreach (ManagementObject item in vmSearcher.Get())
{
var stt = GetState(item);
siteList.Add(new Site()
{
SiteID = Convert.ToInt32(item.Properties.Cast<PropertyData>().Where(o => o.Name == "Id").Select(o => o.Value).FirstOrDefault()),
Name = item.Properties.Cast<PropertyData>().Where(o => o.Name == "Name").Select(o => o.Value.ToString()).FirstOrDefault(),
StartAutomatically = item.Properties.Cast<PropertyData>().Where(o => o.Name == "ServerAutoStart").Select(o => o.Value.ToString()).FirstOrDefault(),
CurrentStatus = stt
});
}
return siteList;
}




public static ManagementScope GetManagementScope(string IPAddress, string Uname, string Pwd, int timeOut, string cimRoot)
        {
            if (string.IsNullOrEmpty(cimRoot))
                cimRoot = "\\root\\webadministration";
            ManagementScope oMs = null;
            string serverIIS = "\\\\" + IPAddress.Trim() + cimRoot;
            try
            {
                if (!string.IsNullOrEmpty(Uname) && !string.IsNullOrEmpty(Pwd))
                {
                    ConnectionOptions oConn = new ConnectionOptions();
                    oConn.Authentication = AuthenticationLevel.PacketPrivacy;
                    oConn.Username = Uname;
                    oConn.Password = Pwd;
                    oMs = new ManagementScope(serverIIS, oConn);
                }
                else
                {
                    oMs = new ManagementScope(serverIIS);
                }
            }
            catch (Exception exp)
            {
                throw;
            }
            return oMs;
        }

Microsoft Driver 3.2 for PHP v5.4 for SQL Server in IIS - Install Failed

$
0
0

Web installer fails to install "MS Driver 3.2 for PHP v5.4 for SQL Server" with error HTTP status code: 404. Download failure, so I manually downloaded the msi and installed it. when I run web installer again it does not recognize that driver is already installed.

Did any one face similar issue. (I am trying to install drupal)

DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9842185 DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9842185 responded with 302 DownloadManager Information: 0 : Response headers: HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Location:https://www.microsoft.com/web/webpi/5.0/webproductlist.xml Server: Microsoft-IIS/8.5 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Content-Length: 175 Date: Mon, 27 Feb 2017 09:46:20 GMT Connection: keep-alive

DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/webproductlist.xml responded with 304 DownloadManager Information: 0 : Response headers: HTTP/1.1 304 Not Modified Content-Type: text/xml Last-Modified: Wed, 22 Feb 2017 14:37:09 GMT ETag: "2ffbf825198dd21:0" Cache-Control: max-age=516 Date: Mon, 27 Feb 2017 09:46:20 GMT Connection: keep-alive X-CCC: AE X-CID: 2

DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\1343597488.xml.temp DownloadManager Warning: 0 : Could not resolve keyword ID 5nine DownloadManager Warning: 0 : Could not resolve keyword ID Security DownloadManager Warning: 0 : Could not resolve keyword ID 5nine DownloadManager Warning: 0 : Could not resolve keyword ID Security DownloadManager Warning: 0 : Could not resolve keyword ID Backup DownloadManager Warning: 0 : Could not resolve keyword ID Portal DownloadManager Warning: 0 : Could not resolve keyword ID Backup DownloadManager Warning: 0 : Could not resolve keyword ID Portal DownloadManager Warning: 0 : Could not resolve keyword ID Backup DownloadManager Warning: 0 : Could not resolve keyword ID Resource Provider DownloadManager Warning: 0 : Could not resolve keyword ID VMWare DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID VMWare DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID VMWare DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID Usage DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID Usage DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID Usage DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID Usage DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Hybrid Cloud DownloadManager Warning: 0 : Could not resolve keyword ID Windows Azure Pack DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Assert DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Cruiser DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Showback DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Cruiser DownloadManager Warning: 0 : Could not resolve keyword ID Billing DownloadManager Warning: 0 : Could not resolve keyword ID Showback DownloadManager Warning: 0 : Could not resolve keyword ID Terawe DownloadManager Information: 0 : Filtering by current OS DownloadManager Information: 0 : Loading product xml from: https://aka.ms/webapplicationlist DownloadManager Information: 0 :https://aka.ms/webapplicationlist responded with 301 DownloadManager Information: 0 : Response headers: HTTP/1.1 301 Moved Permanently Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Location: https://webgallery.microsoft.com/feed/webapplicationlist.xml Server: Microsoft-IIS/8.5 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Content-Length: 177 Date: Mon, 27 Feb 2017 09:46:22 GMT Connection: keep-alive

DownloadManager Information: 0 : https://webgallery.microsoft.com/feed/webapplicationlist.xml responded with 304 DownloadManager Information: 0 : Response headers: HTTP/1.1 304 Not Modified ETag: "802ac490ae87d21:0" Set-Cookie: ARRAffinity=082c0118ea6417b9b8272ca0ed88b10077287f6a00efacb593e0ec4b261a316b;Path=/;Domain=webgallery.microsoft.com Date: Mon, 27 Feb 2017 09:46:24 GMT

DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\-966730450.xml.temp DownloadManager Information: 0 : Filtering by current OS DownloadManager Information: 0 : Sucessfully loaded the feed 'https://aka.ms/webapplicationlist' after preprocessing, location on disk: 'C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-966730450.xml' DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml DownloadManager Information: 0 :https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml responded with 304 DownloadManager Information: 0 : Response headers: HTTP/1.1 304 Not Modified Content-Type: text/xml Last-Modified: Thu, 08 May 2014 18:42:31 GMT ETag: "26a51545ed6acf1:0" Cache-Control: max-age=679 Date: Mon, 27 Feb 2017 09:46:24 GMT Connection: keep-alive X-CCC: AE X-CID: 2

DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\-230948881.xml.temp DownloadManager Information: 0 : Filtering by current OS DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml' after preprocessing, location on disk: 'C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-230948881.xml' DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml DownloadManager Information: 0 :https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml responded with 304 DownloadManager Information: 0 : Response headers: HTTP/1.1 304 Not Modified Content-Type: text/xml Last-Modified: Wed, 09 Dec 2015 19:05:52 GMT ETag: "9fc99b9fb432d11:0" Cache-Control: max-age=334 Date: Mon, 27 Feb 2017 09:46:25 GMT Connection: keep-alive X-CCC: AE X-CID: 2

DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\-1135381691.xml.temp DownloadManager Information: 0 : Filtering by current OS DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1135381691.xml' DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml DownloadManager Information: 0 :https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml responded with 304 DownloadManager Information: 0 : Response headers: HTTP/1.1 304 Not Modified Content-Type: text/xml Last-Modified: Thu, 08 May 2014 18:42:32 GMT ETag: "8285645ed6acf1:0" Cache-Control: max-age=391 Date: Mon, 27 Feb 2017 09:46:25 GMT Connection: keep-alive X-CCC: AE X-CID: 2

DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\-1877981721.xml.temp DownloadManager Information: 0 : Filtering by current OS DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml' after preprocessing, location on disk: 'C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1877981721.xml' DownloadManager Information: 0 : Sucessfully loaded the feed 'https://go.microsoft.com/?linkid=9842185' after preprocessing, location on disk: 'C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\preprocessor\1343597488.xml' DownloadManager Information: 0 : Getting ratings file from http://go.microsoft.com/?linkid=9752395 DownloadManager Information: 0 : Contextual entry products: AcquiaDrupal DownloadManager Information: 0 : Adding product Acquia Drupal 7 (AcquiaDrupal) to cart DownloadManager Information: 0 : Contextual navigation to product 'AcquiaDrupal' DownloadManager Information: 0 : http://go.microsoft.com/?linkid=9752395 responded with 302 DownloadManager Information: 0 : Response headers: HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Location: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingquery Server: Microsoft-IIS/8.5 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Mon, 27 Feb 2017 09:46:25 GMT Content-Length: 203 Proxy-Connection: Keep-Alive Connection: Keep-Alive

DownloadManager Error: 0 : WebClient download error. Uri: https://webgalleryappimages.blob.core.windows.net/logos-screenshots/acquiadrupal-logo, Error: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.    at System.Net.WebClient.DownloadFile(Uri address, String fileName)    at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath) DownloadManager Information: 0 : Content-Encoding header: 'gzip' DownloadManager Information: 0 : Number of bytes downloaded over the internet: '25118' DownloadManager Information: 0 : Number of bytes after possible decompression: '82063' DownloadManager Warning: 0 : Error getting last-modified header, error code: 12150 DownloadManager Warning: 0 : HttpQueryInfoWithRetry for HTTP_QUERY_LAST_MODIFIED failed. DownloadManager Information: 0 : Ratings file loaded successfully DownloadManager Information: 0 : Number of bytes downloaded over the internet: '6484' DownloadManager Information: 0 : Number of bytes after possible decompression: '6484' DownloadManager Information: 0 : Adding product 'AcquiaDrupal' DownloadManager Information: 0 : Adding dependency product 'SQLDriverPHP54IIS DownloadManager Information: 0 : Adding dependency product 'MSODBC11 DownloadManager Information: 0 : Setting current install to 1 DownloadManager Information: 0 : Starting install sequence DownloadManager Information: 0 : Downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081' to: C:\Users\Administrator\AppData\Local\Temp\2\tmpA243.tmp DownloadManager Information: 0 :http://go.microsoft.com/fwlink/?LinkID=533081 responded with 302 DownloadManager Information: 0 : Response headers: HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Pragma: no-cache Expires: -1 Location: http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi Server: Microsoft-IIS/8.5 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Mon, 27 Feb 2017 09:46:50 GMT Content-Length: 0 Proxy-Connection: Keep-Alive Connection: Keep-Alive

DownloadManager Information: 0 : http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi responded with 404 DownloadManager Information: 0 : Response headers: HTTP/1.1 404 Not Found Content-Type: application/octet-stream Server: Microsoft-IIS/8.5 Content-Disposition: attachment X-N: S Date: Mon, 27 Feb 2017 09:46:52 GMT Content-Length: 1245 Proxy-Connection: Keep-Alive Connection: Keep-Alive

DownloadManager Error: 0 : Error while downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081'. Exception: System.Net.WebException: Url 'http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi' returned HTTP status code: 404    at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)    at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)   at Microsoft.Web.PlatformInstaller.InstallManager.WinInetDownloadInstallerFile(InstallerContext currentInstall, String& failureReason) DownloadManager Warning: 0 : WinInet failure: Url 'http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi' returned HTTP status code: 404. Retrying download for 'Microsoft® ODBC Driver 11 for SQL Server®' DownloadManager Information: 0 : WebClient downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081' to: C:\Users\Administrator\AppData\Local\Temp\2\tmpAAB0.tmp DownloadManager Error: 0 : WebClient error while downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081'. Exception: System.Net.WebException: The remote server returned an error: (404) Not Found.    at System.Net.WebClient.OpenRead(Uri address)    at Microsoft.Web.PlatformInstaller.InstallManager.WebClientDownloadInstallerFile(InstallerContext currentInstall, String& errorMessage) DownloadManager Warning: 0 : WebClient failure: The remote server returned an error: (404) Not Found.. Retrying download for 'Microsoft® ODBC Driver 11 for SQL Server®' DownloadManager Information: 0 : Downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081' to: C:\Users\Administrator\AppData\Local\Temp\2\tmpABDA.tmp DownloadManager Information: 0 : http://go.microsoft.com/fwlink/?LinkID=533081 responded with 302 DownloadManager Information: 0 : Response headers: HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Pragma: no-cache Expires: -1 Location: http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi Server: Microsoft-IIS/8.5 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Mon, 27 Feb 2017 09:46:52 GMT Content-Length: 0 Proxy-Connection: Keep-Alive Connection: Keep-Alive

DownloadManager Information: 0 : http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi responded with 404 DownloadManager Information: 0 : Response headers: HTTP/1.1 404 Not Found Content-Type: application/octet-stream Server: Microsoft-IIS/8.5 Content-Disposition: attachment X-N: S Date: Mon, 27 Feb 2017 09:46:52 GMT Content-Length: 1245 Proxy-Connection: Keep-Alive Connection: Keep-Alive

DownloadManager Error: 0 : Error while downloading file 'http://go.microsoft.com/fwlink/?LinkID=533081'. Exception: System.Net.WebException: Url 'http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi' returned HTTP status code: 404    at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)    at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)   at Microsoft.Web.PlatformInstaller.InstallManager.WinInetDownloadInstallerFile(InstallerContext currentInstall, String& failureReason) DownloadManager Error: 0 : WinInet failure: Url 'http://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/1033/amd64/msodbcsql.msi' returned HTTP status code: 404. Download failure for Microsoft® ODBC Driver 11 for SQL Server®. DownloadManager Warning: 0 : Dependency failed for product 'Microsoft Drivers 3.2 for PHP v5.4 for SQL Server in IIS'. Skipping download. DownloadManager Information: 0 : Product Microsoft Drivers 3.2 for PHP v5.4 for SQL Server in IIS had a dependency fail. Increasing install product to 2 DownloadManager Warning: 0 : Dependency failed for product 'Acquia Drupal 7'. Skipping download. DownloadManager Information: 0 : Product Acquia Drupal 7 had a dependency fail. Increasing install product to 3 DownloadManager Information: 0 : Product: MSODBC11, Install Status: DownloadFailed-None, Install Time: 00:00:00 DownloadManager Information: 0 : Product: SQLDriverPHP54IIS, Install Status: DependencyFailed-None, Install Time: 00:00:00 DownloadManager Information: 0 : Product: AcquiaDrupal, Install Status: DependencyFailed-None, Install Time: 00:00:00

Are there IIS Application Recycle events?

$
0
0
I first posted this question on MSDN forums and was re-directed to asp.net and they redirected me here.

With Windows Services, you have Start, Stop, Shutdown events you can use to trigger various behavior within the service.

In my case, I have a Web Service that has a pub sub connection over TCP.

Is there a way to get an event related to an App Pool Recycle where I could disconnect from the Sub right at the start... process any pubs that I need to process before releasing all resources prior to the App Pool termination (presumably a new instance has already spun up).

In IIS 8, there is a way to call a public method in the source code as the app pool initializes. If there were such a method exposed when an app pool recycle starts, this would do the trick for me.

Thanks!!

Windows server change ip got disconnected

$
0
0

Hello everyone,

Am new to these kind of stuff and I changed my network sharing IPv4 and the subnet mask was 255.0.0.0.

And I can't reconnect to the server again not even the Desktop of the windows server.. It was on auto ip assign for the internet on the server, now I can't join the server..

Please help

Cheers,

Hamza

HTTP Post Request to eBay's File Exchange

$
0
0

I'm trying to write a classic ASP script to upload feeds using eBay's File Exchange. After running the below script the HTTP response received has an error message saying "Your File Exchange upload failed because a valid token is missing". I know the token is correct and valid since I can upload feeds using cURL.

Dim objRequest
Dim strPostString
Dim strPostURL
Dim strToken
Dim strFileName
Dim strPostResponse

set objRequest = Server.CreateObject("Msxml2.ServerXMLHTTP")


strFileName = "products1_UK.csv"
strPostURL = "https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload"
strToken = "TOKEN HERE"
strMessage = "ACTUAL CSV CONTENTS HERE"

strPostString = strPostString & "POST /path/to/upload/script HTTP/1.0" & vbCrLf
strPostString = strPostString & "Connection: Keep-Alive" & vbCrLf
strPostString = strPostString & "User-Agent: My Client App v1.0" & vbCrLf
strPostString = strPostString & "Host: " & strPostURL & vbCrLf
strPostString = strPostString & "--THIS_STRING_SEPARATES" & vbCrLf
strPostString = strPostString & "Content-Disposition: form-data; name=""token""" & vbCrLf
strPostString = strPostString & strToken & vbCrLf
strPostString = strPostString & "--THIS_STRING_SEPARATES" & vbCrLf
strPostString = strPostString & "Content-Disposition: form-data; name=""file""; FileName=""" & strFileName & """" & vbCrLf & "Content-Type: text/csv" & vbCrLf
strPostString = strPostString & strMessage & vbCrLf
strPostString = strPostString & "--THIS_STRING_SEPARATES"

objRequest.Open "POST", strPostURL, False
objRequest.setRequestHeader "Content-Type", "multipart/form-data; boundary=THIS_STRING_SEPARATES"
objRequest.setRequestHeader "Content-Length", "256"
objRequest.Send strPostString

response.write(objRequest.responseText)

A Sample HTTP Post Request from the File Exchange's manual

POST /path/to/upload/script HTTP/1.0
Connection: Keep-Alive
User-Agent: My Client App v1.0
Host:
https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload
Content-type: multipart/form-data;
boundary=THIS_STRING_SEPARATES
Content-Length: 256
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="token"
12345678987654321
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="file";
filename="listings.csv"
Content-Type: text/csv
... contents of listings.csv

Some more instructions from File Exchange's manual

The HTTP Post Request must always include the following components. In the first line, the method to be applied to the resource, the identifier of the resource, and the protocol version in use, such as:

POST /path/to/upload/script HTTP/1.0

The connection, user-agent and host information is next:

Connection: Keep-Alive

User-Agent: My Client App v1.0

Host: https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload

Header containing file content and length information:

Content-type: multipart/form-data; boundary=THIS_STRING_SEPARATES Content-Length: 256

Contents, which includes your security token and then the actual file contents you want to upload:

--THIS_STRING_SEPARATES Content-Disposition: form-data; name="token" 12345678987654321 --THIS_STRING_SEPARATES Content-Disposition: form-data; name="file"; filename="listings.csv" Content-Type: text/csv ... contents of listings.csv ... --THIS_STRING_SEPARATES

Re: IIS10 and delivery email to hMailServer

$
0
0

a) Your image is missing

b) You should use Port 25 for your mail server. IIS will not use Port 25 unless you install the IIS SMTP server. As long as you don't install the IIS SMTP server, you can use Port 25 for your hMailServer

c) Have you ensured you have configured hMailServer to accept mail for the "test.my" domain? If hMailServer is not configured to accept mail for that domain, then it will attempt to consult the DNS to find out where it should deliver the mail to.

d) When you say "it doesn't work", what happens? Do you get an error? What is it?

URL rewrite to default page

Can site secured by Client Certificate have an anonymous section?

$
0
0

We're building a ASP.NET Web API application that will only have a single "user", an external service. Our client requested that above SSL and IP filtering (which are outside the scope of the application), a client certificate should also be used for security.

We built other apps for this client, and they usually want a way to "visually" ping the service endpoint. In the past we did this with a simple html file, or an url that will respond with HTTP 200. I'm sure we'll be asked if we can do it again for this app. It's a yes or no question, but if we say no, we have to give the reason.

Client certificates make this a bit harder I imagine, so is there a way to set up a "ping" url without authentication in web.config like /api/ping? Is the <location> attribute has any affect on this? Or does authentication already happen before those settings get evaluated?

500 - Internal Server Error

$
0
0

Recently, I installed frontpage server extensions on a Windows 2012 R2 server. I then used web deploy to package and migrate several web sites from an old 2003 server. When I tried viewing sites in a web browser, all of the sites that had the frontpage server extensions extended give me a "500 - Internal Server Error." This is not the case with sites that didn't have the extensions. They worked fine. I made sure all permissions were the same between working and non-working sites along with the authentication methods being identical. If I create a new "test" site, anyone is able to access it. No problem. it is only the frontpage sites. In the tests, I even extended the server extensions and they worked fine. How would I troubleshoot the 500 - Internal Server Error?

Before anyone says something, frontpage server extensions are supported by ready to run software (http://www.rtr.com/fpse/Win2008R2/index.htm) which is where we purchased the licenses from. 

Issue with Web Deploy 3.6 on Server 2012 R2

$
0
0

Hello

I have installed Web Deploy 3.6 on Server 2012 R2 via Web Platform Installer 5.0; however when I start IIS Manager and right-click on the server Deploy does not appear in the list of options?

I have tried repairing Web Deploy which has made no difference.

Suggestions to troubleshoot?

Thanks

Vaughan


Default Web Site not working

$
0
0

Hi,

Default Web Site in IIS 7.5 on Windows2008R2 doesn't work.

Site http://example.com results in "HTTP Error 503. The service is unavailable" while site http://example.com/citrix/storeweb is ok.

All AppPools are started, they never stop. Default site  uses DefaultAppPool with its default settings, changing some of its advanced settings (32bits apps to True/False, LoadProfile to True/False, Identity to ApplicationPoolIdentity/NetworkService/LocalSystem/user-with-password) result in same error.

c:/inetpub/wwwroot folder grants full control permissions to each tested Identity.

SSL Certificate is installed and valid.

Bindings are set to defaults *:80 and *:443.

No errors on eventvwr.msc, though httperr*.log shows "HTTP/1.1 HEAD / 503 1 N/A DefaultAppPool".

I tried to redirect HTTP to StoreWeb site via HTTP redirection, URL Re-writing and a customized Default document but Default Web Site is not working.

Any thoughts/questions/directions to Alejandro Monett - amonett@sbcpro.de / amonettd@gmail.com will be appreciated.

Custom Error Page failed to redirect

$
0
0

I've configured the 404 error to redirect(302) client to a page instead of returning 404 error.

It was working great, but I found once the URL contains '%20' in URL, then the redirect will not function. IIS will return 404 to client.

Anyone has solution?

Win2012R2, IIS8.5, Microsoft .NET Framework :4.0.30319; ASP.NET :4.0.30319.34209

Rewrite rules is overeride by the web config transformation

$
0
0

My aim is to remove the IIS8.5 version header from the http response. So that i have added the followingoutbound rules to remove it.

<rule name="Remove Sever">
<match serverVariable="RESPONSE_SERVER" pattern=".*" />
<action type="Rewrite" value="" />
</rule>
<rule name="Remove PowerdBy">
<match serverVariable="RESPONSE_X-POWERED-BY" pattern=".*" />
<action type="Rewrite" value="" />
</rule>
<rule name="Remove AspNetVersion">
<match serverVariable="RESPONSE_X-ASPNET-VERSION" pattern=".*" />
<action type="Rewrite" value="" />
</rule>

While enviroment specific web config trasnformation the following existing rule overwritten the newly added rules action values and pattern values.

<outboundRules>
<rule name="outbound_agexweb_agencies_6000" preCondition="ResponseIsHTML">
<match filterByTags="A, Form, Img" pattern="^http(s)?://abc.test:6000/(.*)" xdt:Transform="SetAttributes"
xdt:Locator="XPath(/configuration/system.webServer/rewrite/rules/rule/action)"/>
<action type="Rewrite" value="http{R:1}://qa.abc.com/{R:2}" xdt:Transform="SetAttributes"
xdt:Locator="XPath(/configuration/system.webServer/rewrite/rules/rule/action)"/>
</rule>
</outboundRules>

How to overcome this situation and the existing rules should not ovveride the newly added rules ?.

Thanks in Advance.

Publish single file ends with Read-Only flag on file + Web Deploy issue

$
0
0

Is it possible to set Web Deploy to overwrite files with Read Only flag during publishing (sync operation)?

Problem is that Read - Only flag is set on file during Publishing of single file from Visual Studio, from context menu. And after that Build that does deployment with Web Deploy fails.

Configure Web Deploy Publishing...Security Group

$
0
0

Hi,

Just a quick question: When Configuring Web Deploy Publishing, can I use a security group?

I have a security group of developers that I want to configure for web deploy publishing.  Rather than setting up each one individually, I'd rather use the security group.  Is this possible or recommended?

Thanks
Tony

Viewing all 27852 articles
Browse latest View live


Latest Images