Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Thursday, March 29, 2012

Seperating IIS from Application

Please forgive me if this question has been asked before.

Is there any way to have IIS running on one machine processing HTTP
requests - but have all requests routed to another machine for processing
(the App server).

The project I am coming from had iPlanet processing requests and passing
them to weblogic - I was curious if there was a way to have a similar
architecure in asp.net.

Along this line of thinking - can I front an ASP.Net application with a web
server other than IIS (i.e. iPlanet).

Thank You,

Aaronsetup webservices on the second box to do all your work, the IIS box only
has to do the HTML redering and the webservice calls that way.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Aaron Kornbluth" <aaron.kornbluth@.ness-usa.com> wrote in message
news:%23cVtxqqMEHA.2532@.TK2MSFTNGP10.phx.gbl...
> Please forgive me if this question has been asked before.
> Is there any way to have IIS running on one machine processing HTTP
> requests - but have all requests routed to another machine for processing
> (the App server).
> The project I am coming from had iPlanet processing requests and passing
> them to weblogic - I was curious if there was a way to have a similar
> architecure in asp.net.
> Along this line of thinking - can I front an ASP.Net application with a
web
> server other than IIS (i.e. iPlanet).
> Thank You,
> Aaron
I was looking for something more analagous to what occurs in the J2EE
setup - i.e. having the ISAPI plugin that processes ASPX (and all controls
that are instantiated by them) on another machine.

I could also use remoting from the ASPX pages - but again, I was looking for
a lower level solution.

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%23PUW3wqMEHA.1192@.TK2MSFTNGP11.phx.gbl...
> setup webservices on the second box to do all your work, the IIS box only
> has to do the HTML redering and the webservice calls that way.
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Aaron Kornbluth" <aaron.kornbluth@.ness-usa.com> wrote in message
> news:%23cVtxqqMEHA.2532@.TK2MSFTNGP10.phx.gbl...
> > Please forgive me if this question has been asked before.
> > Is there any way to have IIS running on one machine processing HTTP
> > requests - but have all requests routed to another machine for
processing
> > (the App server).
> > The project I am coming from had iPlanet processing requests and passing
> > them to weblogic - I was curious if there was a way to have a similar
> > architecure in asp.net.
> > Along this line of thinking - can I front an ASP.Net application with a
> web
> > server other than IIS (i.e. iPlanet).
> > Thank You,
> > Aaron

Thursday, March 22, 2012

Serve SSL via HttpModule?

I have an IIS 6.0 web server that does not have an SSL certificate set
up on the web site.
Is it possible to enable SSL via my ASP.NET 2.0 web application only by
inserting the SSL handshake, etc in an Http Module or anywhere else in
the ASP.NET pipeline? For example, I could then offer different certs
based on the Request uri, etc.
Thaks.no, you would need to write an iis filer in c/c++.
not sure the point. SSL certificates are tied to the domain name, and iis
already supports cerificates per domain.
-- bruce (sqlwork.com)
<bradwiseathome@.hotmail.com> wrote in message
news:1150916949.181236.176100@.b68g2000cwa.googlegroups.com...
>I have an IIS 6.0 web server that does not have an SSL certificate set
> up on the web site.
> Is it possible to enable SSL via my ASP.NET 2.0 web application only by
> inserting the SSL handshake, etc in an Http Module or anywhere else in
> the ASP.NET pipeline? For example, I could then offer different certs
> based on the Request uri, etc.
> Thaks.
>
The point is that the site is reachable as www.mysite.com and
mysite.com and www2.mysite.com. If there is a server-installed cert for
www.mysite.com, the user gets the confusing cert-prompt. If the cert
handling was in .NET, then I could respond with the appropriate
certificate based on the contents of the Request.
bruce barker (sqlwork.com) wrote:
> no, you would need to write an iis filer in c/c++.
> not sure the point. SSL certificates are tied to the domain name, and iis
> already supports cerificates per domain.
>
> -- bruce (sqlwork.com)
>
>
>
> <bradwiseathome@.hotmail.com> wrote in message
> news:1150916949.181236.176100@.b68g2000cwa.googlegroups.com...
bradwiseathome@.hotmail.com wrote:
> The point is that the site is reachable as www.mysite.com and
> mysite.com and www2.mysite.com. If there is a server-installed cert for
> www.mysite.com, the user gets the confusing cert-prompt. If the cert
> handling was in .NET, then I could respond with the appropriate
> certificate based on the contents of the Request.
Then purchase a wildcard SSL certificate.
PL.
There is no way in doing this in ASP.NET 2.0 because as previously
posted, the request once reach the IIS then only it will be handled
against the SSL request then given to the ASP.NET handlers.
So, there is no escape other than buying an SSL certificate

