Wednesday, March 28, 2012
Trouble creating new directory
I am using c# and running a site that is on a shared
host. The code in question is supposed to create a new
directory that is coming out of a text box.
It works fine on my computer, but I get the following
stack trace:
System.IO.DirectoryNotFoundException: Could not find a
part of the path "D:\". at System.IO.__Error.WinIOError
(Int32 errorCode, String str) at
System.IO.Directory.InternalCreateDirectory(String
fullPath, String path) at System.IO.DirectoryInfo.Create
() at testapps.createdir.CreateSubDirectory(String direc)
The code to create is as follows:
public bool CreateSubDirectory(string direc)
{
bool returnStatus = false;
DirectoryInfo di = new DirectoryInfo(@dotnet.itags.org.direc);
if(di.Exists)
{
Trace.Write("Directory exists " +
di.FullName);
this.Label1.Text = "Directory exists";
}
else
{
Trace.Write("Directory does not exist " +
di.FullName);
this.Label1.Text = "Directory does not
exists";
try
{
di.Create();
if(di.Exists)
{
Trace.Write("Directory exists
after creating it");
this.Label1.Text += "Directory
exists after creating it";
}
}
catch(Exception ex)
{
this.Label1.Text += "Error trying to
create directory that did not exist " + ex.ToString();
Trace.Write("Error creating directory
that does not exist " + ex);
}
}
return returnStatus;
}
Any ideas or suggestions, it works great on my local
machine?
Sheldon Cohen
shelman2@dotnet.itags.org.hotmail.comThis may be a misnomer of an error, but I think the root of your problem (no
pun intended) is that you don't have permissions to get at data outside of
your configured directory on the Host server. Imagine if you could - you can
probe the entire server and scavage all the other site's files which would
be a bit of a security risk to say the least.
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
-----------
Making waves on the Web
"Sheldon Cohen" <shelman2@.hotmail.com> wrote in message
news:2db7501c394e2$8cb6dd20$a601280a@.phx.gbl...
> Hello,
> I am using c# and running a site that is on a shared
> host. The code in question is supposed to create a new
> directory that is coming out of a text box.
> It works fine on my computer, but I get the following
> stack trace:
> System.IO.DirectoryNotFoundException: Could not find a
> part of the path "D:\". at System.IO.__Error.WinIOError
> (Int32 errorCode, String str) at
> System.IO.Directory.InternalCreateDirectory(String
> fullPath, String path) at System.IO.DirectoryInfo.Create
> () at testapps.createdir.CreateSubDirectory(String direc)
> The code to create is as follows:
> public bool CreateSubDirectory(string direc)
> {
> bool returnStatus = false;
> DirectoryInfo di = new DirectoryInfo(@.direc);
> if(di.Exists)
> {
> Trace.Write("Directory exists " +
> di.FullName);
> this.Label1.Text = "Directory exists";
> }
> else
> {
> Trace.Write("Directory does not exist " +
> di.FullName);
> this.Label1.Text = "Directory does not
> exists";
> try
> {
> di.Create();
> if(di.Exists)
> {
> Trace.Write("Directory exists
> after creating it");
> this.Label1.Text += "Directory
> exists after creating it";
> }
> }
> catch(Exception ex)
> {
> this.Label1.Text += "Error trying to
> create directory that did not exist " + ex.ToString();
> Trace.Write("Error creating directory
> that does not exist " + ex);
> }
> }
> return returnStatus;
> }
> Any ideas or suggestions, it works great on my local
> machine?
> Sheldon Cohen
> shelman2@.hotmail.com
Thanks, that makes sense. I have contacted my host and they do not have
a clue what to do. Any suggestions of how I could get this working?
Thanks,
Sheldon Cohen
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thanks, that makes sense. I have contacted my host and they do not have
a clue what to do. Any suggestions of how I could get this working?
Thanks,
Sheldon Cohen
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
What do you need access to the root for?
Basically your domain probably runs under a specific user account they've
set up for you. That username needs rights to access the directories you
want to access. Since htey lock it down they should have a clue what to do
<g>...
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
-----------
Making waves on the Web
"Sheldon Cohen" <shelman2@.hotmail.com> wrote in message
news:uMQNpQSlDHA.3504@.TK2MSFTNGP11.phx.gbl...
> Thanks, that makes sense. I have contacted my host and they do not have
> a clue what to do. Any suggestions of how I could get this working?
> Thanks,
> Sheldon Cohen
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
What do you need access to the root for?
Basically your domain probably runs under a specific user account they've
set up for you. That username needs rights to access the directories you
want to access. Since htey lock it down they should have a clue what to do
<g>...
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
-----------
Making waves on the Web
"Sheldon Cohen" <shelman2@.hotmail.com> wrote in message
news:uMQNpQSlDHA.3504@.TK2MSFTNGP11.phx.gbl...
> Thanks, that makes sense. I have contacted my host and they do not have
> a clue what to do. Any suggestions of how I could get this working?
> Thanks,
> Sheldon Cohen
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Hi, thanks for responding back to my message.
I don't need root access I think, I am just trying to create a new
directory for each new user that matches a username they choose while
signing up from our website. We create a new jad file which is for their
java enabled cell phone. We are able to create the file using
StreamWriter and File.Create(), only the directory is giving us trouble.
The hosting company is not sure when we called them, they said they were
researching it. I have tried to use the
\\SERVER\OURUSERACCOUNTNAME\DIRECTORY but that gives us the message:
System.IO.DirectoryNotFoundException: Could not find a
part of the path "D:\". at System.IO.__Error.WinIOError
(Int32 errorCode, String str) at
System.IO.Directory.InternalCreateDirectory(String
fullPath, String path) at System.IO.DirectoryInfo.Create
() at testapps.createdir.CreateSubDirectory(String direc)
We are really not sure what to do next. Seems like the
d:\inetput\wwwroot\OURUSERACCOUNTNAME\wwwRoot\jads which works when we
use the File.Create(PATH) does not work here.
Thanks for all the help so far, any more would be great.
Sheldon Cohen
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi, thanks for responding back to my message.
I don't need root access I think, I am just trying to create a new
directory for each new user that matches a username they choose while
signing up from our website. We create a new jad file which is for their
java enabled cell phone. We are able to create the file using
StreamWriter and File.Create(), only the directory is giving us trouble.
The hosting company is not sure when we called them, they said they were
researching it. I have tried to use the
\\SERVER\OURUSERACCOUNTNAME\DIRECTORY but that gives us the message:
System.IO.DirectoryNotFoundException: Could not find a
part of the path "D:\". at System.IO.__Error.WinIOError
(Int32 errorCode, String str) at
System.IO.Directory.InternalCreateDirectory(String
fullPath, String path) at System.IO.DirectoryInfo.Create
() at testapps.createdir.CreateSubDirectory(String direc)
We are really not sure what to do next. Seems like the
d:\inetput\wwwroot\OURUSERACCOUNTNAME\wwwRoot\jads which works when we
use the File.Create(PATH) does not work here.
Thanks for all the help so far, any more would be great.
Sheldon Cohen
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I think the problem may be share permissions. I had this problem once myself
where the root directory required directory read access or else shares
weren't accessible. I can't remember the details now exactly, but ultimately
it ended up being that I added EveryOne with directory read rights on the
root dir...
Bummer that htis is at an ISP which will make experimenting and trying to
find this issue a lot more work than if you can try it yourself <g
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
-----------
Making waves on the Web
"Sheldon Cohen" <shelman2@.hotmail.com> wrote in message
news:ezyH6tylDHA.2652@.TK2MSFTNGP09.phx.gbl...
> Hi, thanks for responding back to my message.
> I don't need root access I think, I am just trying to create a new
> directory for each new user that matches a username they choose while
> signing up from our website. We create a new jad file which is for their
> java enabled cell phone. We are able to create the file using
> StreamWriter and File.Create(), only the directory is giving us trouble.
> The hosting company is not sure when we called them, they said they were
> researching it. I have tried to use the
> \\SERVER\OURUSERACCOUNTNAME\DIRECTORY but that gives us the message:
> System.IO.DirectoryNotFoundException: Could not find a
> part of the path "D:\". at System.IO.__Error.WinIOError
> (Int32 errorCode, String str) at
> System.IO.Directory.InternalCreateDirectory(String
> fullPath, String path) at System.IO.DirectoryInfo.Create
> () at testapps.createdir.CreateSubDirectory(String direc)
> We are really not sure what to do next. Seems like the
> d:\inetput\wwwroot\OURUSERACCOUNTNAME\wwwRoot\jads which works when we
> use the File.Create(PATH) does not work here.
> Thanks for all the help so far, any more would be great.
> Sheldon Cohen
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
I think the problem may be share permissions. I had this problem once myself
where the root directory required directory read access or else shares
weren't accessible. I can't remember the details now exactly, but ultimately
it ended up being that I added EveryOne with directory read rights on the
root dir...
Bummer that htis is at an ISP which will make experimenting and trying to
find this issue a lot more work than if you can try it yourself <g
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
-----------
Making waves on the Web
"Sheldon Cohen" <shelman2@.hotmail.com> wrote in message
news:ezyH6tylDHA.2652@.TK2MSFTNGP09.phx.gbl...
> Hi, thanks for responding back to my message.
> I don't need root access I think, I am just trying to create a new
> directory for each new user that matches a username they choose while
> signing up from our website. We create a new jad file which is for their
> java enabled cell phone. We are able to create the file using
> StreamWriter and File.Create(), only the directory is giving us trouble.
> The hosting company is not sure when we called them, they said they were
> researching it. I have tried to use the
> \\SERVER\OURUSERACCOUNTNAME\DIRECTORY but that gives us the message:
> System.IO.DirectoryNotFoundException: Could not find a
> part of the path "D:\". at System.IO.__Error.WinIOError
> (Int32 errorCode, String str) at
> System.IO.Directory.InternalCreateDirectory(String
> fullPath, String path) at System.IO.DirectoryInfo.Create
> () at testapps.createdir.CreateSubDirectory(String direc)
> We are really not sure what to do next. Seems like the
> d:\inetput\wwwroot\OURUSERACCOUNTNAME\wwwRoot\jads which works when we
> use the File.Create(PATH) does not work here.
> Thanks for all the help so far, any more would be great.
> Sheldon Cohen
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Trouble deploying ASP.NET application
Server has directory running as a ASP.NET application.
If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
functionality... of course becuase I have code behind on it.
My problem is extreemly basic. Make an application on my machine, then
publish to host, fire application and I get the following error.
I am completely lost and totally stunned how hard it is to get information
on how to deploy a standard ASP.NET application with no odd settings or
database onto a host server!
Server Error in '/quiz' Application.
------------------------
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an
error: (404) Not Found.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.CheckFinalStatus() +680
System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +139
System.Net.HttpWebRequest.GetResponse() +249
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlReader.MoveToContent() +75
System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
denyResolving) +122
System.Data.DataSet.ReadXmlSchema(String fileName) +60
quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
-
------------------------problem solved!
although I need to use a full path for my local host directory to access my
XML files for some bizare reason I thought I could just put the file name
only when I deployed it to the host. Once I put the full path name of my host
server..problem gone.
Now I can work on the other problems.
"Sean" wrote:
> Tried both FTP and frontpage extensions method to the host server.
> Server has directory running as a ASP.NET application.
> If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
> functionality... of course becuase I have code behind on it.
> My problem is extreemly basic. Make an application on my machine, then
> publish to host, fire application and I get the following error.
> I am completely lost and totally stunned how hard it is to get information
> on how to deploy a standard ASP.NET application with no odd settings or
> database onto a host server!
>
> Server Error in '/quiz' Application.
> ------------------------
> The remote server returned an error: (404) Not Found.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information about
> the error and where it originated in the code.
> Exception Details: System.Net.WebException: The remote server returned an
> error: (404) Not Found.
> Source Error:
> An unhandled exception was generated during the execution of the current web
> request. Information regarding the origin and location of the exception can
> be identified using the exception stack trace below.
> Stack Trace:
>
> [WebException: The remote server returned an error: (404) Not Found.]
> System.Net.HttpWebRequest.CheckFinalStatus() +680
> System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +139
> System.Net.HttpWebRequest.GetResponse() +249
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +65
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +94
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
> ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
> System.Xml.XmlReader.MoveToContent() +75
> System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
> denyResolving) +122
> System.Data.DataSet.ReadXmlSchema(String fileName) +60
> quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
> -
> ------------------------
>
Trouble deploying ASP.NET application
Server has directory running as a ASP.NET application.
If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
functionality... of course becuase I have code behind on it.
My problem is extreemly basic. Make an application on my machine, then
publish to host, fire application and I get the following error.
I am completely lost and totally stunned how hard it is to get information
on how to deploy a standard ASP.NET application with no odd settings or
database onto a host server!
Server Error in '/quiz' Application.
----
--
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information abou
t
the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an
error: (404) Not Found.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.CheckFinalStatus() +680
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139
System.Net.HttpWebRequest.GetResponse() +249
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlReader.MoveToContent() +75
System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
denyResolving) +122
System.Data.DataSet.ReadXmlSchema(String fileName) +60
quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
-
----
--problem solved!
although I need to use a full path for my local host directory to access my
XML files for some bizare reason I thought I could just put the file name
only when I deployed it to the host. Once I put the full path name of my hos
t
server..problem gone.
Now I can work on the other problems.
"Sean" wrote:
> Tried both FTP and frontpage extensions method to the host server.
> Server has directory running as a ASP.NET application.
> If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
> functionality... of course becuase I have code behind on it.
> My problem is extreemly basic. Make an application on my machine, then
> publish to host, fire application and I get the following error.
> I am completely lost and totally stunned how hard it is to get informatio
n
> on how to deploy a standard ASP.NET application with no odd settings or
> database onto a host server!
>
> Server Error in '/quiz' Application.
> ----
--
> The remote server returned an error: (404) Not Found.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information ab
out
> the error and where it originated in the code.
> Exception Details: System.Net.WebException: The remote server returned an
> error: (404) Not Found.
> Source Error:
> An unhandled exception was generated during the execution of the current w
eb
> request. Information regarding the origin and location of the exception ca
n
> be identified using the exception stack trace below.
> Stack Trace:
>
> [WebException: The remote server returned an error: (404) Not Found.]
> System.Net.HttpWebRequest.CheckFinalStatus() +680
> System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139
> System.Net.HttpWebRequest.GetResponse() +249
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +65
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +94
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
> ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
> System.Xml.XmlReader.MoveToContent() +75
> System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
> denyResolving) +122
> System.Data.DataSet.ReadXmlSchema(String fileName) +60
> quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
> -
> ----
--
>
>
Trouble developing on remote web server.
Server. Installed remote debugging tools on server. When I try to run the
app, I get the following error.
"Error while trying to run project: unable to start debugging on the web
server. Not enough storage is available to complete this operation."
I've checked disk space both on the development box and the server. Plenty
(gigs) of space available. Is there anything else that could be causing this
error?
Thanks.I am experiencing the same problem. Did you find a solution? Does anyone
else have information on this issue?
Thanks,
Nathan
"Terry Olsen" wrote:
> Running VS.NET 2003 on WinXP pro. Created ASP.NET Web App on remote Win200
3
> Server. Installed remote debugging tools on server. When I try to run th
e
> app, I get the following error.
> "Error while trying to run project: unable to start debugging on the web
> server. Not enough storage is available to complete this operation."
> I've checked disk space both on the development box and the server. Plent
y
> (gigs) of space available. Is there anything else that could be causing th
is
> error?
> Thanks.
>
>
Monday, March 26, 2012
Trouble developing on remote web server.
Server. Installed remote debugging tools on server. When I try to run the
app, I get the following error.
"Error while trying to run project: unable to start debugging on the web
server. Not enough storage is available to complete this operation."
I've checked disk space both on the development box and the server. Plenty
(gigs) of space available. Is there anything else that could be causing this
error?
Thanks.I am experiencing the same problem. Did you find a solution? Does anyone
else have information on this issue?
Thanks,
Nathan
"Terry Olsen" wrote:
> Running VS.NET 2003 on WinXP pro. Created ASP.NET Web App on remote Win2003
> Server. Installed remote debugging tools on server. When I try to run the
> app, I get the following error.
> "Error while trying to run project: unable to start debugging on the web
> server. Not enough storage is available to complete this operation."
> I've checked disk space both on the development box and the server. Plenty
> (gigs) of space available. Is there anything else that could be causing this
> error?
> Thanks.
>
trouble installing debugger
Are there any differences between running remotely and local machine?
Error Message received:
Error while running the project, unable to start debugging on the web server. The debugger is not properly installed. Run setup to install or repair the debugger.
thanks,
LauraAre you using visual studio.net?
If so, start the project temporarily by hitting ctrl + F5, this will start it without debugging. it may be because the site path is incorrect in IIS.
If you need help with this let me know...
Tuesday, March 13, 2012
Troubles Querying Database in Application_Start
I'm having trouble with my security model, Application_Start, and accessing
my database.
My ASP.NET app is only going to be running in an intranet environment (not
on the public Internet). The production environment will have installed
everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
Win2k Server).
In IIS, I have disabled anonymous access so that only Integrated Windows
authentication is used. Then in my Web.config file I've set it up to use
Windows authentication, as such:
<appSettings>
<add key="connectionString"
value=" database=RegPerfectDb;server=localhost;T
rusted_Connection=true" />
</appSettings>
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
<identity impersonate="true" />
</system.web>
Then, in my Application_Start event in Global.asax, I need to run a query or
two to get some application-wide data from our database and store it in the
application cache.
When I try to access a database from Application_Start, I get the following
error:
System.Data.SqlClient.SqlException: Cannot open database requested in login
'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
It's as if it is using the default ASP.NET worker process account (which is
not what I want). I need it to authenticate/authorize the logged in user
(which has access to the database) and use that user to access the database.
So, my questions are: what am I doing wrong? how do I set up IIS,
Web.config, database connection, etc. so that everything is properly
authenticated/authorized to the logged in user so that I can query the
database in Application_Start?
Thanks in advance for your help.This is because when the application starts, it isn't running under any
particular user. That only happens for page requests - which is processed
after the application is started. Application_Start runs only once - and so
in what you are proposing, it would happen to run under whoever happened to
be the first person to access the application? It just doesn't work that
way.
Whatever you do in application_start can't rely on what user happened to
have made the first request to this app - so it needs a connection
independent of that.
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value=" database=RegPerfectDb;server=localhost;T
rusted_Connection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
or
> two to get some application-wide data from our database and store it in
the
> application cache.
>
> When I try to access a database from Application_Start, I get the
following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
>
>
have a browse through the matrix.
how are you connecting to sql server ? trusted connection ? or sql user /
password ?
http://msdn.microsoft.com/library/d.../>
NetAP05.asp
if you are using trusted connection or SSPI then your MACHINENAME\ASPNET
account will have to be granted access to the database (if you want to
enable access from application as there is no user context) plus for normal
user access dont forget to use <impersonate> in web.config
copying from an old code project article (though i wouldnt give access to
ASPNET account as DBOwner i would just just read / write on certain stored
procs
This should work on all other IIS 5.1 (possibly other versions)
combinations. The only difference between IIS 5.1 and IIS 6 is the account
the ASP.NET process runs under. IIS 5.1 runs under a %MACHINENAME%\ASPNET
where %MACHINENAME% is the machine name.
osql -E -S %SERVER%\%INSTANCE% -Q "sp_grantlogin '%MACHINENAME%\ASPNET'"Now
our ASP.NET application will be able to log into the server. Now all thats
left is to grant access to the databases.
osql -E -S %SERVER%\%INSTANCE% -d %DATABASE%
-Q "sp_grantdbaccess '%MACHINENAME%\ASPNET'"
osql -E -S %SERVER%\%INSTANCE% -d %DATABASE%
-Q "sp_addrolemember 'db_owner', '%MACHINENAME%\ASPNET'"These 2 lines will
add access to one of the databases. So if you want to add access to another
database just change %DATABASE% and run both lines.
other way open Query Analyser and do an "EXEC stored proc values here"
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value=" database=RegPerfectDb;server=localhost;T
rusted_Connection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
or
> two to get some application-wide data from our database and store it in
the
> application cache.
>
> When I try to access a database from Application_Start, I get the
following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
>
>
Interesting. Does this only happen in Application_Start event? Does it
connect to SQL as the logged in user in a later event, say from Page_Load?
Greg
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
> accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value=" database=RegPerfectDb;server=localhost;T
rusted_Connection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
> or
> two to get some application-wide data from our database and store it in
> the
> application cache.
>
> When I try to access a database from Application_Start, I get the
> following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
> login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
> is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
> database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
>
>
> Whatever you do in application_start can't rely on what user happened to
> have made the first request to this app - so it needs a connection
> independent of that.
Ah, that makes good sense. Missed that.
Thanks for the info. That totally makes sense. Do you or does anyone else
have any suggestions on how to do what I'm looking to do? Maybe, put the
code in Session_Start (but then I don't need it to run for every new
session)? Or'
Thanks!
"Marina" <someone@.nospam.com> wrote in message
news:OPn5fsbmEHA.3464@.tk2msftngp13.phx.gbl...
> This is because when the application starts, it isn't running under any
> particular user. That only happens for page requests - which is processed
> after the application is started. Application_Start runs only once - and
so
> in what you are proposing, it would happen to run under whoever happened
to
> be the first person to access the application? It just doesn't work that
> way.
> Whatever you do in application_start can't rely on what user happened to
> have made the first request to this app - so it needs a connection
> independent of that.
> "Ober" <ober@.yahoo.com> wrote in message
> news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
> accessing
(not
a
use
/>
query
> or
> the
> following
> login
> is
user
> database.
>
Is there any reason why you can't create a login for the ASPNET user?
Also, it is recommended that you use a single account to access your
database rather than use an account for each user. That way you will be
using your pooled connections more efficiently.
- Frank Mamone
"Ober" <ober@.yahoo.com> wrote in message
news:%23iZ16qdmEHA.3868@.TK2MSFTNGP11.phx.gbl...
> Thanks for the info. That totally makes sense. Do you or does anyone
else
> have any suggestions on how to do what I'm looking to do? Maybe, put the
> code in Session_Start (but then I don't need it to run for every new
> session)? Or'
> Thanks!
>
> "Marina" <someone@.nospam.com> wrote in message
> news:OPn5fsbmEHA.3464@.tk2msftngp13.phx.gbl...
processed
and
> so
> to
> (not
installed
on
> a
Windows
> use
> />
> query
in
'MACHINENAME\ASPNET'.
(which
> user
>
Troubles Querying Database in Application_Start
I'm having trouble with my security model, Application_Start, and accessing
my database.
My ASP.NET app is only going to be running in an intranet environment (not
on the public Internet). The production environment will have installed
everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
Win2k Server).
In IIS, I have disabled anonymous access so that only Integrated Windows
authentication is used. Then in my Web.config file I've set it up to use
Windows authentication, as such:
<appSettings
<add key="connectionString"
value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true" /
</appSettings
<system.web
<authentication mode="Windows" /
<authorization
<deny users="?" /
</authorization
<identity impersonate="true" /
</system.web
Then, in my Application_Start event in Global.asax, I need to run a query or
two to get some application-wide data from our database and store it in the
application cache.
When I try to access a database from Application_Start, I get the following
error:
System.Data.SqlClient.SqlException: Cannot open database requested in login
'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
It's as if it is using the default ASP.NET worker process account (which is
not what I want). I need it to authenticate/authorize the logged in user
(which has access to the database) and use that user to access the database.
So, my questions are: what am I doing wrong? how do I set up IIS,
Web.config, database connection, etc. so that everything is properly
authenticated/authorized to the logged in user so that I can query the
database in Application_Start?
Thanks in advance for your help.This is because when the application starts, it isn't running under any
particular user. That only happens for page requests - which is processed
after the application is started. Application_Start runs only once - and so
in what you are proposing, it would happen to run under whoever happened to
be the first person to access the application? It just doesn't work that
way.
Whatever you do in application_start can't rely on what user happened to
have made the first request to this app - so it needs a connection
independent of that.
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
or
> two to get some application-wide data from our database and store it in
the
> application cache.
>
> When I try to access a database from Application_Start, I get the
following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
have a browse through the matrix.
how are you connecting to sql server ? trusted connection ? or sql user /
password ?
http://msdn.microsoft.com/library/d.../SecNetAP05.asp
if you are using trusted connection or SSPI then your MACHINENAME\ASPNET
account will have to be granted access to the database (if you want to
enable access from application as there is no user context) plus for normal
user access dont forget to use <impersonate> in web.config
copying from an old code project article (though i wouldnt give access to
ASPNET account as DBOwner i would just just read / write on certain stored
procs
This should work on all other IIS 5.1 (possibly other versions)
combinations. The only difference between IIS 5.1 and IIS 6 is the account
the ASP.NET process runs under. IIS 5.1 runs under a %MACHINENAME%\ASPNET
where %MACHINENAME% is the machine name.
osql -E -S %SERVER%\%INSTANCE% -Q "sp_grantlogin '%MACHINENAME%\ASPNET'"Now
our ASP.NET application will be able to log into the server. Now all thats
left is to grant access to the databases.
osql -E -S %SERVER%\%INSTANCE% -d %DATABASE%
-Q "sp_grantdbaccess '%MACHINENAME%\ASPNET'"
osql -E -S %SERVER%\%INSTANCE% -d %DATABASE%
-Q "sp_addrolemember 'db_owner', '%MACHINENAME%\ASPNET'"These 2 lines will
add access to one of the databases. So if you want to add access to another
database just change %DATABASE% and run both lines.
other way open Query Analyser and do an "EXEC stored proc values here"
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
or
> two to get some application-wide data from our database and store it in
the
> application cache.
>
> When I try to access a database from Application_Start, I get the
following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
Interesting. Does this only happen in Application_Start event? Does it
connect to SQL as the logged in user in a later event, say from Page_Load?
Greg
"Ober" <ober@.yahoo.com> wrote in message
news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
>
> I'm having trouble with my security model, Application_Start, and
> accessing
> my database.
>
> My ASP.NET app is only going to be running in an intranet environment (not
> on the public Internet). The production environment will have installed
> everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on a
> Win2k Server).
>
> In IIS, I have disabled anonymous access so that only Integrated Windows
> authentication is used. Then in my Web.config file I've set it up to use
> Windows authentication, as such:
>
> <appSettings>
> <add key="connectionString"
> value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true" />
> </appSettings>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <deny users="?" />
> </authorization>
> <identity impersonate="true" />
> </system.web>
>
> Then, in my Application_Start event in Global.asax, I need to run a query
> or
> two to get some application-wide data from our database and store it in
> the
> application cache.
>
> When I try to access a database from Application_Start, I get the
> following
> error:
>
> System.Data.SqlClient.SqlException: Cannot open database requested in
> login
> 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
>
> It's as if it is using the default ASP.NET worker process account (which
> is
> not what I want). I need it to authenticate/authorize the logged in user
> (which has access to the database) and use that user to access the
> database.
>
>
> So, my questions are: what am I doing wrong? how do I set up IIS,
> Web.config, database connection, etc. so that everything is properly
> authenticated/authorized to the logged in user so that I can query the
> database in Application_Start?
>
> Thanks in advance for your help.
>
>
> Whatever you do in application_start can't rely on what user happened to
> have made the first request to this app - so it needs a connection
> independent of that.
Ah, that makes good sense. Missed that.
Thanks for the info. That totally makes sense. Do you or does anyone else
have any suggestions on how to do what I'm looking to do? Maybe, put the
code in Session_Start (but then I don't need it to run for every new
session)? Or??
Thanks!
"Marina" <someone@.nospam.com> wrote in message
news:OPn5fsbmEHA.3464@.tk2msftngp13.phx.gbl...
> This is because when the application starts, it isn't running under any
> particular user. That only happens for page requests - which is processed
> after the application is started. Application_Start runs only once - and
so
> in what you are proposing, it would happen to run under whoever happened
to
> be the first person to access the application? It just doesn't work that
> way.
> Whatever you do in application_start can't rely on what user happened to
> have made the first request to this app - so it needs a connection
> independent of that.
> "Ober" <ober@.yahoo.com> wrote in message
> news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
> > I'm having trouble with my security model, Application_Start, and
> accessing
> > my database.
> > My ASP.NET app is only going to be running in an intranet environment
(not
> > on the public Internet). The production environment will have installed
> > everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all on
a
> > Win2k Server).
> > In IIS, I have disabled anonymous access so that only Integrated Windows
> > authentication is used. Then in my Web.config file I've set it up to
use
> > Windows authentication, as such:
> > <appSettings>
> > <add key="connectionString"
> > value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true"
/>
> > </appSettings>
> > <system.web>
> > <authentication mode="Windows" />
> > <authorization>
> > <deny users="?" />
> > </authorization>
> > <identity impersonate="true" />
> > </system.web>
> > Then, in my Application_Start event in Global.asax, I need to run a
query
> or
> > two to get some application-wide data from our database and store it in
> the
> > application cache.
> > When I try to access a database from Application_Start, I get the
> following
> > error:
> > System.Data.SqlClient.SqlException: Cannot open database requested in
> login
> > 'DatabaseName'. Login fails. Login failed for user 'MACHINENAME\ASPNET'.
> > It's as if it is using the default ASP.NET worker process account (which
> is
> > not what I want). I need it to authenticate/authorize the logged in
user
> > (which has access to the database) and use that user to access the
> database.
> > So, my questions are: what am I doing wrong? how do I set up IIS,
> > Web.config, database connection, etc. so that everything is properly
> > authenticated/authorized to the logged in user so that I can query the
> > database in Application_Start?
> > Thanks in advance for your help.
Is there any reason why you can't create a login for the ASPNET user?
Also, it is recommended that you use a single account to access your
database rather than use an account for each user. That way you will be
using your pooled connections more efficiently.
- Frank Mamone
"Ober" <ober@.yahoo.com> wrote in message
news:%23iZ16qdmEHA.3868@.TK2MSFTNGP11.phx.gbl...
> Thanks for the info. That totally makes sense. Do you or does anyone
else
> have any suggestions on how to do what I'm looking to do? Maybe, put the
> code in Session_Start (but then I don't need it to run for every new
> session)? Or??
> Thanks!
>
> "Marina" <someone@.nospam.com> wrote in message
> news:OPn5fsbmEHA.3464@.tk2msftngp13.phx.gbl...
> > This is because when the application starts, it isn't running under any
> > particular user. That only happens for page requests - which is
processed
> > after the application is started. Application_Start runs only once -
and
> so
> > in what you are proposing, it would happen to run under whoever happened
> to
> > be the first person to access the application? It just doesn't work that
> > way.
> > Whatever you do in application_start can't rely on what user happened to
> > have made the first request to this app - so it needs a connection
> > independent of that.
> > "Ober" <ober@.yahoo.com> wrote in message
> > news:e0dDiobmEHA.3392@.TK2MSFTNGP15.phx.gbl...
> > > > > I'm having trouble with my security model, Application_Start, and
> > accessing
> > > my database.
> > > > > > My ASP.NET app is only going to be running in an intranet environment
> (not
> > > on the public Internet). The production environment will have
installed
> > > everything locally (i.e., IIS, SQL Server, .NET Framework, etc., all
on
> a
> > > Win2k Server).
> > > > > > In IIS, I have disabled anonymous access so that only Integrated
Windows
> > > authentication is used. Then in my Web.config file I've set it up to
> use
> > > Windows authentication, as such:
> > > > > > <appSettings>
> > > > <add key="connectionString"
> > > value="database=RegPerfectDb;server=localhost;Trusted_Con nection=true"
> />
> > > > </appSettings>
> > > > > > <system.web>
> > > > <authentication mode="Windows" />
> > > > <authorization>
> > > > <deny users="?" />
> > > > </authorization>
> > > > <identity impersonate="true" />
> > > > </system.web>
> > > > > > Then, in my Application_Start event in Global.asax, I need to run a
> query
> > or
> > > two to get some application-wide data from our database and store it
in
> > the
> > > application cache.
> > > > > > When I try to access a database from Application_Start, I get the
> > following
> > > error:
> > > > > > System.Data.SqlClient.SqlException: Cannot open database requested in
> > login
> > > 'DatabaseName'. Login fails. Login failed for user
'MACHINENAME\ASPNET'.
> > > > > > It's as if it is using the default ASP.NET worker process account
(which
> > is
> > > not what I want). I need it to authenticate/authorize the logged in
> user
> > > (which has access to the database) and use that user to access the
> > database.
> > > > > > > > So, my questions are: what am I doing wrong? how do I set up IIS,
> > > Web.config, database connection, etc. so that everything is properly
> > > authenticated/authorized to the logged in user so that I can query the
> > > database in Application_Start?
> > > > > > Thanks in advance for your help.
> > > > > > >
Troubleshooting ASP.Net Application Pools on IIS6
with Application pools. One site has about 9 Virtual Directories in
it that are all configured to run as applications. Each of these have
a dedicated application pool with all different memory settings in the
Memory Recycling area.
The applications are all .Net based applications. They are all pretty
frequently used apps and as a rule of thumb, we assigned more memory
in the app pools to the busier sites and less to the least busy sites.
Here's the deal. Every once in a while, the application will hang up
and not respond. Once I recycle the application, it's fine.
I don't really get a whole lot of info from the developers other than
"The site is hung up" The only thing I see is stuff like this in the
eventlog. This is usually AFTER I recycle the application and it
start working again.
----
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1013
Date: 11/18/2004
Time: 2:37:21 PM
User: N/A
Computer: <server name>
Description:
A process serving application pool <app name>' exceeded time limits
during shut down. The process id was '344'.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
----
I'd like to know what I can do to troubleshoot this. Is there any
other logs I can check? Are there any diagnostic tools that I can
check?Hello,
Please take a look at following articles. These might be helpful in your
case.
828222 How to generate a dump file when ASP.NET deadlocks in IIS 6.0
http://support.microsoft.com/?id=828222
821268 PRB: Contention, poor performance, and deadlocks when you make Web
http://support.microsoft.com/?id=821268
HTH.
Thanks.
Ganesh Anekar
Microsoft Developer Support
Internet Information Server
****************************************
*****************************red">
account name for newsgroup participation only.<<
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
2004 Microsoft Corporation. All rights reserved.
****************************************
*****************************
"dreamlinetheater" <dreamlinetheater@.hotmail.com> wrote in message
news:e153da91.0411181313.145fa674@.posting.google.com...
>I have several sites running on Windows 2003 Server in true IIS 6 mode
> with Application pools. One site has about 9 Virtual Directories in
> it that are all configured to run as applications. Each of these have
> a dedicated application pool with all different memory settings in the
> Memory Recycling area.
> The applications are all .Net based applications. They are all pretty
> frequently used apps and as a rule of thumb, we assigned more memory
> in the app pools to the busier sites and less to the least busy sites.
> Here's the deal. Every once in a while, the application will hang up
> and not respond. Once I recycle the application, it's fine.
> I don't really get a whole lot of info from the developers other than
> "The site is hung up" The only thing I see is stuff like this in the
> eventlog. This is usually AFTER I recycle the application and it
> start working again.
> ----
> Event Type: Warning
> Event Source: W3SVC
> Event Category: None
> Event ID: 1013
> Date: 11/18/2004
> Time: 2:37:21 PM
> User: N/A
> Computer: <server name>
> Description:
> A process serving application pool <app name>' exceeded time limits
> during shut down. The process id was '344'.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> ----
>
> I'd like to know what I can do to troubleshoot this. Is there any
> other logs I can check? Are there any diagnostic tools that I can
> check?
Troubleshooting ASP.Net Application Pools on IIS6
with Application pools. One site has about 9 Virtual Directories in
it that are all configured to run as applications. Each of these have
a dedicated application pool with all different memory settings in the
Memory Recycling area.
The applications are all .Net based applications. They are all pretty
frequently used apps and as a rule of thumb, we assigned more memory
in the app pools to the busier sites and less to the least busy sites.
Here's the deal. Every once in a while, the application will hang up
and not respond. Once I recycle the application, it's fine.
I don't really get a whole lot of info from the developers other than
"The site is hung up" The only thing I see is stuff like this in the
eventlog. This is usually AFTER I recycle the application and it
start working again.
----------------
Event Type:Warning
Event Source:W3SVC
Event Category:None
Event ID:1013
Date:11/18/2004
Time:2:37:21 PM
User:N/A
Computer:<server name>
Description:
A process serving application pool <app name>' exceeded time limits
during shut down. The process id was '344'.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
----------------
I'd like to know what I can do to troubleshoot this. Is there any
other logs I can check? Are there any diagnostic tools that I can
check?Hello,
Please take a look at following articles. These might be helpful in your
case.
828222 How to generate a dump file when ASP.NET deadlocks in IIS 6.0
http://support.microsoft.com/?id=828222
821268 PRB: Contention, poor performance, and deadlocks when you make Web
http://support.microsoft.com/?id=821268
HTH.
Thanks.
Ganesh Anekar
Microsoft Developer Support
Internet Information Server
************************************************** *******************
>>Please do not send email directly to this alias. This is an online
account name for newsgroup participation only.<<
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
2004 Microsoft Corporation. All rights reserved.
************************************************** *******************
"dreamlinetheater" <dreamlinetheater@.hotmail.com> wrote in message
news:e153da91.0411181313.145fa674@.posting.google.c om...
>I have several sites running on Windows 2003 Server in true IIS 6 mode
> with Application pools. One site has about 9 Virtual Directories in
> it that are all configured to run as applications. Each of these have
> a dedicated application pool with all different memory settings in the
> Memory Recycling area.
> The applications are all .Net based applications. They are all pretty
> frequently used apps and as a rule of thumb, we assigned more memory
> in the app pools to the busier sites and less to the least busy sites.
> Here's the deal. Every once in a while, the application will hang up
> and not respond. Once I recycle the application, it's fine.
> I don't really get a whole lot of info from the developers other than
> "The site is hung up" The only thing I see is stuff like this in the
> eventlog. This is usually AFTER I recycle the application and it
> start working again.
> ----------------
> Event Type: Warning
> Event Source: W3SVC
> Event Category: None
> Event ID: 1013
> Date: 11/18/2004
> Time: 2:37:21 PM
> User: N/A
> Computer: <server name>
> Description:
> A process serving application pool <app name>' exceeded time limits
> during shut down. The process id was '344'.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> ----------------
>
> I'd like to know what I can do to troubleshoot this. Is there any
> other logs I can check? Are there any diagnostic tools that I can
> check?