Error when I click publish | “Object reference not set to an instance of an object” - by Riderman de Sousa Barbosa

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 749901 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/19/2012 6:08:15 AM
Access Restriction Public

Description

Error when I click Publish a project.

Does not always occur, but I reproduce on two projects.
Do not know if it's incompatibility with some NuGet package I have installed, so I send all packages


Package                                                          
-------                                                          
ActionMailer                                                     
AjaxMin                                                          
AjaxUploader                                                     
AspNetMvc                                                        
BindSolution                                                     
BindSolution.Domain                                              
BindSolution.Service                                             
BindSolution.Web.Mvc                                             
Cassette                                                         
Cassette.Views                                                   
Cassette.Web                                                     
CommonServiceLocator                                             
elmah.corelibrary                                                
Elmah.MVC                                                        
EntityFramework                                                  
Fancybox                                                         
FluentValidation                                                 
FluentValidation.MVC3                                            
HtmlAgilityPack                                                  
IronRuby                                                         
jQuery                                                           
jQuery.Easing                                                    
jQuery.Validation                                                
jQuery.Validation.Unobtrusive                                    
Jurassic                                                         
knockoutjs                                                       
MarkdownSharp                                                    
Microsoft.AspNet.Mvc                                             
Microsoft.AspNet.Providers                                       
Microsoft.AspNet.Providers.Core                                  
Microsoft.AspNet.Razor                                           
Microsoft.AspNet.WebPages                                        
Microsoft.jQuery.Unobtrusive.Validation                          
Microsoft.Web.Infrastructure                                     
MvcSiteMapProvider                                               
Newtonsoft.Json                                                  
Ninject                                                          
Ninject.MVC3                                                     
Ninject.Web.Common                                               
Ninject.Web.Mvc.FluentValidation                                 
recaptcha                                                        
SassAndCoffee.Core                                               
SassAndCoffee.Ruby                                               
System.Web.Providers                                             
valueinjecter                                                    
WebActivator 
Sign in to post a comment.
Posted by Madhuri11 on 4/7/2014 at 6:16 AM
I am also facing the same issue - Object Reference not set to an instance of an object while publishing my application developed in Visual Studio 2010 Ultimate Edition. Please help me as I have been wasting 3 days on this issue...
Posted by Microsoft on 10/18/2012 at 2:28 PM
Thanks for reporting the issue. The issue is now fixed in Visual Studio 2012 RTM.
Posted by Riderman de Sousa Barbosa on 6/20/2012 at 1:17 PM
Ok, thanks for the support!
Posted by Microsoft on 6/20/2012 at 1:08 PM
Hi Riderman,

Thanks for confirming. We do have a fix for this issue internally, and it will be included in the next release for VS2012. In the meantime, the suggested workaround is to comment out the line with <clear />. If you need to remove specific strings, you can use a <remove ... /> element instead.

Thanks,
- Jimmy Lewis
SDET, Visual Web Developer team
Posted by Riderman de Sousa Barbosa on 6/20/2012 at 11:57 AM
Yes. follow my setup (connectionStrings)

<connectionStrings>
    <clear />
    <remove name="LocalSqlServer" />
    <add name="Data" connectionString="Server=.;Database=datafilme.com.br;Integrated Security=true;" providerName="System.Data.SqlClient" />
</connectionStrings>
Posted by Microsoft on 6/20/2012 at 11:51 AM
Hi Riderman,

We have a bug in VS2012 RC where this error will occur if any elements under your <connectionStrings> node do not have a name attribute. Most commonly, this happens if you have a <clear />. Can you confirm if this is the same issue?

Thanks,
- Jimmy Lewis
SDET, Visual Web Developer team
Posted by Microsoft on 6/19/2012 at 8:53 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 6/19/2012 at 6:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)