Serve SSL via HttpModule?

I have an IIS 6.0 web server that does not have an SSL certificate set
up on the web site.

Is it possible to enable SSL via my ASP.NET 2.0 web application only by
inserting the SSL handshake, etc in an Http Module or anywhere else in
the ASP.NET pipeline? For example, I could then offer different certs
based on the Request uri, etc.

Thaks.no, you would need to write an iis filer in c/c++.

not sure the point. SSL certificates are tied to the domain name, and iis
already supports cerificates per domain.

-- bruce (sqlwork.com)

<bradwiseathome@.hotmail.com> wrote in message
news:1150916949.181236.176100@.b68g2000cwa.googlegr oups.com...
>I have an IIS 6.0 web server that does not have an SSL certificate set
> up on the web site.
> Is it possible to enable SSL via my ASP.NET 2.0 web application only by
> inserting the SSL handshake, etc in an Http Module or anywhere else in
> the ASP.NET pipeline? For example, I could then offer different certs
> based on the Request uri, etc.
> Thaks.
The point is that the site is reachable as www.mysite.com and
mysite.com and www2.mysite.com. If there is a server-installed cert for
www.mysite.com, the user gets the confusing cert-prompt. If the cert
handling was in .NET, then I could respond with the appropriate
certificate based on the contents of the Request.

bruce barker (sqlwork.com) wrote:
> no, you would need to write an iis filer in c/c++.
> not sure the point. SSL certificates are tied to the domain name, and iis
> already supports cerificates per domain.
>
> -- bruce (sqlwork.com)
>
>
>
> <bradwiseathome@.hotmail.com> wrote in message
> news:1150916949.181236.176100@.b68g2000cwa.googlegr oups.com...
> >I have an IIS 6.0 web server that does not have an SSL certificate set
> > up on the web site.
> > Is it possible to enable SSL via my ASP.NET 2.0 web application only by
> > inserting the SSL handshake, etc in an Http Module or anywhere else in
> > the ASP.NET pipeline? For example, I could then offer different certs
> > based on the Request uri, etc.
> > Thaks.
bradwiseathome@.hotmail.com wrote:
> The point is that the site is reachable as www.mysite.com and
> mysite.com and www2.mysite.com. If there is a server-installed cert for
> www.mysite.com, the user gets the confusing cert-prompt. If the cert
> handling was in .NET, then I could respond with the appropriate
> certificate based on the contents of the Request.

Then purchase a wildcard SSL certificate.

PL.
There is no way in doing this in ASP.NET 2.0 because as previously
posted, the request once reach the IIS then only it will be handled
against the SSL request then given to the ASP.NET handlers.

So, there is no escape other than buying an SSL certificate

Tuesday, March 13, 2012

Server Application Error: The server failed to load application /LM/W3SVC.

Hi:

I was working good with IIS 5.0 and Netframework, but suddenly my Explorer gave this error: Server Application Error, and tell me to go to the event viewer for more details, who says this: The server failed to load application '/LM/W3SVC'.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

But there's nothing over there about my problem.

I will appreciate any help that you can give me.

Thanks...Hi,

did a quickgoogle search and came up with this:

PRB: Configured Identity Is Incorrect for IWAM Account.

Grz, Kris.

Server Application Unavailable

I'm having a tough time with an asp.net application.

I'm running Win 2003 Server with IIS 6.0 and .Net 1.1 Framework.

Each time I try to access the app from a browser i get the following error.

----------------------------
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
----------------------------
Here's a entry from this mornings log file. It refers to the page I'm trying to access.
----------------------------
2004-08-18 10:02:14 10.1.5.242 GET /ConcoWebAppX/SiteContacts.aspx SiteID=1268 80 - 10.1.5.242 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322) 500 0 0
----------------------------
I have security set to the local IUSR_MACHINENAME account from the root down, the Authenticated Access has been tried with both Integrated Windows Authentication and nothing checked.

