Creating New Application Pool in Agent server

Automated deployment for web applications and databases

Creating New Application Pool in Agent server

Postby Sandeep Gupta » Thu Nov 21, 2013 7:52 am

How to create new Application Pool on agent server and Create Authentication for it.
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 12:20 pm

There are some extra variables you need to specify to create an application pool (see here)

Specifically:

You also need to specify the following to create a new application pool:
RedGateCreateWebSiteApplicationPool
The name of the application pool to create.
RedGateCreateWebSiteDotNetVersion
The .NET Framework version to use for the application pool.
RedGateCreateWebSiteIdentityType
The identity type to use for the application pool.
Icon
You can only use the application pool variables with IIS 7.
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 12:44 pm

i have already declared all the variables ,pl see here

Image

after that no application pool is created on target machine and can you please tell me that 'RedGateCreateWebSiteOnPort' compulsory or not?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 12:46 pm

If the website does not yet exist then you have to specify the other variables too:

RedGateWebSiteName
The IIS site name or virtual directory to use when creating the IIS website.
RedGateCreateWebSiteOnPort
The port number to use when creating the IIS website.

If you've done all that, then we probably need to see the full output from the deployment to see if there's any helpful information.
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 12:51 pm

pl see the variables defined in DM

Image

and here is the IIS information

Image

:(
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 1:05 pm

I have a feeling it might be because it's in the default website which is already running on port 80.
If you stop the default web site (assuming you don't need it for anything else) and then reconfigure your site just as MailingService, does it work?
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 1:18 pm

Ok... i am doing...
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby Sandeep Gupta » Thu Nov 21, 2013 1:32 pm

After that target machine is offline,.....
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 1:34 pm

Do you mean Deployment Manager is saying the target is offline? Try a Health Check. Stopping the default website shouldn't affect the agent as it listens on its own port.
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 1:36 pm

yes...target machine is offline....
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 1:38 pm

Is the service running..? If not, start it and if it is, try restarting it. If it still fails, please post the output from the health check.
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 1:39 pm

2013-11-21 18:07:16 +05:30 ERROR System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (405) Method Not Allowed. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
at System.ServiceModel.Security.TlsnegoTokenProvider.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)
at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)
at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)
at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableRequestSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Deploy.Shared.Contracts.IHealthService.CheckHealth()
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at CallSite.Target(Closure , CallSite , Object )
at ImpromptuInterface.Optimization.InvokeHelper.InvokeMemberCallSite(Object target, String_OR_InvokeMemberName name, Object[] args, String[] tArgNames, Type tContext, Boolean tStaticContext, CallSite& callSite)
at ImpromptuInterface.Dynamic.ImpromptuForwarder.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result)
at RedGate.Deploy.Server.Proxies.WcfSecurityWrapper`1.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result)
at CallSite.Target(Closure , CallSite , Object )
at ActLike_IHealthService_b0bd9650e92e4cd0b1c2bf69d9407e18.CheckHealth()
at RedGate.Deploy.Server.Tasks.Health.CheckMachineHealthActivity.<Execute>b__0()
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby james.billings » Thu Nov 21, 2013 1:46 pm

Did you make any other config changes? Or just stop the default website in IIS on the target?

Presumably this connected OK before... can you show a screenshot of how the agent is defined in Deployment Manager? Also, are the two machines on the same network or are there any proxies/firewalls between the two? You may want to reboot the agent just in case it's a temporary glitch too.
james.billings
 
Posts: 1120
Joined: Wed Jun 16, 2010 11:10 am
Location: Red Gate

Postby Sandeep Gupta » Thu Nov 21, 2013 1:52 pm

No, i am not doing any changes, and i am restart the iis on target machine

Image

yes it is connected....pl see the screenshot...and pls give me the reason what is the reason?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby Sandeep Gupta » Thu Nov 21, 2013 2:15 pm

now target machine is restart and now in DM Agent is online.... and i am tried the Default Web Site is Stopped and again deploy release... then Application pool is not created.... problem is exist...
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Next

Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 1 guest

cron