I agree with Andre, setting the process identity back to localsystem does not fix the problem. For anyone still looking for a solution go here:
blog.angrypets.com/.../iis_6_vs_2005_a.html
Everything is working fine for me now!
In my case the app pool was disabled because the password for the service had been reset but whoever reset it failed to also change the password for the identity under which the pool was running.
Restarting the app pool caused it to work with the new password and the application worked.
Tony S.
Not sure if it helps...but I kept getting this error as I tried to open Visual Studio 2003 in my dev environment (Win2k3 server vpc). Everything had been working fine and all of a sudden it just stopped and I received the aforementioned error. So, I'm not sure if my solution is "best practice" by any means, but being my dev environment, I didn't have to worry a lot. Basically, I just added my ASP.NET account that my DefaultAppPool ran under into the IIS_WPG group. Start ->(right-click--properties)My Computer->Local Users and Groups--IIS_WPG group in the right panel. Add your account here. For good measure, I rebooted...hope this helps.
Really Thanks!
(ours app pool run with Administrator user, and when the admin has changed the password, the app pools don't run.
i change the identity to "Network Services" and now everything is ok!)
Daniel
I was able to mail enable an already existing user in AD
Try this....
Public Shared Function CreateMailbox(ByRef strBuilderStatus As StringBuilder, ByVal deUser As DirectoryEntry, ByVal strExchangeServerString As String, ByVal strRole As String) As String
'This function will mailbox enable a user whom already exists
Dim homeMDB As String = "CN=" + strRole + "," + strExchangeServerString
'See if the user exists first
'It Worked: Dim exUser As DirectoryEntry = New DirectoryEntry("LDAP://AXABS-IN.intraxa/CN=Siena Honda,OU=Test,OU=AXADaemon,OU=Systems and Admins,OU=User Accounts,OU=Business Community,DC=axabs-in,DC=intraxa")
strBuilderStatus.Append("deUser.Path:" + deUser.Path)
Dim exUser As DirectoryEntry = New DirectoryEntry(deUser.Path)
'Dim exUser As DirectoryEntry = FindUser(UserName)
If Not (Nothing Is exUser) Then
strBuilderStatus.Append("exUser is not nothing,exUser.Path " + exUser.Path)
Try
Dim prsmbx As CDO.Person
Dim mbx As IMailboxStore
prsmbx = New CDO.Person
strBuilderStatus.Append("Got Person object for all,Opening Path,exUser.Path:" + exUser.Path)
'It worked:prsmbx.DataSource.Open("LDAP://AXABS-IN.intraxa/CN=Loka Priyan,OU=Test,OU=AXADaemon,OU=Systems and Admins,OU=User Accounts,OU=Business Community,DC=axabs-in,DC=intraxa", , ADODB.ConnectModeEnum.adModeReadWrite)
prsmbx.DataSource.Open(exUser.Path, , ADODB.ConnectModeEnum.adModeReadWrite)
mbx = prsmbx
''mbx.CreateMailbox( _
''"LDAP://domain.com/CN=Store,CN=StorageGroup," & _
''"CN=InformationStore,CN=ServerName,CN=Servers," & _
''"CN=First Administrative Group,CN=Administrative Groups," & _
''"CN=Domain,CN=Microsoft Exchange,CN=Services," & _
''"CN=Configuration,DC=domain,DC=com")
strBuilderStatus.Append("Creating..")
'mbx.CreateMailbox("CN=Managers,CN=Third Storage Group,CN=InformationStore,CN=PRUIN01EX02,CN=Servers,CN=axaabscoin,CN=Administrative Groups,CN=Axa Business Services,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=adsin,DC=intraxa")
strBuilderStatus.Append("homeMDB Ideal Format(which works):#CN=Managers,CN=Third Storage Group,CN=InformationStore,CN=PRUIN01EX02,CN=Servers,CN=axaabscoin,CN=Administrative Groups,CN=Axa Business Services,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=adsin,DC=intraxa#")
strBuilderStatus.Append("homeMDB Actual:#" + homeMDB + "#")
mbx.CreateMailbox(homeMDB)
' Set some additional mail fields
strBuilderStatus.Append("Created..")
With prsmbx
'If Domain.ToLower = "aodinc.com" Then
' .Email = "SMTP:" & UserName & "@domain.com"
'Else
' .Email = "SMTP:" & UserName & "@" & Domain
' .Email2 = "smtp:" & UserName & "@domain.com"
'End If
strBuilderStatus.Append("Calling prsmbx.Fields.Update ")
.Fields.Update()
strBuilderStatus.Append("Called prsmbx.Fields.Update ")
strBuilderStatus.Append("Calling prsmbx.DataSource.Save ")
.DataSource.Save()
strBuilderStatus.Append("Called prsmbx.DataSource.Save ")
End With
Catch ex As Exception
strBuilderStatus.Append("Exception Occured:" + ex.Message + "#" + ex.StackTrace)
Return "FAIL"
End Try
Else
strBuilderStatus.Append("exUser is nothing ")
End If
Return "SUCCESS"
End Function
Brilliant! Exactly what I was looking for, Cheers!
Great info Desmond. Can anybody explain to me how I can connect to a MS exchange server and import the mailbox email addresses into a VB.net application ?
Or could you point me in the right direction of where I can find this information out?
Thanks in advance for any help
In my "service unavailable" case, there was a typo in the host header with the site's domain name.
I get Service Unavailable when I try to oopen the application outside of Visual Studio. I have been running it successfully in Debug. But if I close VS and try to open the app directly the Service Unavailable error appears. In the Application Event Log I get:
W3SVC Warning 1057:
The identity of application pool 'MIISWorkflow' is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled.
Followed by:
W3SVC Error 1059:
A failure was encountered while launching the process serving application pool 'MIISWorkflow'. The application pool has been disabled.
Just attempting to open the .aspx causes the Application Pool to stop.
The Application was originally ASP.Net 1.x but converted to .Net 2.0 when first built.
The entire IIS site is running .Net 2.0:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -lk
W3SVC/ 2.0.50727.0
W3SVC/1/ROOT/ 2.0.50727.0
What would cause the application to stop the Application Pool and/or produce the Service Unavailable error?
Even After adding my acccount to logon as Service account didn't help. But adding to IIS_WPG group fixed my problem.
Thanks Brian,
THe LogFormat tip worked for me with the logresolvemerge program.
Your comments about the application pool helped me out here. It turned out that the app pool was stopped.
Pingback from Feed Search Engine - All Fresh Articles And News Are Here
I had a problem with one of my website and i was helped by your comment and suggestions.Keep up the good work.
thanks
Very Helpful. Thanks
Thank you Brian and Simon!!!
Question - after reading 'everything' I cannot find answer anywhere.
We moved domains from Win2000 to Win2003 Server. After moving LogFiles into Stats directory, AWStats does not recognize. Is this LogFormat issue you mention above?
i have a windows 2003 server where iam running iis and asp site ,after some time my asp sites are failing to run and i get the following error
The site '2' was disabled because the application pool 'MSSharePointAppPool' defined for the site's root application is not a valid application pool.
Any update on this issue It become very serious issue for me.
I tend to think the one mentioned that you have to be set in the Batch-Job logon was right. In my case it worked only when I did so.
As Tony Small said it was the password change that caused the error on my work's server. I've recently taken over as admin and thought it was good practice to change the password and after restarting this evening to complete automatic updates the service stopped. I fixed this by running the service in local mode however have now changed it back to admin with the new password.
Awesome article and helped us solve a similar little problem we had ;)
Pingback from cs pool web
I had the same problem and it didn't go away when I tried your suggestion. Then I realised that I hadn't checked the passwords - someone had reset it. So I set the correct password and it still didn't go away. But when I tried IISRESET, it did.
I just assigned asp.net permissions to the app pool account
aspnet_regiis -ga MachineName\AccountName
Check this link:
msdn.microsoft.com/.../ms998297.aspx
You are a legend! Many, many thank yous.
so how do i iterate through the share permissions of a shared folder using vbscript?
Many thanks! This finally solved my IIS issue. Turned out that the appl was stopped. My bad. Thanks again!
Perfect. Thanks so much.
I'm trying to install it in my Windows 2003 Notebook, but the bundled software do not work...
Great thread, I LOVE the internet.
Tried everything, but it all started to work when I added the user under the app pool to the IIS_WPG group.
thanks again all,
good guide!!! but the string for log is
LogFormat="%time2 %cs-method %cs-uri-stem %cs-username %c-ip %cs-version %cs(User-Agent) %cs(Referer) %sc-status %sc-bytes"
bye bye and goog working
Parabéns, este post salvou o meu dia.
Viva a internet e o Brasil.
Tried all you suggestions and failed dismally!
Thanks so much to this site blog.angrypets.com/.../iis_6_vs_2005_a.html ..wow thanks Daniel its works :-)