The Execute Permissions under the Home Directory is set to scripts only.

I'm really at a loss.

Can anyone steer me in the right direction for an answer as well as a best practice?

Thanks.

Doug DexterDid you try removing all code from the page and re-running it to ensure that it is not a coding error (for example a never ending loop)?
The code runs in development, and has even run on this 2003 server and there are several .Net pages affected by this, not just the example I've shown.

So I'm certain it's a permission issue.

Thanks.
does it involve database ?
Yes.
This thing is driving me CRAZY...

It works on XP PRO...

But it REFUSES to run on Server 2003...

Hasn't SOMEONE had this problem?
FIXED.

In the web.config file set the following:


<authorization>
<allow users="*" /> <!-- Allow all users --
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

John 3:16

dd

Server Application Unavailable

I am using IIS 5.1 with ASP.Net 1.1.4322. About once a month I get the error above when trying to open a web application. I used to fix this with fiuxup cmd, but that does not work anymore.

Here is the error in the application log:

Aspnet_wp.exe could not be launched because the username and/or password supplier in the processModel section of the config file are invalid.

I've never changed the config log. Here, I think, are the relevant entries:

processModel Attributes:
enable="[true|false]" - Enable processModel
userName="[user]" - Windows user to run the process as.
Special users: "SYSTEM": run as localsystem (high privilege admin) account.
"machine": run as low privilege user account named "ASPNET".
Other users: If domain is not specified, current machine name is assumed to be the domain name.
password="[AutoGenerate | password]" - Password of windows user. For special users (SYSTEM and machine), specify "AutoGenerate".
logLevel="[All|None|Errors]" - Event types logged to the event log

What is this error telling me? How can I fix it?

Many thanks
Mike Thomas

Take a look at:

http://support.microsoft.com/kb/315158/en-us

Jeff


Jeff,

Many thanks for your help - I am still going in circles on this one. The main thing I would like to learn is what changed with my computer, IIS, etc between yesterday and today. The processModel in my machine.config file was commented out yesterday, and everything worked fine. Today it is still commented out, but I get the error, so so much for the MSFT fix.

What mainly worries me is that there is some process going on behind the scenes which is creating changes I am unaware of. This app has been runnig for a couple of years now, but this problem comes up periodically.

It makes me very skittish about deploying MSFT flavor web apps - they seem to work one day then not the next.

At any rate, thanks for the pointer.
Mike Thomas

server application unavailable

Hi,

I created an asp.net 2.0 website with VWD and made it an application in IIS.
It was created on a ntfs disc (my documents...). The directory permissions
are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list
permissions to the apllication directory.

When i start it from the browser, i get this error:
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.

Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.

The application event log tells this:

Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005 Access
is denied.

and this:

Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc

Exception: System.IO.FileLoadException

Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. Access is denied.

StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)

Thanks for help

CasperIUSR_MYSERVER is not the usual identity ASP.NET runs as.

If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASPNET...even if you're allowing anonymous access.

If you're running on Windows Server 2003, the account which needs permissions is
MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined above.

If you are still having problems after that, and you're impersonating some account,
save this code as "identity.aspx" and run it :

identity.aspx
========

<%@. Page Language="VB" %>
<%@. Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

That will tell you what the current account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"casper" <nomail@.dfsdf.nl> wrote in message news:e%23iUEhvZGHA.3936@.TK2MSFTNGP05.phx.gbl...
> Hi,
> I created an asp.net 2.0 website with VWD and made it an application in IIS.
> It was created on a ntfs disc (my documents...). The directory permissions
> are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list
> permissions to the apllication directory.
>
> When i start it from the browser, i get this error:
> Server Application Unavailable
> The web application you are attempting to access on this web server is
> currently unavailable. Please hit the "Refresh" button in your web browser
> to retry your request.
> Administrator Note: An error message detailing the cause of this specific
> request failure can be found in the application event log of the web server.
> Please review this log entry to discover what caused this error to occur.
> The application event log tells this:
> Failed to execute the request because the ASP.NET process identity does not
> have read permissions to the global assembly cache. Error: 0x80070005 Access
> is denied.
> and this:
> Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
> Exception: System.IO.FileLoadException
> Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> dependencies. Access is denied.
> StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
> String codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> forIntrospection)
> Thanks for help
> Casper
>
Hi, thanks for replying.

