Automapper return the proxy object instead of string
up vote
0
down vote
favorite
We used automapper in MVC5 project and it's working as expected on local server, but after we published it to production server, automapper sometimes return a proxy object instead string till we restart the application from IIS.
We tried to figure out the cause of the problem but did not get the reason.
Do you have any idea?
Display:
System.Data.Entity.DynamicProxies.Company
Instead of company name.
asp.net-mvc automapper
add a comment |
up vote
0
down vote
favorite
We used automapper in MVC5 project and it's working as expected on local server, but after we published it to production server, automapper sometimes return a proxy object instead string till we restart the application from IIS.
We tried to figure out the cause of the problem but did not get the reason.
Do you have any idea?
Display:
System.Data.Entity.DynamicProxies.Company
Instead of company name.
asp.net-mvc automapper
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We used automapper in MVC5 project and it's working as expected on local server, but after we published it to production server, automapper sometimes return a proxy object instead string till we restart the application from IIS.
We tried to figure out the cause of the problem but did not get the reason.
Do you have any idea?
Display:
System.Data.Entity.DynamicProxies.Company
Instead of company name.
asp.net-mvc automapper
We used automapper in MVC5 project and it's working as expected on local server, but after we published it to production server, automapper sometimes return a proxy object instead string till we restart the application from IIS.
We tried to figure out the cause of the problem but did not get the reason.
Do you have any idea?
Display:
System.Data.Entity.DynamicProxies.Company
Instead of company name.
asp.net-mvc automapper
asp.net-mvc automapper
edited Nov 9 at 15:36
asked Nov 9 at 15:26
mmarjeh
113
113
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39
add a comment |
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228610%2fautomapper-return-the-proxy-object-instead-of-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If it's an older AM version you should upgrade.
– Lucian Bargaoanu
Nov 9 at 15:29
version 4.2.1.0
– mmarjeh
Nov 9 at 15:39