Each time I try to deploy a content item using Courier I receive the same error. This is the detailed aplication error:
The request failed with HTTP status 401: Unauthorized.
Error details
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at
Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.TransferResources(ResourceTransfer[]
resources, String user, String pass) in
d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.RepositoryProviders\WebserviceProvider\webservice.cs:line
1094
at
Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.TransferResources(ResourceTransfer[]
resources) in
d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.RepositoryProviders\WebserviceProvider\CourierWebserviceRepositoryProvider.cs:line
286
at Umbraco.Courier.Core.ExtractionManager.ExtractItemResources(Item item, ResourceExtractionOrder order)
at Umbraco.Courier.Core.ExtractionManager.ExtractResources(ResourceExtractionOrder order)
at Umbraco.Courier.UI.Dialogs.CommitItem.TransferAndExtractOnSelectedRepo(String repo)
at Umbraco.Courier.UI.Dialogs.CommitItem.oneSteptransfer(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The error doesn't come from the courier authentication itself, as it doesn't return such a status code, I think it has something to do
with the way you've setup permissions on your 2 sites, in particular on the /umbraco folder and .asmx files which is what is accessed with the courier provider, so you need to verify that you can actually view the file: /umbraco/plugins/courier/webservices/repository.asmx in your browser
also, ensure that you have the right ports set on your repository config in the /config/courier.config file
I have checked in the browser the repository.asmx web service and the methods are displayed correctly but I have checked to access Courier.asmx and I receive the following error:
Server Error in '/' Application.
Umbraco.Courier.UI.Application.StatusItem cannot be serialized because it does not have a parameterless constructor.
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.InvalidOperationException: Umbraco.Courier.UI.Application.StatusItem cannot be serialized because it does not have a parameterless constructor.
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.
Error 401. First time using Courier 2
Hello,
I have downloaded and installed Courier2 in my dev machine. I have two websites:
Each time I try to deploy a content item using Courier I receive the same error. This is the detailed aplication error:
The request failed with HTTP status 401: Unauthorized.
Error details
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.TransferResources(ResourceTransfer[] resources, String user, String pass) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.RepositoryProviders\WebserviceProvider\webservice.cs:line 1094
at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.TransferResources(ResourceTransfer[] resources) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.RepositoryProviders\WebserviceProvider\CourierWebserviceRepositoryProvider.cs:line 286
at Umbraco.Courier.Core.ExtractionManager.ExtractItemResources(Item item, ResourceExtractionOrder order)
at Umbraco.Courier.Core.ExtractionManager.ExtractResources(ResourceExtractionOrder order)
at Umbraco.Courier.UI.Dialogs.CommitItem.TransferAndExtractOnSelectedRepo(String repo)
at Umbraco.Courier.UI.Dialogs.CommitItem.oneSteptransfer(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Is it needed to specify some special permission?
Do your 2 websites have the same Admin password?
Rich
Yes Rich. And they are almost identical. I´m just trying to update a property´s content.
Seems like an authorisation problem, what's the name of your admin user?
Rich
Unless you tell Courier otherwise it'll expect your admin user to be 'admin' and for both sites to have exactly the same password.
Rich
My admin user is exactly "admin" in both websites and with the same password.
Also I have given Full Control to the Everyone group in both websites (NTFS Permissions).
Hey Sergio,
hmm, I don't know then I'm afraid sorry.
You could try mailing Per from Umbraco or try a later version (2.1.1) from here http://nightly.umbraco.org/UmbracoCourier/
Rich
Hi Sergio
The error doesn't come from the courier authentication itself, as it doesn't return such a status code, I think it has something to do
with the way you've setup permissions on your 2 sites, in particular on the /umbraco folder and .asmx files which is what is accessed with the courier provider, so you need to verify that you can actually view the file: /umbraco/plugins/courier/webservices/repository.asmx in your browser
also, ensure that you have the right ports set on your repository config in the /config/courier.config file
/Per
Hi Per,
I have checked in the browser the repository.asmx web service and the methods are displayed correctly but I have checked to access Courier.asmx and I receive the following error:
Server Error in '/' Application.
Umbraco.Courier.UI.Application.StatusItem cannot be serialized because it does not have a parameterless constructor.
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.InvalidOperationException: Umbraco.Courier.UI.Application.StatusItem cannot be serialized because it does not have a parameterless constructor.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
@Rich, I will try with that other version. Your help is very appreciated.
Umm, I have checked that it was Courier 2.1.1 the version I had installed.
Maybe is a good idea to try with Courier 2.0 or Courier 2.1?
Same error with versions 2.0 and 2.1
is working on a reply...