I'm running on windows 2000 sp4 and it's also the domain-controller. I ran
your identity.aspx and it tells me that the current account ASP.NET is
running as IWAM_myserver.
So i granted it the permissions and it works.

Strange, because i can read in directory security of IIS: username (for
anonymous access) is IUSR_myserver. And more, in my list of accounts, the
only new accounts i have after installing asp.net are three sqlserver2005
accounts, but no asp or netwoek service...

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:ObWUdyvZGHA.3328@.TK2MSFTNGP02.phx.gbl...
> IUSR_MYSERVER is not the usual identity ASP.NET runs as.
> If you're running on Windows XP, the account which needs permissions is
> MACHINENAME\ASPNET...even if you're allowing anonymous access.
> If you're running on Windows Server 2003, the account which needs
permissions is
> MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
> Try granting access permissions to the appropiate account, as outlined
above.
> If you are still having problems after that, and you're impersonating some
account,
> save this code as "identity.aspx" and run it :
> identity.aspx
> ========
> <%@. Page Language="VB" %>
> <%@. Import NameSpace = System.Security.Principal %>
> <script runat="server">
> Sub Page_Load()
> Dim tmp As String = WindowsIdentity.GetCurrent.Name()
> Label1.Text = tmp
> End Sub
> </script>
> <html>
> <head>
> <title>WindowsIdentity.GetCurrent.Name()</title>
> </head>
> <body>
> <form id="form1" runat="server">
> <div>
> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
> </div>
> </form>
> </body>
> </html>
> ======
> That will tell you what the current account ASP.NET is running as.
> Then, assign the appropiate permissions to that account.
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "casper" <nomail@.dfsdf.nl> wrote in message
news:e%23iUEhvZGHA.3936@.TK2MSFTNGP05.phx.gbl...
> > Hi,
> > I created an asp.net 2.0 website with VWD and made it an application in
IIS.
> > It was created on a ntfs disc (my documents...). The directory
permissions
> > are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list
> > permissions to the apllication directory.
> > When i start it from the browser, i get this error:
> > Server Application Unavailable
> > The web application you are attempting to access on this web server is
> > currently unavailable. Please hit the "Refresh" button in your web
browser
> > to retry your request.
> > Administrator Note: An error message detailing the cause of this
specific
> > request failure can be found in the application event log of the web
server.
> > Please review this log entry to discover what caused this error to
occur.
> > The application event log tells this:
> > Failed to execute the request because the ASP.NET process identity does
not
> > have read permissions to the global assembly cache. Error: 0x80070005
Access
> > is denied.
> > and this:
> > Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
> > Exception: System.IO.FileLoadException
> > Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
> > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> > dependencies. Access is denied.
> > StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
> > String codeBase, Evidence assemblySecurity, Assembly locationHint,
> > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> > forIntrospection)
> > Thanks for help
> > Casper
re:
> I'm running on windows 2000 sp4 and it's also the domain-controller.
> it tells me that the current account ASP.NET is
> running as IWAM_myserver.

Running a web server on a domain controller is a very
unusual situation because it opens up security considerations.

You should, generally, avoid running a web server on a domain controller.

If you do, you should create a weaker account to run the webserver as.

Read : "How To: Create a Custom Account to Run ASP.NET 1.1"
http://msdn.microsoft.com/library/d.../secnetht01.asp

The instructions are, basically, the same as for ASP.NET 2.0...

You might also want to read "How To Create a Service Account for an ASP.NET 2.0 Application"

http://msdn.microsoft.com/library/d...paght000009.asp

Although the instructions are for Windows Server 2003, just disregard the
instructions regarding the Application Pools. The rest is the same for both OS's.

re:
> So i granted it the permissions and it works.

Glad that you're running again !

However, you should either

1. not run the web server in your domain controller
2. if that's impossible, create a weaker account per the instructions above.

