Hi ismcagdas,
Actually, I have to work on 2 solutions due to the request of my client. Hope then the steps are the same no ? I mean I have to follow the same steps which you have mentioned above no ? Thanks.
Hi,
Can you please tell me how to publish the ng-2 version app ? I need to publish client and server separately. Please share a doc if you have about mentioning this. Thanks.
Hi ismcagdas,
OK sure.Thanks a lot for the info :)
Hi ismcagdas,
Can we separate it again after merging ? B'cos my client asked this from me. He likes separated projects (server and client) when project will have more developers.But now I'm the only developer and I would like to have a single solution. Is that possible. Thanks.
Hi All,
Excellent answer ismcagdas. It'll help a lot :)
Actually me too don't have any experience with Azure continues integration.I just publish my app to production (Azure) using VS 2015.Please see the below article.Hope that will help to you @alaamh.
<a class="postlink" href="https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-continuous-delivery-use-vso">https://docs.microsoft.com/en-us/azure/ ... ry-use-vso</a>
Hi alaamh,
Haha..... You too in my boat :)
I didn't do this yet due to too many other works.But I'll definitely do that within this weekend.So please go ahead and share you experience with us.Good Luck ! :)
Here is the link :
[https://www.aspnetzero.com/Documents/Merge-Angular-Client-Server])
Hi,
Thanks a lot for the support.That was the exact reason. I was missed this line on initFileUploader().
self.uploader.setOptions(self.uploaderOptions);
When I put that now no issues :)
Hi,
I have called that initFileUploader method on component's ngOnInit() method as shown below.
ngOnInit(): void {
this.initFileUploader();
}
It shows authToken on page load moment. But that too related to the signalR like below. But cannot see anything when I press the Upload image button. Can you tell me where I have a problem.Thanks.
Note : I can go to the web Api method though.
Hi,
Abp ng-2 version :
Can you tell me why tenantId and user throws exception even though I have tested this as loged in user ? Thanks.
.Web.Core ---> DocumentUploadController.cs
[Route("api/[controller]/[action]")]
[Consumes("application/json", "application/json-patch+json", "multipart/form-data")]
public class DocumentUploadController : CpcpControllerBase
{
[HttpPost]
public async Task<string> AddDocument(IFormFile file, [FromQuery]string doctype)
{
var stream = file.OpenReadStream();
var name = file.FileName;
var user = AbpSession.GetUserId(); //show exception here
var tenantId = AbpSession.GetTenantId(); //show exception here
}
}
drawings.component.ts
initFileUploader(): void {
let self = this;
self.uploader = new FileUploader({ url: AppConsts.remoteServiceBaseUrl + '/api/DocumentUpload/AddDocument?doctype=Drawings' });
self.uploaderOptions.authToken = 'Bearer ' + self.tokenService.getToken();
self.uploader.onAfterAddingFile = (file) => {
file.withCredentials = false;
};
}
Exception :
Hi,
Thanks a lot.I have used liked that and now it is working :)