Problem with version 2.8
Quote from Ingo on August 24, 2019, 2:59 pmHi,
Unfortunately, I can not solve my present without your help! That's why I ask you to help me.
I have a separate library where I send and receive SOAP jobs. This program works in a Thread.
If in my code
var response = req.GetResponse ();
the following happens.
The mapper is called.
CreateMap<ApplicationRole, RoleViewModel>()
.ForMember(d => d.Permissions, map => map.MapFrom(s => s.Claims))
.ForMember(d => d.UsersCount, map => map.MapFrom(s => s.Users != null ? s.Users.Count : 0))
.ReverseMap();
Destination Member:
Permissions
---> System.InvalidOperationException: Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you do not have any calls to the static Mapper.Map methods, and if you're using ProjectTo or UseAsDataSource extension methods, make sure you pass in the appropriate IConfigurationProvider instance.
at AutoMapper.Mapper.get_Instance() in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 36
Although I have found that the mapping is registered in the Start.cs.
services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
What can I do to make my program run again?
regards Ingo
Hi,
Unfortunately, I can not solve my present without your help! That's why I ask you to help me.
I have a separate library where I send and receive SOAP jobs. This program works in a Thread.
If in my code
var response = req.GetResponse ();
the following happens.
The mapper is called.
CreateMap<ApplicationRole, RoleViewModel>()
.ForMember(d => d.Permissions, map => map.MapFrom(s => s.Claims))
.ForMember(d => d.UsersCount, map => map.MapFrom(s => s.Users != null ? s.Users.Count : 0))
.ReverseMap();
Destination Member:
Permissions
---> System.InvalidOperationException: Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you do not have any calls to the static Mapper.Map methods, and if you're using ProjectTo or UseAsDataSource extension methods, make sure you pass in the appropriate IConfigurationProvider instance.
at AutoMapper.Mapper.get_Instance() in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 36
Although I have found that the mapping is registered in the Start.cs.
services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
What can I do to make my program run again?
regards Ingo
Quote from GiovanniFabian on November 18, 2020, 5:53 pmWhy don’t you upload it on stackoverflow? Just like when you need english help you go to one of the top paper writing services. Similarly, when you have a coding question you should visit that website.
Why don’t you upload it on stackoverflow? Just like when you need english help you go to one of the top paper writing services. Similarly, when you have a coding question you should visit that website.
Quote from leschrapid on December 30, 2020, 8:26 amI really like your content because it is very informative and knowledgeable content. 1v1 lol Nice.That a really interesting topic. I really thankful to you for this useful and informative blog post and really appreciated you keep blogging.
I really like your content because it is very informative and knowledgeable content. 1v1 lol Nice.That a really interesting topic. I really thankful to you for this useful and informative blog post and really appreciated you keep blogging.
Quote from barrington zykell on January 9, 2021, 11:39 amCool stuff you have got and you keep update all of us.먹튀
Cool stuff you have got and you keep update all of us.먹튀
Quote from barrington zykell on January 14, 2021, 11:18 amI admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well.สมัคร slot เครดิตฟรี แค่ยืนยันตน
I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well.สมัคร slot เครดิตฟรี แค่ยืนยันตน
Quote from barrington zykell on January 16, 2021, 8:05 amI am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. 먹튀
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. 먹튀
Quote from barrington zykell on January 17, 2021, 1:24 pmOnly strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. http://webs.ucm.es/BUCM/blogs/blogquimica/2176.php?zm=3#.X_Jv9dhKhPY | https://sites.google.com/view/love-real-doll | https://opensees.berkeley.edu/community/memberlist.php?mode=viewprofile&u=326080
Only strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. http://webs.ucm.es/BUCM/blogs/blogquimica/2176.php?zm=3#.X_Jv9dhKhPY | https://sites.google.com/view/love-real-doll | https://opensees.berkeley.edu/community/memberlist.php?mode=viewprofile&u=326080
Quote from hifiwi6168 on January 21, 2021, 6:30 amI'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. 메이저사이트
I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. 메이저사이트
Quote from barrington zykell on January 24, 2021, 9:50 amKeep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. 메이저사이트
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. 메이저사이트
Quote from barrington zykell on January 25, 2021, 11:59 amThank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! 2movierulz
Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! 2movierulz