Good luck!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"casper" <nomail@.dfsdf.nl> wrote in message news:uyU42J3ZGHA.4160@.TK2MSFTNGP04.phx.gbl...
> Hi, thanks for replying.
> I'm running on windows 2000 sp4 and it's also the domain-controller. I ran
> your identity.aspx and it tells me that the current account ASP.NET is
> running as IWAM_myserver.
> So i granted it the permissions and it works.

> Strange, because i can read in directory security of IIS: username (for
> anonymous access) is IUSR_myserver. And more, in my list of accounts, the
> only new accounts i have after installing asp.net are three sqlserver2005
> accounts, but no asp or netwoek service...

> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:ObWUdyvZGHA.3328@.TK2MSFTNGP02.phx.gbl...
>> IUSR_MYSERVER is not the usual identity ASP.NET runs as.
>>
>> If you're running on Windows XP, the account which needs permissions is
>> MACHINENAME\ASPNET...even if you're allowing anonymous access.
>>
>> If you're running on Windows Server 2003, the account which needs
> permissions is
>> MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
>>
>> Try granting access permissions to the appropiate account, as outlined
> above.
>>
>> If you are still having problems after that, and you're impersonating some
> account,
>> save this code as "identity.aspx" and run it :
>>
>> identity.aspx
>> ========
>>
>> <%@. Page Language="VB" %>
>> <%@. Import NameSpace = System.Security.Principal %>
>> <script runat="server">
>> Sub Page_Load()
>> Dim tmp As String = WindowsIdentity.GetCurrent.Name()
>> Label1.Text = tmp
>> End Sub
>> </script>
>> <html>
>> <head>
>> <title>WindowsIdentity.GetCurrent.Name()</title>
>> </head>
>> <body>
>> <form id="form1" runat="server">
>> <div>
>> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
>> </div>
>> </form>
>> </body>
>> </html>
>> ======
>>
>> That will tell you what the current account ASP.NET is running as.
>> Then, assign the appropiate permissions to that account.
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espaol : http://asp.net.do/foros/
>> ===================================
>> "casper" <nomail@.dfsdf.nl> wrote in message
> news:e%23iUEhvZGHA.3936@.TK2MSFTNGP05.phx.gbl...
>> > Hi,
>>> > I created an asp.net 2.0 website with VWD and made it an application in
> IIS.
>> > It was created on a ntfs disc (my documents...). The directory
> permissions
>> > are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list
>> > permissions to the apllication directory.
>>>> > When i start it from the browser, i get this error:
>> > Server Application Unavailable
>> > The web application you are attempting to access on this web server is
>> > currently unavailable. Please hit the "Refresh" button in your web
> browser
>> > to retry your request.
>>> > Administrator Note: An error message detailing the cause of this
> specific
>> > request failure can be found in the application event log of the web
> server.
>> > Please review this log entry to discover what caused this error to
> occur.
>>> > The application event log tells this:
>>> > Failed to execute the request because the ASP.NET process identity does
> not
>> > have read permissions to the global assembly cache. Error: 0x80070005
> Access
>> > is denied.
>>> > and this:
>>> > Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
>>> > Exception: System.IO.FileLoadException
>>> > Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
>> > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
>> > dependencies. Access is denied.
>>> > StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
>> > String codeBase, Evidence assemblySecurity, Assembly locationHint,
>> > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
>> > forIntrospection)
>>> > Thanks for help
>>> > Casper
>>>>>>
>>
Thanks

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:%23B0qWQ6ZGHA.1192@.TK2MSFTNGP04.phx.gbl...
> re:
> > I'm running on windows 2000 sp4 and it's also the domain-controller.
> > it tells me that the current account ASP.NET is
> > running as IWAM_myserver.
> Running a web server on a domain controller is a very
> unusual situation because it opens up security considerations.
> You should, generally, avoid running a web server on a domain controller.
> If you do, you should create a weaker account to run the webserver as.
> Read : "How To: Create a Custom Account to Run ASP.NET 1.1"
http://msdn.microsoft.com/library/d.../secnetht01.asp
> The instructions are, basically, the same as for ASP.NET 2.0...
> You might also want to read "How To Create a Service Account for an
ASP.NET 2.0 Application"
>
http://msdn.microsoft.com/library/d...paght000009.asp
> Although the instructions are for Windows Server 2003, just disregard the
> instructions regarding the Application Pools. The rest is the same for
both OS's.
> re:
> > So i granted it the permissions and it works.
> Glad that you're running again !
> However, you should either
> 1. not run the web server in your domain controller
> 2. if that's impossible, create a weaker account per the instructions
above.
> Good luck!
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "casper" <nomail@.dfsdf.nl> wrote in message
news:uyU42J3ZGHA.4160@.TK2MSFTNGP04.phx.gbl...
> > Hi, thanks for replying.
> > I'm running on windows 2000 sp4 and it's also the domain-controller. I
ran
> > your identity.aspx and it tells me that the current account ASP.NET is
> > running as IWAM_myserver.
> > So i granted it the permissions and it works.
> > Strange, because i can read in directory security of IIS: username (for
> > anonymous access) is IUSR_myserver. And more, in my list of accounts,
the
> > only new accounts i have after installing asp.net are three
sqlserver2005
> > accounts, but no asp or netwoek service...
>
> > "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> > news:ObWUdyvZGHA.3328@.TK2MSFTNGP02.phx.gbl...
> >> IUSR_MYSERVER is not the usual identity ASP.NET runs as.
> >>
> >> If you're running on Windows XP, the account which needs permissions is
> >> MACHINENAME\ASPNET...even if you're allowing anonymous access.
> >>
> >> If you're running on Windows Server 2003, the account which needs
> > permissions is
> >> MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
> >>
> >> Try granting access permissions to the appropiate account, as outlined
> > above.
> >>
> >> If you are still having problems after that, and you're impersonating
some
> > account,
> >> save this code as "identity.aspx" and run it :
> >>
> >> identity.aspx
> >> ========
> >>
> >> <%@. Page Language="VB" %>
> >> <%@. Import NameSpace = System.Security.Principal %>
> >> <script runat="server">
> >> Sub Page_Load()
> >> Dim tmp As String = WindowsIdentity.GetCurrent.Name()
> >> Label1.Text = tmp
> >> End Sub
> >> </script>
> >> <html>
> >> <head>
> >> <title>WindowsIdentity.GetCurrent.Name()</title>
> >> </head>
> >> <body>
> >> <form id="form1" runat="server">
> >> <div>
> >> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
> >> </div>
> >> </form>
> >> </body>
> >> </html>
> >> ======
> >>
> >> That will tell you what the current account ASP.NET is running as.
> >> Then, assign the appropiate permissions to that account.
> >>
> >>
> >>
> >>
> >> Juan T. Llibre, asp.net MVP
> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> asp.net faq : http://asp.net.do/faq/
> >> foros de asp.net, en espaol : http://asp.net.do/foros/
> >> ===================================
> >> "casper" <nomail@.dfsdf.nl> wrote in message
> > news:e%23iUEhvZGHA.3936@.TK2MSFTNGP05.phx.gbl...
> >> > Hi,
> >> >> > I created an asp.net 2.0 website with VWD and made it an application
in
> > IIS.
> >> > It was created on a ntfs disc (my documents...). The directory
> > permissions
> >> > are set on 'anonymous allowed' using IUSR_MYSERVER, which has
read/list
> >> > permissions to the apllication directory.
> >> >> >> > When i start it from the browser, i get this error:
> >> > Server Application Unavailable
> >> > The web application you are attempting to access on this web server
is
> >> > currently unavailable. Please hit the "Refresh" button in your web
> > browser
> >> > to retry your request.
> >> >> > Administrator Note: An error message detailing the cause of this
> > specific
> >> > request failure can be found in the application event log of the web
> > server.
> >> > Please review this log entry to discover what caused this error to
> > occur.
> >> >> > The application event log tells this:
> >> >> > Failed to execute the request because the ASP.NET process identity
does
> > not
> >> > have read permissions to the global assembly cache. Error: 0x80070005
> > Access
> >> > is denied.
> >> >> > and this:
> >> >> > Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
> >> >> > Exception: System.IO.FileLoadException
> >> >> > Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0,
> >> > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> >> > dependencies. Access is denied.
> >> >> > StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName
fileName,
> >> > String codeBase, Evidence assemblySecurity, Assembly locationHint,
> >> > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> >> > forIntrospection)
> >> >> > Thanks for help
> >> >> > Casper
> >> >> >> >> >>
> >>