Disable Automatic Password Synchronization in IIS 6.0
I need from an anonymous asp page under IIS6.0 to access a network resources
file.
After investigation, I found that is not permit by design, but it may be
possible if
You Disable Automatic Password Synchronization in IIS 6.0.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q207671
I cannot find this setting in IIS6.0.
Of course if the Q207671 is not applicable to IIS6.0, can you point me to
the correct article?
Thanks in advance Tag: Additional Help for SSL on IIS 6.0? Tag: 360746
w3wp.exe identification
Hi,
If I have 5 application pools and 5 w3wp.exe processes how to identify which
app pool uses which w3wp process?
best regards
Przemo Tag: Additional Help for SSL on IIS 6.0? Tag: 360742
HTTP_URL different under IIS6 (vs. IIS5)
yesterday I discovered that a number of scripts on our site have been
relying on
Request.ServerVariables("HTTP_URL")
to deliver the server-relative URL requested, *even* when this results
in a 404-Error. (this has been convenient in a number of cases.)
apparently this doesn't change when the request is successful, but it
appears that after a 404-Error (which we handle with our own script)
the value of this server variable under IIS6 is now, e.g.
404;http://hostname/URL
(where we used to get just
/URL
i can work around this problem (and to some extent having this clue is
useful) but I thought I would check whether this behavior has
officially changed. (other sites, like ours, are likely to upgrade or
migrate from IIS5 to IIS6 in the coming months or years.)
cheers,
Tim Hanson Tag: Additional Help for SSL on IIS 6.0? Tag: 360741
Creating Virtual Directories using DirectoryEntry - HRESULT: 0x8000500F
Hello,
The following C# method (taken from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/f55859db-6d44-46f3-ab25-751a23629f4a.asp)
successfully creates a virtual directory at a specific location.
static void CreateVDir(string metabasePath, string vDirName, string
physicalPath)
{
// metabasePath is of the form
"IIS://<servername>/<service>/<siteID>/Root[/<vdir>]"
// for example "IIS://localhost/W3SVC/1/Root"
// vDirName is of the form "<name>", for example, "MyNewVDir"
// physicalPath is of the form "<drive>:\<path>", for example,
"C:\Inetpub\Wwwroot"
Console.WriteLine("\nCreating virtual directory {0}/{1}, mapping
the Root application to {2}:",
metabasePath, vDirName, physicalPath);
try
{
DirectoryEntry site = new DirectoryEntry(metabasePath);
string className = site.SchemaClassName.ToString();
if ((className.EndsWith("Server")) ||
(className.EndsWith("VirtualDir")))
{
DirectoryEntries vdirs = site.Children;
DirectoryEntry newVDir = vdirs.Add(vDirName,
"IIsWebVirtualDir");
newVDir.Properties["Path"][0] = physicalPath;
newVDir.Properties["AccessScript"][0] = true;
// These properties are necessary for an application to be
created.
newVDir.Properties["AppFriendlyName"][0] = vDirName;
newVDir.Properties["AppIsolated"][0] = "1";
newVDir.Properties["AppRoot"][0] = "/LM" +
metabasePath.Substring(metabasePath.IndexOf("/", ("IIS://".Length)));
newVDir.CommitChanges();
Console.WriteLine(" Done.");
}
else
Console.WriteLine(" Failed. A virtual directory can only be
created in a site or virtual directory node.");
}
catch (Exception ex)
{
Console.WriteLine("Failed in CreateVDir with the following
exception: \n{0}", ex.Message);
}
}
The limitation is that the virtual directory can only be created under
a Server or VirtualDir object. My IIS has the following structure:
[site]/[vdir]/[subfolder]
Where [site] is an iis site, [vdir] is a virtual directory and
[subfolder] is a folder that resides under the physical folder that is
pointed to by [vdir]. Now, I can successfully create a new virtual
directory under [vdir], but what I want to do is create one under
[subfolder].
I can do this manually within IIS but not programmatically. The
SchemaClassName reported by DirectoryEntry for [subfolder] is
IIsObject, so the above code in it's original form (correctly) falls
to the else branch. If I modify the if statement and attempt to
create the virtual directory under [subfolder] I get a HRESULT:
0x8000500F exception.
According to (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/generic_adsi_error_codes.asp)
this means "E_ADS_SCHEMA_VIOLATION - The attempted action violates the
directory service schema rules".
So, if I can create a virtual directory manually in IIS at this
location, even though the SchemaClassName is not strictly a
VirtualDir, why cant I do it programmatically using DirectoryEntry
methods? Is there a workaround for this? Can I "cast" the
SchemaClassName of IIsObject to IIsWebVirtualDir? Any other hints or
tips?
Thanks in advance,
Steve Tag: Additional Help for SSL on IIS 6.0? Tag: 360738
.exe extension
my computer is running 2003 iis
i found that some extension can not be download at client side
for example .exe or .avi
but they can download .zip
I checked MIME Type, the .exe and .avi listed on mime type
what's wrong Tag: Additional Help for SSL on IIS 6.0? Tag: 360731
Does anyone know server side webdav programming? thanks.
Hi,
I found webdav is very good. I want to develope some code to handle webdav
request. But I could not find any resource about it. Does anyone have
experience about this, please help.
Thanks! Tag: Additional Help for SSL on IIS 6.0? Tag: 360730
IIS 5 HTTP Headers not working - corrupt metabase?
Hi,
We are running IIS 5 on a Windows 2000 SP4 server. We are running several
sites in IIS and they seem to work OK - except it for the HTTP headers
setting. We have set HTTP headers to "Expire Immediately" for certain
sites. However this setting is ignored and when I view the raw HTTP header
settings it returns something like "Cache control: private, max-age=86400"
and the pages are cached by IE.
I have been using explicit HTTP header cache control directives in our ASP
and ASPX pages to stop the pages being cached. This seems to work. However
if I take these away the HTTP header in IIS are ignored and the pages are
cached by IE.
Has anyone had similar problems. Could it be problems in the metabase?
Could the HTTP header setting be being ignored for some reason? Can any
recommend a tool to check this?
Another possible factor is that we have installed a new software firewall on
that server recently (Visnetic firewall). It has a HTTP filter on it.
However it does not seem to be the cause.
Grateful for any info,
Pete Tag: Additional Help for SSL on IIS 6.0? Tag: 360729
Integrated authentication with IIS6
Hi,
Here is what I did to use integrated auth in IIS6:
1. created an application pool
2. changed the application pool's identity to a domain account
3. put the domain account to IIS_WPG group
4. create a virtual directory (test) with a simple test.htm and configure it
to use the above created application pool
5. tested and it works fine
6. changed virtual directory to use integrated authentication only
7. use setspn.exe to do the following:
setspn.exe -A Http/computername domain\account
setspn.exe -A HTTP/computername.domainname domain\account
setspn.exe -R computername
8. restarted the computer
9. try http://computername/test/test.htm test page from different computer -
in my home domain (domain functional level 2003), it works fine BUT in my
work place domain (functional level 2000 native), I would get a NT challenge
popup to ask for username and password, even I enter a correct username and
password I still get "HTTP Error 401.1 - Unauthorized: Access is denied due
to invalid credentials."
Any idea? Thanks very much!!!
Regards,
John Tag: Additional Help for SSL on IIS 6.0? Tag: 360716
IIS 5 Isolation mode
If a server has upgraded from IIS5 to IIS6 and the server is set without the
IIS 5 Isolation mode enabled. Can it be reenabled without any problems to
sites installed?
Thanks. Tag: Additional Help for SSL on IIS 6.0? Tag: 360713
SMTP server to send email to customers
Hi...from time to time we send out the seasonal promotion email to our
existing customers, currently outsource the service, but due to the
cost, we are thinking of bring it in house.
Thinking of set up a saparated SMTP server, in order not to upset our
exchange server/internal network, let me draw a picture of the setups:
1) a new ADSL connection
2) a firewall
3) a separeted subnet behind the new ADSL
4) a stand alone Windows 2003 server with SMTP service enable or IIS
installed, DNS server points to a the ISP's DNS server.
5) an ASP page to send mail batch from our CRM system.
Will this work?
Is there any limitation on how many messages to be in queue at the
same time?
How would I evaluate the speed/amount of the messages being delivered?
How could it not to be labelled as SPAM by other servers?
Do I actually has to set up a separated subnet in the above steps?
What happend if the SMTP server is at the same domain as Exchange?
Will it change the way how Exchange server sending the email now?
A long question, thanks for the patient.
Fshguo. Tag: Additional Help for SSL on IIS 6.0? Tag: 360712
schedule to start web server automatically
Hello,
I would like to make sure my web server gets hit periodically every 1 hours
or so in case aspnet_wp.exe process gets recycled because memory consumption
exceeds the setting limit - it would get relaunched and my code (static)
gets to run again.
I can put this in a batch file and have it scheduled to run:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE"
http://MySite/website/index.aspx
The problem with that approach is that it doesn't return and a new IE window
will be launched and stay up forever until somebody has to manually shuts it
down.
Do you know any other way? Thanks! Tag: Additional Help for SSL on IIS 6.0? Tag: 360707
Display file contents for all extensions
I have a server with a directory that needs to have IIS serve several
files all with varying file extensions. Basically, we need the .*
extensions\ to be able to be requested and served, rather than giving a
404 error. Any ideas on how to do this if we don't know exactly what
filenames will be added? Tag: Additional Help for SSL on IIS 6.0? Tag: 360697
need to view contents of metabase (IIS 5) independent of machine
Has anyone seen a utility program that would display the contents of a
metabase.bin in a readable format when it is not on the machine it was
created on.
We have a machine that was hacked to the point of being non bootable from a
sister agency. The security folks have been able to recover the metabase.bin
from the server, but without its underlying server the normal tools for
looking at the metabase are not working. Tag: Additional Help for SSL on IIS 6.0? Tag: 360694
FTP upload failures on 2003 server-urgent
while uploading 450mb files ftp fails half way through, and I am unable to
continue using ws_ftp. This failure is apparently cvaused by a second FTP
session beginning on another directory on the server. What is the cause of
this interaction, and how do I resolve it?
--
Thanks,
StanD Tag: Additional Help for SSL on IIS 6.0? Tag: 360688
ftp timeout?
Hello,
I'm trying to host a couple rather large files w/ Windows 2003 Server FTP.
I've configured the "timeout" parameter on both the site I'm using, and the
main(default) site for HUGE numbers and I'm still getting timeout errors on
clients.
Can anyone suggest what/where I might be missing something? Tag: Additional Help for SSL on IIS 6.0? Tag: 360686
How to create ns.domainname.com
Hi,
I would like to create my own DNS server for my DomainName.com such as
NS.Domainname.com and NS1.DomainName.com Does any body know how to do this? I
need help.
Thanks Tag: Additional Help for SSL on IIS 6.0? Tag: 360679
iis and dns configuratio behind firewall
I am setting up web servers at a co-location facility. All of the web servers
will be sitting behind a PIX 515 firewall on a private network of 10.10.10.0
addresses. The web servers are currently on the DMZ on our internal network
have multiple IP addresses configured in TCP/IP with the public IP addresses.
Should the new TCP/IP config be setup with private IPs and the sites be
configured with private IPs and let the firewall NAT to the outside?
We are also running primary and secondary DNS for the sites. Will the sites
be setup with public IP addresses?
Thanks for any help. Tag: Additional Help for SSL on IIS 6.0? Tag: 360678
Permissions with IIS 6.0
I'm running an ASP.Net web application on Windows Server 2003. The
application is attempting to launch a non-ASP.Net web application to no
avail. Specifically, nothing happens when the user clicks a launch button.
The code for launching the second application is of the following format (C#
language):
Response.Redirect("<url_name>")
I suspect this is a permissions issue with Windows Server 2003. The code
runs on Windows XP without any problem. To confirm this, I ran the
PermissionVerifier utility that is part of the IIS 6.0 resource kit. The
test failed, and indicated that ASPNET did not have the
SeInteractiveLogonRight.
The recommended solution is to add the ASPNET client to the "Log on as a
service" policy in the "User Rights Assignment" folder in the "Local Security
Settings" dialogue. However, ASPNET is already included in this group. I
checked all the other policies to insure the proper users had been added.
Any help would be appreciated.
--
GIS System Architect Tag: Additional Help for SSL on IIS 6.0? Tag: 360675
My web pages are not being updated correctly
Hello,
I'm having a problem with the IIS 6.0 server, serving up my web pages.
Windows 2003. I have the following four html files and one *.dll
executable.
The first html file, called user.html, contains html code that divides my
web page into 3 frames. (heading frame, left or menu frame, and right
frame). This works fine.
user.html
<html>
...
<frameset rows="125,*" framespacing="2" border="1" frameborder="1">
<frame src="../User/heading.html" scrolling="auto" name="heading">
<frameset cols="200,*" framespacing="2" border="1" frameborder="1">
<frame src="../User/menu.html" scrolling="auto" name="left_frame">
<frame src="../User/home.html" scrolling="auto" name="right_frame">
</frameset>
</frameset>
...
</html>
The second html file, called menu.html, contains the following html code
which has a link.. Clicking on the link will execute a .dll which should
ouptut a new web page. I have the target, as target="_parent".
menu.html
<html>
....
<font face="Arial"><b><a href="../Scenario/Scenario_Link/Scenario_Link.dll"
target="_parent">Scenario</a></b></font>
...
</html>
This .dll, called Scenario_Link.dll, when executed, makes a request to the
server to output the third html file, called scenario_link.html. This web
page will consist of the three frames(heading, menu, and right) where the
right frame will be updated with new html code(fourth html file,
scenario_generation_update_frame.html). The html code for this
scenario_link.html file is:
scenario_link.html
<html>
...
<frameset rows="125,*" framespacing="2" border="1" frameborder="1">
<frame src="../../User/heading.html" scrolling="auto" name="heading">
<frameset cols="200,*" framespacing="2" border="1" frameborder="1">
<frame src="../../User/menu.html" scrolling="auto" name="left_frame">
<frame
src="../Scenario_Generation/scenario_generation_update_frame.html"
scrolling="auto" name="right_frame">
</frameset>
</frameset>
....
</html>
When one clicks on the Link, the .dll is executed, which updates the
scenario_generation_update_frame.html file and then makes a request to the
server with the scenario_link.html file as its source. The server does
output the correct web page the first time, but subsequent clicks on the
Link, does not change the web page even though the file,
scenario_generation_update_frame.html, has been updated and changed, which
is part of the scenario_link.html file which is sourced to the server.
I've tried sourcing the scenario_link.html file as a file and then as a
buffer to the server but the same thing happens. Namely, it works for the
first click, but subsequent clicks the web page is not being updated or
changed even though the scenario_generation_update_frame.html has been
updated correctly.
Any ideas? Let me know if you need more information. Thank you. Tag: Additional Help for SSL on IIS 6.0? Tag: 360673
Publising Frontpage Website
When I'm ready to publish my Frontpage website, does frontpage have to be installed on the server that I'm publishing too?
From http://www.developmentnow.com/g/59_2003_10_0_7_0/inetserver-iis.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com Tag: Additional Help for SSL on IIS 6.0? Tag: 360672
IIS Logs
I am using IIS 5 Logs W3C Extended format I need to collect vital information
on authenticated users on the website?
All the entries for the authenticated username for the fields cs-username
are empty in the above IIS logs the other information appears to be captured
in the above logs The user name and password are entered into an ASPX login
form, but the actual authentication is performed by forms authentication.
I need the username in the log files in order that webtrends log analyzer
could use it to provide meaningful information about the web usage. How can I
code the ASPX login form to push the authenticated username into the IIS
logs?
What object collection in IIS contains the authenticated users or current
user logged on for the session?
See Attached log file and screenshot of the extended properties of IIS. Tag: Additional Help for SSL on IIS 6.0? Tag: 360668