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

Classic.asp with HTML5

$
0
0

I currently have a classic asp site and would like to update the front-end of the site with HTML5 and keep the server end as classic-asp.

Hence, I would like to seek some advice on what implication might occur when update the front-end to HTML5.

Thanks


Run Batch File On IIS Server using Classic ASP Code

$
0
0

Hello Everyone,

I am trying to run batch file located on my server using following code.

 <%

DIM wShell
Set wShell = Server.CreateObject("Wscript.Shell")
wShell.Run "D:\abc.bat"
Set Shell = Nothing
response.write("1")
%>

and my batch file having name abc.bat has following code to run .

ren "D:\abc.Txt" "xyz.txt"
PAUSE

Both of abc.bat & abc.txt files are located on the IIS Server machine. when i try this code on local PC, it runs successfully without an error. but, when i try to run this code on IIS server machine from local PC using online URL, it displays an error and halt an execution.

FastCGI process has failed recently- IIS 7.5

$
0
0

We have a Windows 2008 R2 server with IIS 7.5. We have hosted WordPress website on it.

The website shows 500 internal error frequently. On enabling the detail mode, it gave the following message :

HTTP Error 500.0 - Internal Server Error The FastCGI process has failed frequently recently. Try the request again in a while.

Reseting the server starts the website.

The issue has been quite often and we are unable to find any further information regarding the cause. Neither we are able to replicate the issue.

We have enabled sysloging in php.ini but to no avail.

Please provide a solution to diagnose the cause and resolve the issue.

Thanks in advance.

GZip compression changed to "Transfer-Encoding: chunked"

$
0
0

Hi,

I have been using/enabling GZip compression for dynamic and static content in web.config for ages. Today i used the usual concept (check below - mvc 5.2.2), and i saw that GZip/Deflate wouldn't activate. I checked my existing sites running on IIS 8.5 Windows Server 2012 R2 (fully updated) in production. None of these sites was using GZip. Instead the "Content-Length" header is missing, and "Transfer-Encoding: chunked" is used instead.

I've search everywhere. Checked iis.net, stackoverflow, google etc. No information about this problem. I've checked the applicationHost.config, and the nodes may be overwritten.

Even my local IISExpress wont return GZip, but Transfer-Encoding: chunked instead. Expiration is added correctly on static content.

<system.webServer><urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="false" /><httpCompression><dynamicTypes><add mimeType="application/json" enabled="true" /><add mimeType="application/json; charset=utf-8" enabled="true" /></dynamicTypes></httpCompression><staticContent><clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365:00:00" /><remove fileExtension=".js" /><mimeMap fileExtension=".js" mimeType="text/javascript" /></staticContent></system.webServer>

Production server: Win Srv 2012 R2 - Fully patched/updated. .NET 4.5(.1)
Local: Win 8.1 .NET 4.5(.1)

I've checked other sites, which i know was using GZip (ex. madskristensen.net) until recently. It seams like it has the same "problem".

Anyone know why this happens ?

Thanks in advance

//CP

Problem with debugging

$
0
0

Hello,

I have problem with debugging ASP.Net. When I start debugging, IIS redirect me to HTTPS and I get certification error. Because of that, i cant debugging. Any Ideas?

Thanks!

URL Rewrite, need help

Web deploy on Shared Configuration

$
0
0

Hey guys.

General Info, the setup:

I have IIS8 running on a Windows 2012 server (not in a domain) with a local user (iisShared with passworda)

Have a share on another PC \\other-pc\iishare\ a local user iisShared with passworda - same as on Win server

I then copied the site1 to the local share \\other-pc\iishare\apps\site1

I have installed web deploy 3.5  then activated Shared Configuration using the share I have.

site1 works with the shared config and running from \\other-pc\iishare\apps\site1. I connected using the user: iisShared

My problem:

From another PC on the network: PC3 I have installed Visual Studio 2013. When I tried to publish a update to site1, I revive an error:

An error occurred when the request was processed on the remote computer.
An error was encountered when processing operation 'Create Directory' on '\\other-pc\iishare\apps\site1'.
The error code was 0x8007052E.
The user name or password is incorrect.

   at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
   at Microsoft.Web.Deployment.DirectoryEx.CreateDirectory(String path)
   at Microsoft.Web.Deployment.DirPathProviderBase.CreateDirectory(String fullPath, DeploymentObject source)
   at Microsoft.Web.Deployment.DirPathProviderBase.Add(DeploymentObject source, Boolean whatIf)        0    0    TimeKEditor


Did I miss a configuration so I can publish directly using shared configuration?

Run multiple websites on IIS 7

$
0
0

Hello all,

