Website and Virtual Directory accessing same folder
Hello,
I created a new ASP.NET 2.0 Website on a SBS Server, with a non-standard
domain name, deliberately shortened so that the Intranet users could find
it. I created a local DNS CNAME entry on the server and it works just fine.
Now the server owner would like to have external access to the site - They
already have an external facing site which serves such things as Outlook Web
Access.
I created a virtual directory for the external site, pointing to the same
folder as before and set it up as an application. This took out the internal
site. When I removed the application, leaving the virtual directory, the
internal site was restored. I need to create the virtual directory as an
application as it will not run otherwise.
Is there a way to do this, or do I need to copy the folder and then have the
external facing virtual directory pointing to that instead? I was hoping
that I can have both sites pointing to the same folder to ensure there is
only one set of files to update.
Thanks
Graham Cottle Tag: SMTP Server Tag: 402119
webDAV - documents being opened in readonly
Hi there,
I have a quick question with regards to webDAV.
1. I enabled webDAV on a my default website in order to access end edit
documents via http.
2. My documents are in http://site/documents
3. I can list and open files from the /documents directory according to my
credentials
4. However, when I open a document (eg: document1.doc) it seems that the
document is opened as read-only so I am forced to do a SAVE AS.
5. I can then save the document with another filename (e.g.: document2.doc)
6. After saving with a different filename I can then save the document back
as document1.doc
Any ideas what I'm doing wrong? Thanks a lot in advance!
Best Regards,
P. Tag: SMTP Server Tag: 402116
IIS7 auto backup of config? Where are they?
Using appcmd list backup it seems that IIS is making backups of the config.
Where are they? When does it make these bacups?
Is it possible to make a new site or v dir from a saved config as it was in
IIS6?
Thanks
BB Tag: SMTP Server Tag: 402110
Negoaite Authentication failing on Vista IIS7
I'm an in-house dotnet developer using IIS7 on Vista Ultimate. I have multiple local webs running under IIS, all share
the same 120.0.0.1 loopback ip address with hostheaders to identify the webs. ASP.Net web sites on these webs require
windows authentication. I have found that with authenticaiton set to either "Negotiate" or "Negotiate, NTLM",
authentication fails: it does not matter if I access the web site using IE, or code with credentials to access a web
service or if I used a domain account or local account. If I set authentication only to "NTLM" then authentication
succeeds.
I don't understand why Kerberos authentication might fail locally, but even so shouldn't "Negotiate" let authentication
fail over to NTLM? If that is true then why would setting it specifically to "NTLM" succeed? Yes, I have windows
authentication set in IIS and the user accounts (and iis_users) have access to the folders. And I am changing the
authentication mode using adsutil. And for what it's worth I did not have this problem when my workstations was win2003
with IIS6. Tag: SMTP Server Tag: 402106
DefaultAppPool Terminates unexpectedly
Hi all, I've read the KB articles about this error (Service Unavailable) and
have had no luck. We have a very basic setup. Windows Server 2003, IIS 6.0,
DefaultAppPool only and basic ASP and ASPX pages. Network Service is the
Identity for the App Pool. We can toggle the identity of the app pool to
Local Service and most folks get into the sites fine but a lot of them are
getting a login popup. This is a VM machine and not being used as a Domain
Controller. Event logs all show the same that the App Pool is shutting down
unexpectedly. Any one have anything we can look at? Tag: SMTP Server Tag: 402105
Load Balancing IIS with Xeon E5310 CPU
Can someone point me in the right direction on how to setup and load
balance multiple IIS 6 servers on a single hardware server that is
running with a multi-processor CPU?
I have a DELL 1900 PowerEdge Server running Windows Small Business
Server 2003 with IIS 6. The DELL server has a Xeon E5310 processor
that appears as 4 seperate processors windows SBS 2003. I want to
create four IIS instances on this machine, with one acting as a load
balancing server to the other three. Each IIS instance should be set
to run a maximum of one process. My goal is to increase the thruput
for website requests; I want to create something like a web farm
inside of a single hardware server.
Any suggestions would be appreciated, Andy Tag: SMTP Server Tag: 402092
Bank of Sweden Treasury - Strategic Infrastructure Plan
Network & Multilevel Marketing - Mutual Pension
Mutual Assets - Washington, Brussels, Tokyo and London constructive
center
Global Institutional Fund Analytics - Pension Assets Prognostic (MLM).
CWM WORLDWIDE - Principal Assets Prognostication Ascribe. A
Certificate means of the Directors opinion that, having made due and
careful enquiry, the working capital available to the Company will be
sufficient for its present requirements, that is for a coming to the
date of Admission right to the consolidated audited accounts
prepared. The financial information set out does not constitute
statutory
accounts of the Company within the meaning of section 240 of the Act.
As a company incorporated in Guernsey, it has not been required to
prepare audited accounts for the relevant period and such has not
delivered statutory financial statements to the Register of Companies
in Guernsey. The financial information in this document is based on
the un-audited financial statements of the Company. A company is not
required to withhold tax at source from its dividend payments.
Individual pro-share-holders should generally be entitled to a tax
credit in respect of any dividend received equal to one-ninth of the
dividend. Liability to income tax is calculated on the aggregate of
the dividend and tax credit which will be regarded as the top slice
of the individual's income. Individual pro-share-holders liable to
tax
at the starting rate (10 per cent.) or basic rate (22 per cent.) will
have no further liability to income tax. The tax credit satisfies the
whole of the starting and basic rate liability. Individuals liable to
tax at the higher rate (40 per cent.) are subject to income tax at
the rate of 32.5 per cent. on the aggregate of the dividend and tax
credit. After taking account of the tax credit, the pro-share-holder
will be liable to income tax at the rate of 32.5 per cent. of the
aggregate of the dividend and tax credit, equal to 25 per cent, of
the dividend. A corporate pro-share-holder will not normally be liable
to
corporation tax on any dividend received. With limited exceptions
(relating to charities) corporate shareholders cannot claim repayment
of the tax credit. Tax-exempt pension funds will not normally be
liable to corporation tax or income tax on any dividend received and
cannot claim repayment of the tax credit. Individual shareholders who
are resident for tax purposes in countries other than the United
Kingdom but who are Commonwealth citizens, nationals of states which
are part of the European Union, residents of the Isle of Man or the
Channel Islands as well as certain other persons, are entitled to a
tax credit in the United Kingdom as if they were resident for tax
purposes in the United Kingdom. Such pro-share-holders will normally
not be able to claim repayment of the tax credit.
Individual Pension Claim - Legitimate Claim
Article 4(1) of Directive 79/7 was sufficiently precise to be relied
upon by a party in proceedings before a national court for the
purpose of persuading that court to invalidate any provision of
national law
which infringed the said article. The principle of equal treatment is
'without prejudice to the provisions relating to the protection of
women on the grounds of maternity' (Article4(2)). These provisions
are likely to be interpreted according to the same principles as apply
to
Article 2(3) of Directive 76/207. Article 7 expressly allows member
States to exclude certain matters from the scope of the equal
treatment principle. These are: (a) the determination of pension able
age for the
purpose of old-age and retirement pensions and possible consequences
thereof for
other benefits; (b) benefits or entitlements granted to persons who
have
brought up children; (c) wives' derived old-age or invalidity
benefits, and (d) increases granted in respect of dependent wives
related to long-term invalidity, old-age, accidents at work and
occupational disease benefits.
Finally, CWM WORLDWIDE - Principal Assets Prognostication Ascribe
gains great strength from its strategic partnership with the Global
Pension Plan family and other organizations that offer specific
economic governance policy services. In every region, CWM WORLDWIDE -
Principal Assets Prognostication Ascribe faces a growing number of
requests for policy, technical and programme advice in support of
strengthening economic and democratic governance.
OPTIONS CONSIDERED: Global Pension Plan
website: http://www.globalpp.net/?id=cwmtrader
CWM WORLDWIDE: Casheasier Chargecard
website: http://casheasier.blogspot.com Tag: SMTP Server Tag: 402091
Request.ClientCerficate
Hi
I have a problem with Request.ClientCerficate
IIS 6. ASP solution,Win2003R2
Whe i call Request.ClientCerficate it does to nothing.
All settings , certifcates aso. are OK. because on another server same
solution works perfectly!
No errors, nothing., it just does not work.
Any ideas?
Best regards;
Meelis Tag: SMTP Server Tag: 402090
Time out when loading a VB.NET 1.1 Web Project
Hi,
I am having a problem when loading a VB.NET 1.1 project on my machine. When
VS attempts to load the project as part of the solution, it produces the
following error message... "The Web server reported tha following error when
attempting to create or open the Web Project located at the following URL:
'http://localhost/****.' 'The operation timed out'.
We are running a VM instance of Windows Server 2003, Visual Studio 2003
(with SP1), and IIS 6.0.
There have been a couple of instances where the project has loaded, however
when reloading the solution it will fail again. I'm 99% sure this is an IIS
issue not VS, hence why I have posted in here.
Thanks for the help. Tag: SMTP Server Tag: 402087
Login prompt appears on web site
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C877F0.BC4230D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have built and deployed a web site using Frontpage 2003. The website =
has 2 webcams on it. I have setup the webcams to FTP a jpeg file to the =
web server every 10 seconds. The picture is placed in subdirectory off =
from WWWRoot. I am using a java applet to refresh the picture every 10 =
seconds when the page is being viewed. Everything works like you would =
expect it to until people start getting a login prompt when they call =
the page with the webcam up.=20
So far to fix this I have logged into the server and using IIS repaired =
all the security attributes on the web site.=20
I would like to understand why this is happening and what I can do to =
fix it.=20
Anyone have any ideas as to the cause? The fix?
---
Ron Harter | Tongue, Tied and Twisted
rdharter@comcast.net | Just An Earth Bound Misfit ... I
| Pink Floyd
------=_NextPart_000_000C_01C877F0.BC4230D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3Diso-8859-1>
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR></HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"=20
bgColor=3D#ffffff leftMargin=3D0 topMargin=3D0 CanvasTabStop=3D"true"=20
name=3D"Compose message area">
<DIV><FONT face=3DArial size=3D2>I have built and deployed a web site =
using=20
Frontpage 2003. The website has 2 webcams on it. I have setup the =
webcams to=20
FTP a jpeg file to the web server every 10 seconds. The =
picture is=20
placed in subdirectory off from WWWRoot. I am using a java applet =
to=20
refresh the picture every 10 seconds when the page is being viewed. =
Everything=20
works like you would expect it to until people start getting a login =
prompt when=20
they call the page with the webcam up. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> So far to fix this I have logged =
into the=20
server and using IIS repaired all the security attributes on the web =
site.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I would like to understand why this is =
happening=20
and what I can do to fix it. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anyone have any ideas as to the cause? =
The=20
fix?</DIV>
<DIV><BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>---<BR>Ron=20
Harter &=
nbsp; =20
| Tongue, Tied and Twisted<BR><A=20
title=3D"mailto:rdharter@comcast.net CTRL + Click to follow link"=20
href=3D"mailto:rdharter@comcast.net">rdharter@comcast.net</A> =
| =20
Just An Earth Bound Misfit ...=20
I<BR> &n=
bsp; &nb=
sp; | &nb=
sp; &nbs=
p; =20
Pink Floyd</FONT></DIV></BODY></HTML>
------=_NextPart_000_000C_01C877F0.BC4230D0-- Tag: SMTP Server Tag: 402074
IIS dynamic domains
Hi to all,
I would like to know how to configure the hosts file (if its possible) or
IIS headers, to have all the subdomains of a domain, pointing to the same
application.
I try to use the wildcard * in the hosts file but the meaning of the
wildcard in the hosts file is literal.
Could you help me with this problem?
Thanks a lot.
Kind Regards.
Josema. Tag: SMTP Server Tag: 402073
REMOTE_ADDR and Windows Vista
Hi all,
I am using the GetServerVariable( ) function (EXTENSION_CONTROL_LOCK
structure) and the parameter 'variable name' with value = "REMOTE_ADDR" in
my ISAPI extension DLL. When I am running my ISAPI extension on Win XP the
returned value from client is correct (e.g: 192.168.0.1). But when I run it
on Win Vista (IPv6 enabled) the returned value is "::1". Anyone knows why ?
How can I get the correct value ?
Best Regards,
Luis F.
(Indusoft Team) Tag: SMTP Server Tag: 402071
https timeout with 32 kbps bandwith
With my old Windows 2000 Server, the IIS5 application work fine (IIS5, http,
the same certificate and the same bandwith 32 kbps)
Now, I Installed new Windows 2003 Server with the same app, certificate and
bandwith.
With 32 kbps the access not working with "http timeout".
but If I use 64 kbps work OK!
thank you for help, comments or information. Tag: SMTP Server Tag: 402069
I: Changing "internet" user
Dear ALL,
I have two win 2003 std servers, and the web servercis are on the first one,
the other one is for backup purpose only.
I periodically copy whole web data from master to slave, perrmission too,
but if I try to startup web services on the slave an error occours, because
internet user is different from master to slave.
How can I fix this important issue? Is it possible to edit permissions in
order to forse master's internet user?
Regards
Alberto Brivio Tag: SMTP Server Tag: 402066
IIS is returning back computer hostname instead of public domain
Hello.-
I have a Windows 2003 Server with IIS 6.0 on it hosting a site
developed in asp that works internally; I also have a public domain
name Ex. mydomain.com pointing to the server. What is happening is
that when I use externally mydomain.com/application, it prompts me for
my server login and password as it does internally but then I received
an error "the page cannot be displayed" but also when I get the error
I noticed that my URL changes from mydomain.com/application to
myservername/application.
I believe my site is not displaying because IIS is returning
myservername/application instead of mydomain.com/application. I
believe it does the same thing internally, but works because
internally the DNS can resolved the computer name while outside it
can't.
It might be an easy fix, but is not coming back to me right now.
Any help on this will be really appreciated.
Thanks Tag: SMTP Server Tag: 402061
Isapi filter isn't handling SSL requests
Hello,
I have a simple Isapi filter on IIS6 and IIS7 that redirects requests from
www.domain.com/file.php/key1/val1/key2/val2 to
www.domain.com/file.php?key1=val1&key2=val2.
Everything works perfectly for HTTP requests. However, the filter doesn't
seem to be running on HTTPS requests. I've checked the logs and only the
HTTP requests are getting reformatted. The filter code doesn't reference
"http://" so I think I'm just missing a setting somewhere.
Any ideas? The production machine is IIS6.
Thanks!
Noah Tag: SMTP Server Tag: 402057
IIS7 Svr2008. installed ASP. No icon!
I have a default install of IIS7 to which I added the ASP role service. My
test asp page works but I don't see an ASP icon in the IIS Manager. Do I
need to add something else? I am surprised the page works straight away. I
thought I would have to enable it. Where do I have the control to set Script
or Script & Executables at the folder level?
Thanks
BB Tag: SMTP Server Tag: 402054
question about smtp service
I'd like to know if it is possible using any e-mail address as sender, even
a non-real one. I'd like users of my web site write me only by form on my
site, so I'd want to use a non-real address to answer them.
Is there any check on e-mail address used as sender? Tag: SMTP Server Tag: 402050
SMTP and POP3 Issues
Hello,
I have a serious issue. I am trying to setup Windows 2003 Pop3
service to replace a qmail install that recently failed.
My goal was for pop and smtp via password. So I set for encrypted
password on POP and did the standard relay setings.
The problems are:
1. For some reason the right click to bring up edit does not... so no
abiltity to change passwords.
2. I cannot figure out how to restrict the SMTP server from relaying
and allowing internal users to authenticate and send email. I set
relay on, annon on, and then restricted it based on authentication.
But how do you tell it POP authentication or some such?
This is basically stopping me cosl:( Tag: SMTP Server Tag: 402045
URL too long results in Bad Request (Invalid URL)
I have a site based entirely in .asp - occasionally a link to a page
(URL + query string) will be generated that seems to be too long for
either the browser to display or the web server to serve...
For example, if the address bar has a URL with 375 characters, all you
get is: Bad Request (Invalid URL)
If it has 371 characters, I still get: Bad Request (Invalid URL)
If I cut off a few, so it's 370 characters or less, the page will
display fine. Note that I'm not changing anything else in the line,
I'm just cutting off a few characters (numbers in this case) from the
end.
The real question here, is when I set a custom 400 error, which I
assume is what's producing the: Bad Request (Invalid URL) error to
display - I can't get my custom error page to display, I still get
just: Bad Request (Invalid URL)
Any idea why my custom error isn't working? Tag: SMTP Server Tag: 402042
Is it possible for my local webs to be roots?
Hi
I'm using WinXP with IIS. For development I use a mixture of FP2002 and
Dreamweaver. I would like to be able to use root-relative links, but they
don't work on my local webs, because, for example, if I'm working on the
local web http://localhost/davesweb/, my browser (and Dreamweaver and even
FrontPage) think the web's root is http://localhost/, whereas it is actually
http://localhost/davesweb/, so root-relative links don't work. Is there any
way of getting http://localhost/davesweb/ to be recognised as a root?
Dave Tag: SMTP Server Tag: 402038
Bandwidth benchmark
Hi
we are having .net web based applications, like to prepare the Bandwidth
benchmark for this. pls find the normal process.
Creating / Viewing 1 Request - 48 K (approx.)
Creating/Viewing 1 Stuffing - 37 K (approx.)
Creating/Viewing 1 process 1 - 23 K (approx.)
Creating/Viewing 1 process 2 - 20 K (approx.)
Creating /Viewing 1 process 3 - 33 K (approx.)
Creating /Viewing 1 process 4 - 20 K (approx.)
Document Upload/Viewing - As Per document size.
Any idea? how we can calculate per user bandwidth?
Regards
Gopi Tag: SMTP Server Tag: 402032
IIS can be reached by IP only
We are running IIS 6, with multiple virtual folders eacher with own IP.
We can reach the web server from IP
http://10.0.0.1/DotNetNukum
However when we try and reach it with http://server1/DotNetNukum it cannot
be reached.
I have used nslookup and can resolve the IP to hostname, and vice versa.
The ip address and hostname is accurate mapping.
This is driving me nuts. Can it be IIS, or has anyone else experienced this
and can provide me with some tips ?
thank yo Tag: SMTP Server Tag: 402031
Can iisadmpwd folder be deleted
I have WSUS 3.0 sp1 running on W2k3 sp2. As recommended in a security audit I
want to delete the iisadmpwd folder.
The folder contained the iispwdchg.dll file which I managed to delete by
booting into Safe Mode and deleting it there. Before that I had tried
deleting the file from the dllcache folder before deleting it from the
iisadmpwd folder. I did this with IISAdmin and WWW service both running and
stopped - among other tries - but the file would always reappear as if
taunting me. Safe Mode finally allowed me to delete the file.
I tried to delete the iisadmpwd folder while in safe mode but - although the
folder did delete - it was back when I rebooted.
Handle.exe shows winlogon.exe as the process accessing the iisadmpwd folder.
My understanding is the folder is not needed (except by OWA) and deleting it
in a production environment is recommended.
How do I get rid of this folder?
Thanks Tag: SMTP Server Tag: 402030
Scripted Metabase backup
I've been able to script the backup of the metabase and have it overwrite
the existing file successfully using IISBack. Is there a way to have this
process dump the backup created to a different location other than
Winnt\system32\inetsrv\metaback folder?
I don't want these backup files growing out of control so the overwrite
feature is exactly what I want but the file is not put where I want it.
I was trying to get away from having the batch file delete the contents of
the folder I want the backup in, creating the backup and then copying it to
where I want.
Just trying to KISS
Any ideas?
TIA
DDS Tag: SMTP Server Tag: 402029
running J2EE application on IIS
How do we configure IIS and Apache on the same box. We are running
Apache as a service. Do we need to do a redirect from IIS to Apache?
If so how is that done and do we need an isapi filter? Tag: SMTP Server Tag: 402028
Use SMTP as backup email server
Hi,
What I have:
I have an Exchange server with an internet connection provided by a 4MPBS
leased line. I also have a separate 8 MBPS ADSL line for contingency
purposes. And another thing I have is a spare PC and licenced version of
Windows XP. You can install an SMTP server on XP as part of IIS (as I am
sure you all know).
Now for the problem:
I had an internet outage and my DNS hostmaster doesn't cache email's for you
when connectivity to your network is down. So emails were bounced back to
senders. This is my fault cos I used to have this service with my previous
ISP. I then moved to a super cheap and "easy to manage your own DNS" DNS
hosting company, but they don't cache emails.
Now for the question:
Can I set up a Windows XP machine, install an SMTP server on it, connect it
to this backup ADSL line, and use it as a backup email server? So what I am
hoping is to be able to configure my zone file to have this WinXP SMTP
server as a lower order MX (say, 30) and if my Exchange server isn't
reachable, then it mail will be sent ot the WinXP SMTP server and queued
ther till my Exchange server comes back online, at which point the emails
will be forarded on. Can I do this?
TIA,
Jarryd Tag: SMTP Server Tag: 402023
Why won't IE won't cache compressed responses?
Can anyone explain why a browser _shouldn't_ cache compressed files?
Can we change this from the IIS side?
I've read (vaguely) that IE won't cache compressed responses and I
have also witnessed this behaviour with xsl files which are defined as
static cache files in the metabase. Why is this double (network)
performance boost not allowed?
The file is in the browser cache (temporary internet files) but
fiddler shows that IE requests the file again and again and the
timestamp (Last Checked) is always updated.
The response header is:
HTTP/1.1 200 OK
Cache-Control: max-age=2419200
Content-Length: 393
Content-Type: text/xml
Content-Encoding: gzip
Last-Modified: Thu, 15 Dec 2005 12:20:47 GMT
Accept-Ranges: bytes
ETag: "80795dfa711c61:425"
Vary: Accept-Encoding
Server: Microsoft-IIS/6.0
WWW-Authenticate: Negotiate
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/
deflate"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="FALSE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
css
html
vbi
js
xsl"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
dll
exe"
>
<IIsCompressionSchemes Location ="/LM/W3SVC/Filters/Compression/
Parameters"
HcCacheControlHeader="max-age=86400"
HcCompressionBufferSize="8192"
HcCompressionDirectory="%windir%\IIS Temporary Compressed Files"
HcDoDiskSpaceLimiting="TRUE"
HcDoDynamicCompression="FALSE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
HcFilesDeletedPerDiskFree="256"
HcIoBufferSize="8192"
HcMaxDiskSpaceUsage="524288000"
HcMaxQueueLength="1000"
HcMinFileSizeForComp="1"
HcNoCompressionForHttp10="TRUE"
HcNoCompressionForProxies="TRUE"
HcNoCompressionForRange="FALSE"
HcSendCacheHeaders="FALSE"
> Tag: SMTP Server Tag: 402022
A deployed web aspx page does not display response over the internet
Hello all,
please I need help with an a web app that I
am developing.
The application was deployed our server in my country
and it was accessible over the internet from our clients.
Later due to QOS issues, we decided to host the app
on our dedicated server in the UK.
I re-deployed the app on the server via remote access means and
tested it out on the local machine using the hostname "localhost".
It worked but anytime I try to access it from over the internet from
another machine in
a different geographical location, the default.aspx page works,
displaying its content but the
main page (waspprovider.aspx) that sends data from the database as a
HttpResponse object,
doesn't display anything but the page gets hit.
The contents of the working Default.aspx page is as follows:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Welcome to Visafone web content provision web application.</
div>
</form>
</body>
</html>
The content of the waspprovider.aspx.cs page is as follows:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System .Collections.Generic ;
using System.Data.SqlClient;
using A3MessageProcessing;
using A3MessageTransaction;
//using Guinnesspromo;
public partial class Rawurl : System.Web.UI.Page
{
private string _shortcode =
System.Configuration.ConfigurationManager.AppSettings["shortcode"],
_username =
System.Configuration.ConfigurationManager.AppSettings["username"] ,
_password =
System.Configuration.ConfigurationManager.AppSettings["password"],
_port =
System.Configuration.ConfigurationManager.AppSettings["port"],
servicename = null ;
public string shortcode
{
get { return _shortcode; }
}
public string username
{
get { return _username; }
}
public string password
{
get { return _password; }
}
public string port
{
get { return _port; }
}
string responseString = null ;
protected void Page_Load(object sender, EventArgs e)
{
try
{
Page.Title = "";
TransactionInfo tif = new TransactionInfo();
responseString = "Thank you... [Iconcepts TECH.]";
//if (Page.Request.RawUrl.Contains("sms_src_addr=") &&
Page.Request.RawUrl.Contains("sms_dest_addr=") &&
Page.Request.RawUrl.Contains("sms_text="))
if (Page.Request.RawUrl.Contains("sms_src_addr=") &&
Page.Request.RawUrl.Contains("sms_text="))
{
NameValueCollection queryString =
Page.Request.QueryString;
// from here ...
if (Page.Request.RawUrl.Contains("username="+username ) &&
Page.Request.RawUrl.Contains("password="+password))
{
//string gsm = getQueryStringValue("sms_dest_addr",
queryString).Trim();
string gsm = "xxxxx;//Hard code the sms_dest_addr
specifically for visafone/UCIas they requested not to see that
querystring.
if (gsm == shortcode)
{
// Correct format analysis
tif.m_shortCode = gsm;
tif.m_msisdn = getQueryStringValue("sms_src_addr",
queryString);
//tif.m_destAddressIn =
getQueryStringValue("sms_dest_addr", queryString);
tif.m_destAddressIn = gsm;
tif.m_bodyIn = getQueryStringValue("sms_text",
queryString);
string mid = getQueryStringValue("sms_id",
queryString);
tif.m_dateIn = DateTime.Now.ToString("dd-MM-yyyy
HH:mm:ss");
//tif.m_destAddressIn = gsm; This line is a
repetition and duplication of effort. Consider deleting this line.
//bool toGlo = SendGLOMessage(tif, mid, out
responseString);
tif.m_operatorID = OperatorID.Globacom;//This was
left till the creation of a Visafone element in the Enum. Doesn't
cause any problems.
try
{
TransactionInfoProcessor smsobject = null;
smsobject = new Iconceptservices();
if (smsobject != null)
smsobject.processTransactionInfo(tif);
// tif.m_bodyOut = "Thank you for
playing ...";
bool bl = LogToDatabase(tif);
}
catch (Exception er)
{
}
responseString = tif.m_bodyOut;
}
else
{
responseString = "Invalid Login Credentials! [" +
DateTime.Now.ToString() + "Iconcepts";
}
}
else
{
responseString = "Wrong msg format. Port is still
alive! [" + DateTime.Now.ToString() + "Iconcepts";
}
}
//Make sure the response string length is not greater than
160.
if (responseString.Length > 160)
{
responseString = responseString.Substring(0,
160);
}
//Trying to implement
// Obtain a response object
HttpResponse httpresponse = Page.Response;
byte[] buffer = Encoding.UTF8.GetBytes(responseString);
// Get a response stream and write the response to it
// httpresponse.ContentLength64 = buffer.Length;
httpresponse.ContentType = "text/plain";
//Trying to implement returning error 404 if there is no
content
if (responseString.StartsWith("no content for the day"))
{
httpresponse.StatusCode = 404; httpresponse.Status =
"404 Not Found";
httpresponse.OutputStream.Write(buffer, 0,
buffer.Length);
httpresponse.Flush(); httpresponse.Close();
}
else//everything is ok here.i.e content is returned and
client billed.
{
httpresponse.OutputStream.Write(buffer, 0,
buffer.Length);
httpresponse.Flush(); httpresponse.Close();
}
}
catch (Exception exception)
{
//Console.WriteLine(exception.Message);
//Console.WriteLine(exception.StackTrace);
}
finally
{
// do neccessary task here ...
}
return;
}
private static String getQueryStringValue(String keyName,
NameValueCollection queryString)
{
String keyValue = null;
// Get each header and display each value
foreach (String key in queryString.AllKeys)
{
if (keyName.ToLower().CompareTo(key.ToLower()) == 0)
{
keyValue = queryString[key];
}
}
return keyValue;
}
// logging sms messages to mg_transaction_log for persistent
reference ...
private static bool LogToDatabase(TransactionInfo tif)
{
Dictionary<string, Procedure_Values> dictionary = new
Dictionary<string, Procedure_Values>();
Procedure_Values procedure = null;
procedure = new Procedure_Values();
SqlParameter operatorID = null;
procedure.pname = "operatorID";
procedure.sqlparameter = operatorID;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = "VISAFONE";
procedure.size = 25;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter msisdn = null;
procedure.pname = "msisdn";
procedure.sqlparameter = msisdn;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = tif.m_msisdn;
procedure.size = 15;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter shortcode = null;
procedure.pname = "shortcode";
procedure.sqlparameter = shortcode;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = tif.m_shortCode;
procedure.size = 50;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter servicename = null;
procedure.pname = "servicename";
procedure.sqlparameter = servicename;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = tif.m_idOut;
procedure.size = 15;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter log_date = null;
procedure.pname = "log_date";
procedure.sqlparameter = log_date;
procedure.sqldbtype = SqlDbType.DateTime;
procedure.dvalue = DateTime.Now;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter message_body_in = null;
procedure.pname = "message_body_in";
procedure.sqlparameter = message_body_in;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = tif.m_bodyIn;
procedure.size = 160;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter message_body_out = null;
procedure.pname = "message_body_out";
procedure.sqlparameter = message_body_out;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = tif.m_bodyOut;
procedure.size = 160;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
procedure = new Procedure_Values();
SqlParameter guid = null;
procedure.pname = "guid";
procedure.sqlparameter = guid;
procedure.sqldbtype = SqlDbType.VarChar;
procedure.svalue = "visafonehttp" + DateTime .Now .ToString
("yyyy-MM-dd-hh:mm:ssss");
procedure.size = 75;
procedure.direction = ParameterDirection.Input;
dictionary.Add(procedure.pname, procedure);
ProcedureHandler prchandler = new ProcedureHandler();
string sconnect =
System.Configuration.ConfigurationManager.AppSettings["localConn"];
// prchandler.connectionstring = sconnect;
if (!(prchandler.proceduredetails("prctransactionlog",
dictionary)))
return false;
else if (tif.m_bodyOut.Trim() == "message unprocessed")
return false;
else
return true;
}
}
Thanks in advance for any help.
Regards,
Chike. Tag: SMTP Server Tag: 402018
Httperr.log: xxx_Connections_Refused
On Windows Server 2003:
I implement an ISAPI extension which proxy's http-Request from an Internet
browser to our application backend. It works fine under low but breaks under
"heavy" load.
To verify this I started 100 clients from one Server (one IP-Address). Each
one creates one request per 10 seconds. These clients run well for 8 hours.
After 8 hours all clients receive errorcode 12031 from the IIS. There is no
obvious reason for this: nothing changes in the infrastructure.
IIS now logs a lot of the following lines:
2008-02-22 11:00:41 - - - - - - - - - 124_Connections_Refused -
2008-02-22 11:00:46 - - - - - - - - - 130_Connections_Refused -
2008-02-22 11:01:21 - - - - - - - - - 125_Connections_Refused -
... more of this to follow, repeated until now
The client -accidently, I will change this to 10 retries- keeps firing
connection requests: probably all together 120 per 5 seconds.
But why does IIS reject it. I cannot make any connection to port 80 on the
IIS. Is this to a kind of DOS defense?
Thank you for your help. Tag: SMTP Server Tag: 402016
Install HTTP.sys
Hello,
I am trying to do a manual installation of IIS6. I have figured that I
need to start the http driver. When I do net start http it gives me an
error saying The service name is invalid. The same happens when I try
to start HTTPFilter service. Since I cannot start HTTP I cannot get
any of IIS6 services to start working. How do I troubleshoot this. I
have verified that there are correct eys present under Services\HTTP
key. Please advice.
Thanks,
Deena Tag: SMTP Server Tag: 402015
?? Mixed mode Authentification ??
I am developing a web application using Visual Studio 2008. The Web server
is Window 2005 v5.00.2195 Service Pack 4. I am using Windows Authentication
with impersonation set to TRUE. This works fine for the majority of the
users, but some of this information is "public". But on our corporate
network their are a few workstations that are not domain authenticated. I
would like for those users to connect via a low priviledged read-only common
account, with out the users having to login.
Is there are way to use Windows Authentication for domain users and
"anonymous" for users not logged in. Tag: SMTP Server Tag: 402011
Not all AppPools fire events on recycle. Why?
We have few app pools set up and we wanted to configure them so that they all
fire events when recycled. I can not figure out why some of them fire these
events and why some don't. I even looked at the metadata file directly trying
to figure out what's different about those, which fire events and those which
don't.
Below is output of 'adsutil enum w3svc/AppPools' command:
KeyType : (STRING) "IIsApplicationPools"
PeriodicRestartTime : (INTEGER) 1740
PeriodicRestartRequests : (INTEGER) 0
MaxProcesses : (INTEGER) 1
PingingEnabled : (BOOLEAN) True
IdleTimeout : (INTEGER) 20
RapidFailProtection : (BOOLEAN) True
SMPAffinitized : (BOOLEAN) False
SMPProcessorAffinityMask : (INTEGER) 4294967295
StartupTimeLimit : (INTEGER) 90
ShutdownTimeLimit : (INTEGER) 90
PingInterval : (INTEGER) 30
PingResponseTime : (INTEGER) 90
DisallowOverlappingRotation : (BOOLEAN) False
DisallowRotationOnConfigChange : (BOOLEAN) False
OrphanWorkerProcess : (BOOLEAN) False
AppPoolQueueLength : (INTEGER) 1000
CPULimit : (INTEGER) 0
CPUResetInterval : (INTEGER) 5
AppPoolIdentityType : (INTEGER) 2
PeriodicRestartMemory : (INTEGER) 0
PeriodicRestartPrivateMemory : (INTEGER) 0
RapidFailProtectionInterval : (INTEGER) 5
RapidFailProtectionMaxCrashes : (INTEGER) 5
LoadBalancerCapabilities : (INTEGER) 2
LogEventOnRecycle : (INTEGER) 255
AppPoolRecycleTime : (BOOLEAN) True
AppPoolRecycleRequests : (BOOLEAN) True
AppPoolRecycleSchedule : (BOOLEAN) True
AppPoolRecycleMemory : (BOOLEAN) True
AppPoolRecycleIsapiUnhealthy : (BOOLEAN) True
AppPoolRecycleOnDemand : (BOOLEAN) True
AppPoolRecycleConfigChange : (BOOLEAN) True
AppPoolRecyclePrivateMemory : (BOOLEAN) True Tag: SMTP Server Tag: 402010
Websites not working
I am trying to host two websites. I have "all unassigned" for the ip
address, no header value for both and port 80 for both. One of them
can start, although it does not get on the internet, and the other one
tells me I am using the same port 80 configured for the other one.
Aren't I supposed to use port 80 for both of the websites? BTW my port
80 is open.
Would appreciate help on that. Tag: SMTP Server Tag: 402009
Web Page Won't Open
I am running IE7 and cannot get a webpage to open. I get the usual message,
IE cannot open this page. Check blah, blah. I have checked everything in
the help files, I have contacted my ISP tech support, which basically had me
doing the things I had already done. It is not a secure site, so I just
understand why it will not open. Hell, I even downloaded Firefox and that
didn't work. I have had other people try it and they have no problem. If
someone has an answer, I would greatly appreciate it. Thanks in advance!! Tag: SMTP Server Tag: 402004
How many websites on IIs 6.0 on XP Pro 64?
Hi -
I am trying to do some testing on a CMS that a client is considering
using. In order to test it I need to create a new website in
IIS...When I right-click on "Web Sites" in IIS manager I do not get
the New>Web Site in the menu, so obviously I cannot get to the Web
Site Creation Wizard. I believe this is because IIS is limiting me to
one web site, but I had thought that XP Pro x64 did not have this
limitation. I should note that up until now I create new directories
in the inetpub/wwwroot to do web testing, but for this CMS I seem to
need to create a new site entirely.
Any help with this would be greatly appreciated. Obviously I am not an
IIS pro.
TIA,
Paul
System: MS Windows XP
Professional x64 Edition
Version 2003
Service Pack 2
AMD Athlon 64 X2 Dual-core 5600+
6 GB RAM Tag: SMTP Server Tag: 401982
Subdomains not showing on server itself?
Simple problem - I have two domains at the moment:
domain.org and ns.domain.org
The problem is that on the server it runs on (Win 2003 64bit R2 standard) -
if I open a browser on it and type in ns.domain.org it gives me a 404,
whereas on any other computer on the Network or internet it is found just
fine. The domain.org domain IS seen correctly, even though that too is a
seperate website (and not Default Web Site)
The server runs DNS server but is not a DNS for the rest of my network,
which uses the modem/router instead (the server is a bit of a test case, it
also a domain controller and Exchange machine but not really used as such
yet)
Many thanks for help :)
W Tag: SMTP Server Tag: 401981
IIS documentation not showing Contents in the navigation control
I installed IIS 5.1 under Windows XP SP2. The installation occurred
without a hitch. When I go to the documentation through the http address
of http://localhost/iisHelp/iis/misc/default.asp I see the screen but in
the Navigation control on the left hand side the Contents and Index tabs
are both empty. This is on IE 7. Is there a way to fix the problem ? Tag: SMTP Server Tag: 401978
Random 500 Errors - IIS 6, Server 2003, Access 2000, ASP
Hello all,
I have received lately a couple calls a week stating that an asp page on my
website has not been working properly.
They get the following:
The website cannot display the page, HTTP 500, most likely causes: The
website is under maintenance or the website has a programming error.
This page has a submit command and collects information, inserts into an
access database and passes it to another page where they can print the
information off.
There are no errors in the event viewer when this happens, I have downloaded
and installed LogParser 2.2 and have pulled up the 500 errors, but it
doesn't tell me why I am having them. Is there any other way to capture
these errors and tell me what is happening? I didn't have Win32 Status
checked in IIS logs, I do now.
I can go to the website and go to the page that is giving an error and can
never re-create it on the 5 machines that I use to test. It never happens
to me.
Any suggestions to tell me how I can find out why this is happening?
Thanks Tag: SMTP Server Tag: 401977
32 and 64 bit processes on 64bit 2003 R2 also running Exchange 2007
Hello,
I have a rather annoying problem that I cant seem to work out properly. It
appears the setup I am trying to build is a bit peculiar, although I dont
think SO rare no one would know what to do. So here goes...
I am running Win 2003 R2 Standard Edition 64bit wit Exchange 2007 on it. I
also want to use the machine as a webserver (lightly) mostly to run a small
website on, as well as some demos. Some of these demos use 32bit ActiveX
components like ABC PDF and jMail (although ideally I would use CDO, but it
appears Exchange makes this impossible)
Now - I know how to switch between 32 bit and 64 bit ASP, and this works OK
except........
The moment I switch to 32 bit, the domain becomes unavailable. The main
domain is completely lost, and any subdomain (sub.domain.com, running as a
seperate website in IIS) only works from other machines and not on the
server itself (again, I just get Page Not Found)
I have fully completed all steps outlined here:
http://support.microsoft.com/?id=894435 and only switching back to 64bit
makes the domains available again (although sub.domain.com still can not be
seen on a browser on the server itself, but that I can live with - not ideal
but possible)
Now - my GUESS here is that since Exchange is fully 64bit and has various
www-based stuff running under "Default Website", switching to 32bit makes
all that go bananas and thus something stops working. From what I read, you
can not run 32bit and 64bit together, and so I am pondering this:
1) If I make a SECOND application pool, and put every site except Default
Website under it, would that fix it? Can one application pool be 64bit,
other 32bit? If I look at the possible settings, I am thinking NO :( but
perhaps I overlooked something
2) For the fun of it, I have enabled "Outlook Anywhere" in Exchange 2007 -
if I disable it, do you reckon it will "free" the "default website" and thus
make 32bit cool to be used?
3) Am I completely bonkers and is it actually the color of the server case
that causes it?! ;)
Any advise very welcome. At this stage, unless there is a solution possible,
I am thinking of running Virtual Server instead and run all web-stuff on a
32-bit Virtual machine. This would have some benefits but the machine is not
ideal for that setup (Dual Xeon 3.2/1M with 8GB). I have a Dual Quadcore
sitting idle too but would prefer to run it under Server 2008 when it comes
out.
Many thanks
WD Tag: SMTP Server Tag: 401975
ISAPI filter and App-Domain error
I have an odd error with an ISAPI filter.
I have a complex web application installed on IIS 6.0 on W2K3 SP1. The web
site uses a mix of NET 1.1 and 2.0. Each component operates a separate
virtual directory, and its own application pool. This has worked fine for a
long time.
I had to reinstall one of the application components. Since then I have had
two errors:
- A DCOM error that the network service is unable to run a CLSID that
appears to be MSIServer. I also have a windows installer error saying 1015
error failed to connect to server. I am assuming this is one single error. I
don't know why the network service (the app id) would be trying to run or
repair an installation, but I guess it has something to do with the NET
framework
- My NET 2.0 components all fail with a browser error, server unavailable,
and on the web server an error 1088 Failed to execute request because the
App-Domain could not be created. This error goes if I downgrade the
components to run as NET 1.1, but then of course the code can't execute.
The curious thing is that the web application (which runs as NET 1.1) has an
ISAPI filter running on the site. If I remove the filter, error no.2 goes
away and the site functions normally. Error no.1 remains, but does not
appear to affect the functioning of the site.
So re-installing an existing components seems to cause two new errors; and
an ISAPI filter that has previously existed seems to cause the NET 2.0
components to fail entirely.
I have re-installed both NET frameworks but that does not help.
Any ideas what the problem could be or how to fix it?
Thanks,
Anthony Tag: SMTP Server Tag: 401973
Setting Up Re-direction on IIS
I have a stand-alone Exchange 2003 server. I have IIS configured for OWA and
ports 80 and 443 on the router are set to forward to this server. Works
great.
I now want to setup a separate Sharepoint 3.0 server and have sharepoint
also accessible from the internet. I have read that I can re-direct traffic
intended for the SharePoint 3.0 server from the Exchange 2003 Server.
Any direction will help. Tag: SMTP Server Tag: 401971
Server specific settings in web.config / Nested Comments in web.co
I'm trying to configure a web.config that has different settings on different
servers. (Staging versus live.)
My research indicated that there might be "site" and "machine" tags in
web.config that did this. Unfortunately they are not recognised by Visual
Studio 2008. (And neither is there an obvious alternative.) I did get a
message that it was possible but the poster didn't reply when I asked exactly
how it was done.
So I've written off that approach and am using comments to do half a job for
this.
Unfortunately comments in xml can't be nested so I tested the <![IGNORE[
directive which is part of XML. It allows nested comments but unfortunately
IIS 6 barfs when it sees it and crashes the web site!!
Is there a way to do this?
(NOTE: I have recently moved away from custom config handlers and am trying
the "out of the box" functionality, so I'm not asking about answers that
involve writing my own handlers!)
(Side note: I've found it impossible to post to these newsgroups via the
web interface for several weeks using IE. I'm currently using Firefox which
after multiple complaints about not finding cpmsftibpro01.dns.microsoft.com,
seems to have got through. Anyone got insight on what's failing?) Tag: SMTP Server Tag: 401965
Controlling how absolute paths are evaluated in ASP applications
hi,
I have an ASP website at:
http://www.mysite.com
I want to have a subsite off the main site like so:
http://www.mysite.com/subsite
Within the subsite, I have a page:
http://www.mysite.com/subsite/index.asp
Within the page, I have a SSI:
<!-- #include virtual="/includes/myInclude.inc" -->
Is it possible to have the path of that SSI evaluate to:
http://www.mysite.com/subsite/includes/myInclude.inc
Currently, the SSI's path is evaluating to the top level site:
http://www.mysite.com/includes/myInclude.inc
Assigning more IPs is not feasible. Putting all of our includes within
the top level site is also not feasible.
Is there any way to control how absolute paths are evaluated? I'm not
especially familiar with IIS, any help would be appreciated!
Regards,
Chris Tag: SMTP Server Tag: 401958
adding virutal directory on another machine
Running IIS6 on server 2003 machine trying to add a virtual directory to
another machine in my office to display a web page they have. I can
connect to the machine but when I try to add the path the okay is greyed
out. I know I am doing something wrong but I was wondering if someone may
know. The other machine is an XP machine. Tag: SMTP Server Tag: 401957
SSL Hanging
Just installed a certificate and wanting to get https up and running in IIS.
Pretty sure everything is set up correctly, but the connection just seems to
hang.
Running SSLDiag gives the following error:
#WARNING:CertVerifyCertificateChainPolicy returned
error -2146762487(0x800b0109)
If I attempt handshake I get the following:
#WARNING:Handshake: error 0x274c (10060) receiving data
#WARNING:Handshake: 0x80090304 (-2146893052) error
I have checked that permission are correct on:
C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys
SSL Port is set to 443 and sspifilt is running.
I would hate to have to reinstall IIS because it will be a major pain to
recreate IUSR permission on all the websites on the server.
Are there any other options I can try? Tag: SMTP Server Tag: 401955
I enabled IIS SMTP server and the server is connected on a ADSL...
Do I need to do something else to send emails through the server?