Something wrong with the GetTaxRate() method of TaxService.cs
Make sure you have all objects assigned to some value before accessing it. Though little more info about that method may help us to identify the problem
When you are ready to deploy ASP.NET MVC 3 application to your hosting provider, there are a set of assemblies you’ll need to include with your application for it to run properly, unless they are already installed in the Global Assembly Cache (GAC) on the
server.
animesh.andy
Member
119 Points
243 Posts
Object reference not set to an instance of an object.
Mar 23, 2012 09:48 AM|LINK
I have a application in MVC3 which is running correctly in local but when I upload it to server it gives a error
Object reference not set to an instance of an object.
why??
ignatandrei
All-Star
135142 Points
21676 Posts
Moderator
MVP
Re: Object reference not set to an instance of an object.
Mar 23, 2012 09:54 AM|LINK
A lot of reasons. Primary, something with the code. What's the error stack?
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Object reference not set to an instance of an object.
Mar 23, 2012 10:03 AM|LINK
This error may happen for many resone like,
U might tried to call non created objects like, sessio,mcookie etc.
So post the line where u face that error.?
Mark as answer,if it helped U!
animesh.andy
Member
119 Points
243 Posts
Re: Object reference not set to an instance of an object.
Mar 23, 2012 10:17 AM|LINK
http://test.aiya-america.com/c/19/matcha-premix
check this.It shows the stack why does it show the local path even after uploading
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Object reference not set to an instance of an object.
Mar 23, 2012 10:24 AM|LINK
post ur code of line:239,324 in TaxService.cs
Mark as answer,if it helped U!
nirman.doshi
Participant
1520 Points
775 Posts
Re: Object reference not set to an instance of an object.
Mar 23, 2012 11:19 AM|LINK
Software Developer
Vadodara, India
Young Yang -...
All-Star
21343 Points
1818 Posts
Microsoft
Re: Object reference not set to an instance of an object.
Mar 30, 2012 03:37 AM|LINK
Hi
When you are ready to deploy ASP.NET MVC 3 application to your hosting provider, there are a set of assemblies you’ll need to include with your application for it to run properly, unless they are already installed in the Global Assembly Cache (GAC) on the server.
For details, you can refer to:
http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx
Hope this helpful
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store