I'm trying to running different ASP.NET 4 website on a new Windows Server 2008 R2 machine
(where I'm not administrator), but only one website works.

BC-site1.it works.
BC-site2.it does not work.

Here some details:

This is my file hosts:


10.165.8.234 BC-site1.it
10.165.8.234 BC-site2.it


The Host name (under site bindings in IIS) is:


BC-site2.it


and the name of the site is:

BC-site2.it


This is the ping of the site2:

Pinging BC-site2.it [10.165.8.234] with 32 bytes of data:
Reply from 10.165.8.234: bytes=32 time<1ms TTL=128
Reply from 10.165.8.234: bytes=32 time<1ms TTL=128
Reply from 10.165.8.234: bytes=32 time<1ms TTL=128
Reply from 10.165.8.234: bytes=32 time<1ms TTL=128

Ping statistics for 10.165.8.234:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

But, until now, the web site "BC-site2.it" does not start.
Appear this message on IE.

This page can’t be displayed

•Make sure the web address BC-site2.it is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.


How can I check this problem?

Thanks a lot in advance.

Luis


passiveportrange in iis 8.5 in win2012R2 doesnt work

$
0
0

hello, 

i configured passiveport range in ftp site in iis. i put 50000-51000.  when i try to do a local ftp passive connexion, it's work but the data connection port is 52036 (not in desired range). i try to restart ftpsvc with net stop/start command but it's same. do you know a issue to force the passive port range to be realy used ?

thank

Let a non-user publish with Jenkins

$
0
0

Hi,

I have a problem to let a specific user publish for a specific website.

We already use the TFS Build to publish all of our website and everything works fine.

The problem are that we have to let another department to publish on the same server. So we create a new account to let them publish... It works fine if we use webdeploy with VisualStudio...

...but note they use Jenkins.

We have the followings errors. Do we need to set something else to let them publish their websistes via Jenkins?

Thanks

Steve

Error Code: ERROR_USER_NOT_ADMIN
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.

Question regarding running IIS and Apache on same box

$
0
0

Not sure where to start with this, but I figure I'll post on IIS and Apache forums so I can look at this from both sides  Smile

Basically our webserver runs on a Windows Server 2012 VM, which lives on a Linux server.  As part of this, I built a ticketing system which runs on Linux/Apache, so I need to be able to have a link on our web site that can send a customer to the site for our ticketing system.

Due to our minimal infrastructure right now, I'd like both sites to live on the same box so they will be accessible to the outside world, any idea what the best way to do this?

Can I use the same port but different IP's, will this be sufficient as far as IIS is concerned?  Or is there something else I need to take into consideration?

New to URL Rewrite

$
0
0

I need some assistance on setting up some rules.

We are migrating from one domain to a new domain

Example 1:

http://server.olddomain.com/pbsclient --> https://server.subdomainnewdomain.com/pbsclient

Example 2:

http://server.olddomain.com --> https://server.subdomain.newdomain.com/pbsclient

Example 3:

http://server.olddomain.com/pbsmobile -->https://server.subdomain.newdomain.com/pbsmobile

I am new to URL Rewrite and I have this is what I have so far:

rule name="Redirect to NEW DOMAIN" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
                        <add input="{HTTP_HOST}" pattern="^([^\.]+\.)olddomain\.com$" />
                        <add input="{URL}" pattern="(.*)" ignoreCase="false" />
                    </conditions>
                    <action type="Redirect" url="http://{C:1}subdomain.domain.com{C:2}" redirectType="Permanent" />

This is working, however if I try to go to Example 3 it redirects to Example 1.

php pdo drivers won't load on Windows Server 2008 using IIS Fast-CGI

$
0
0

I'm not positive where this goes because I'm not 100% certain what is causing this fail.  I've been working on this issue for weeks now and I'm certain I've become notorious in forums at this point.

Background: I'm attempting to run a php based application that should connect to a database on a Windows Server (2008) through IIS using FastCGI module. The database works great and I was able to get php to work but when I go to pull data from the database using the application I get "could not find driver 1".

All of my other php code works fine, it's just when I call pdo.

I've only been able to find a few posts regarding this issue most of them were solved by installing MS Visual Studio.  So I installed that, reset the IIS then tried resetting the server.  Still no dice.

I have these extensions uncommented in php.ini

PHP.INI (uncommented extensions)
xtension=php_bz2.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_pdo_sqlite.dll
extension=php_sqlsrv_55_nts.dll
extension=php_pdo_sqlsrv_55_nts.dll

all of these .dll files have been included in my php/ext folder

I've also read a few how-tos and forums on the Microsoft site and have made sure that the following is set up in my php.ini file:

open_basedir = "C:/inetpub/wwwroot/;C:/Inetpub/temp;C:/WINDOWS/TEMP/"
extension_dir = "./ext"
cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
fastcgi.logging = 0

I have a copy of php.ini in the PHP folder and an exact copy in the Windows folder as well since "Configuration File (php.ini) Path" is "C:\Windows".

In PHPInfo()

Server API = CGI/FastCGI
PHP Extension Build = API20131226,NTS,VC11
PHP Version = 5.6.4
upload_tmp_dir shows the correct extensions that should be loaded
PDO drivers = "No Value"

I don't understand why PDO drivers shows up as not found.

On the IIS Manager I have PHP - FastCGI set up in Handler Mappings according to the Microsoft How-To.  Should I be using CGI module rather than FastCGI or am I missing something?

I also don't see PHP in the registry under HKEY_LOCAL_MACHINE/SOFTWARE.  I've read that tells Windows where to look for the php.ini file but I'm not sure what that is supposed to look like so I don't want to try to build it manually and mess something up.

I did, however, add the php folder to the environment variables in Path, so I'm not sure if the lack of PHP directory in the HKEY_LOCAL_MACHINE/SOFTWARE is the problem or not.

Exceptions in redirection in URL Rewrite module are ignored

$
0
0

I have a new site https://www.NewSite.com and I would like all the traffic of my old sitehttps://www.OldSite.com to be redirected to the root of my new sitehttps://www.NewSite.com/, with some exception.

For instance I would like the URL (among others) https://www.OldSite.com/noredirect not to be redirected and others to be rewritten. For instance:

Therefore I wrote two rules in my Old Site site in IIS:

rewrite><rules><clear /><rule name="Rewrite To New Site" stopProcessing="true"><match url="/kb(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="https://www.newsite.com/kb" /></rule><rule name="Redirect to New Site" stopProcessing="true"><match url="(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{REQUEST_URI}" pattern="(.*)/noredirect$" negate="true" /></conditions><action type="Redirect" url="https://www.newsite.com" appendQueryString="false" /></rule></rules>
</rewrite>

This rules just redirect all the requests to  my old site to the root of my new site, ignoring the exceptions and the rewrite rule. What am I doing wrong?

SSL Issues IIS 6.0

$
0
0

Good afternoon all,

I am having some major operational issues with one of my companies websites.

I can access the website fine by http:// but when I assign a certificate to the website for https:// I get the page cannot be displayed error.

I have ran through the following article

http://www.iis.net/learn/troubleshoot/security-issues/troubleshooting-ssl-related-issues-server-certificate

Everything checks out ok, when I assign a 'self assigned' certificate the website becomes operation and accessible by https://.

I have ran the SSL diagnostic tool and it only fails on one aspect when I have my SSL assigned:

#WARNING: AcquireCredentialsHandle failed with error -2146893043(0x8009030d)

Can anybody help?

Thanks,

San.


deployment of local hosted / testing web site to liive environment on web

$
0
0

I am developing a website . through Umbraco cms   using webmatrix 3 -- deployed it on one of the web page .. on windows azure for testing in web environment . it's running fine .

but now i want to deploy it in live environment in the web on the azure itself .. 

how can i do it ..

Application Initialization isn't working

$
0
0

I have been trying to solve this problem for a while. I can't get this feature to work correctly.

SSL is not set on this site. There are bindings to both the SSL and the regular port.  I have a log that records when the Application_Start() method has finished. I don't see the site being hit.

The pool is configure to always run, and the site has the Preload Enabled set to True. The first option in the Default Page is set to the initializing Page.

I am running IIS 8.5.

This is the one configuration line that I have   <applicationInitialization >
      <add initializationPage="Accounts/Start" />
    </applicationInitialization>

Virtual directory working intermittently

$
0
0

We're using IIS 8 and have a virtual directory pointing to a shared web folder on a different server. The shared folder is named studentpics and just houses jpeg files. It is going directly to the shared folder (//DDAPP/studentpics). I can browse the virtual directory without problems in IIS but when I try to pull up a jpg from a browser I get a 404 error the first few attempts, and then it will eventually come up, usually on the 4th attempt. This happens every time I try to browse a file, the first few times I get a 404, then it eventually comes up and will come up consistently unless I haven't tried to pull up that same jpg in awhile.

In the IIS logs, I see each failure as a 404, and each successful attempt is a 200 or 304. What would cause it to fail at first but eventually bring it up? These are the logs:

2015-01-23 16:55:38 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 404 0 2 203

2015-01-23 16:55:38 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 404 0 2 187

2015-01-23 16:55:40 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 404 0 2 203

2015-01-23 16:55:40 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 404 0 2 203

2015-01-23 16:55:41 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 200 0 0 0

2015-01-23 16:56:07 [ip] GET /D_DEV/studentpics/00358695.jpg - 80 - [ip] Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/39.0.2171.99+Safari/537.36 - 304 0 0 203

ErrorCode ASP 0104 : 80004005 Description Operation not Allowed

$
0
0

Dear,

I am getting this below error when i am using classic asp

i am ussing Windows server 2008R2 and IIS7.5

ERROR:

LineNumber 59 (code at this line "idvalue = request("flag")")

ErrorCode ASP 0104 : 80004005 

Description Operation not Allowed

Computer Will not let me install

$
0
0

I try to install the Microsoft Web Platform installer and I get the following error message:

MICROSOFT WEB PLATFORM INSTALLER COULDN'T FIND THE PRODUCT YOU TRIED TO INSTALL. EITHER THE LINK YOU CLICKED IS INCORRECT OR YOU MAY BE OVERRIDING YOUR FEED WITH A DIFFERENT FEED.

I am not a techie, just a guy trying to SEO his own site. I have Windows XP.

Viewing all 27852 articles
Browse latest View live




Latest Images