Publishing a mvc 5 app using Folderprofile does not work after copying it to Windows Server host









up vote
0
down vote

favorite












When I publish my app to a windows server I get a weird problem. Seems like the app thinks it's still running on my local machine:



What am I doing wrong?



Publishing to azure works as intended.




[NullReferenceException: Object reference not set to an instance of an object.] TestApp.Controllers.HomeController.Index() in C:UsersMyUserNameSourceReposTestAppTestAppControllersHomeController.cs:17











share|improve this question

















  • 1




    sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
    – ADyson
    Nov 9 at 12:54











  • I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
    – Supernalle
    Nov 9 at 14:31















up vote
0
down vote

favorite












When I publish my app to a windows server I get a weird problem. Seems like the app thinks it's still running on my local machine:



What am I doing wrong?



Publishing to azure works as intended.




[NullReferenceException: Object reference not set to an instance of an object.] TestApp.Controllers.HomeController.Index() in C:UsersMyUserNameSourceReposTestAppTestAppControllersHomeController.cs:17











share|improve this question

















  • 1




    sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
    – ADyson
    Nov 9 at 12:54











  • I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
    – Supernalle
    Nov 9 at 14:31













up vote
0
down vote

favorite









up vote
0
down vote

favorite











When I publish my app to a windows server I get a weird problem. Seems like the app thinks it's still running on my local machine:



What am I doing wrong?



Publishing to azure works as intended.




[NullReferenceException: Object reference not set to an instance of an object.] TestApp.Controllers.HomeController.Index() in C:UsersMyUserNameSourceReposTestAppTestAppControllersHomeController.cs:17











share|improve this question













When I publish my app to a windows server I get a weird problem. Seems like the app thinks it's still running on my local machine:



What am I doing wrong?



Publishing to azure works as intended.




[NullReferenceException: Object reference not set to an instance of an object.] TestApp.Controllers.HomeController.Index() in C:UsersMyUserNameSourceReposTestAppTestAppControllersHomeController.cs:17








asp.net-mvc






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 12:49









Supernalle

83




83







  • 1




    sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
    – ADyson
    Nov 9 at 12:54











  • I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
    – Supernalle
    Nov 9 at 14:31













  • 1




    sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
    – ADyson
    Nov 9 at 12:54











  • I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
    – Supernalle
    Nov 9 at 14:31








1




1




sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
– ADyson
Nov 9 at 12:54





sometimes you see this if the error is in a compiled DLL, and it was compiled on your local machine, so the stack trace shows the code path as it was when it was compiled. Are you just asking us about why the path looks like that, or are you really asking how to fix the null reference exception? It's not clear. We can't fix the exception without a lot more detail, obviously.
– ADyson
Nov 9 at 12:54













I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
– Supernalle
Nov 9 at 14:31





I was asking about why the local path was in there... How do I proceed in figuring out what's wrong since it works on my local machine and azure?
– Supernalle
Nov 9 at 14:31


















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226023%2fpublishing-a-mvc-5-app-using-folderprofile-does-not-work-after-copying-it-to-win%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226023%2fpublishing-a-mvc-5-app-using-folderprofile-does-not-work-after-copying-it-to-win%23new-answer', 'question_page');

);

Post as a guest














































































Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo