all groups > iis security > july 2003 >
You're in the

iis security

group:

Problem with IIS 6.0 serving .NET applications


Problem with IIS 6.0 serving .NET applications Buck
7/19/2003 2:47:36 PM
iis security:
I have a simple test that works fine on IIS 5, but I can't seem to get it to
work with IIS 6.0. I just loaded Windows 2003 Web Server and haven't changed
too much on the IIS 6.0 configuration.

I created a simple .NET windows form application "myapp.exe" that is just a
form with a couple of control on it (buttons, whatever). It doesn't do
anything, it's just a test program.

On IIS 5 I just put the exe in a directory, Web Share the directory the exe
is in and then can hit the exe from IE on another machine that has the .NET
framework and the application comes up on the remote machine. Pretty simple.
The url would be something like http://machinewithapp/MyApp/MyApp.exe.

Doing the same on an IIS 6.0 machine doesn't work. I tried turning off
execute permission on that Virutal Directory, but then the exe just shows up
in the browser. With Execute permission on, I get 404 errors.

To reply to my email remove the NOSPAM from the address.

Re: Problem with IIS 6.0 serving .NET applications Jonathan Maltz [MS-MVP]
7/19/2003 4:24:01 PM
Hi,

Did you set Application & Scripts execute permissions?
Add the mime type?

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Replies by Email will not be read and will be deleted on the spot. Unless I
ask you to Email me, please do not. Reply by newsgroup only, please.


[quoted text, click to view]

Re: Problem with IIS 6.0 serving .NET applications Jonathan Maltz [MS-MVP]
7/19/2003 8:31:23 PM
Hi,

It's working now because you need to have "scripts and executable"
permission on the directory. Well, that's why it doesn't work with only
scripts and none.

Why errors went away is beyond me though :-)

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Replies by Email will not be read and will be deleted on the spot. Unless I
ask you to Email me, please do not. Reply by newsgroup only, please.


[quoted text, click to view]

Re: Problem with IIS 6.0 serving .NET applications Buck
7/20/2003 12:11:16 AM
Well it works now, but I'm not sure what happened.
After seeing your post I tried setting the Execute Permissions on the
Virtual Directory tab of the Properties dialog for the web. It was set to
Scripts when I got there (wasn't working). I set it to "Scripts and
Executables" and then I would get an IEExec error on the client. Switched it
to "None" and I'd get the content of the exe shown in the browser, changed
it back to "Scripts" and then the app came up on the client. Changed it to
None and the app came up on the client. Changed it to "Scripts and
Executables" and I get the error on the client. From that point on it
responded consistently, "Scripts" and "None" would work, "Scripts and
Executables" doesn't.

Thanks for the tips. I don't know why it started working, but it's working.

[quoted text, click to view]

AddThis Social Bookmark Button