Solved

Visual Studio 2010 Problem

Posted on 2013-06-19
4
1,454 Views
Last Modified: 2013-06-20
When I'm trying to publish a website. Build, Pubish Website. I get:

Object reference not set to an instance of an object

There is no file or line or Column or Project listed to show where the problem is.

as it's building the website all I have checked off is Allow this precompiled site to be updatable

it shows precompiling, building, building and then has another message that is replaced by the Object reference error so I have no idea why this is happening.

This would happen before but all I had to do was re-build web site to get it back.

Any ideas. Thanks for the help.
0
Comment
Question by:mfony
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:mfony
ID: 39259637
more info:

Building directory '/RS2/App_Code/'.
Building directory '/RS2/'.: Publication (web): Object reference not set to an instance of an object.

Pre-compilation Complete
------ Skipped Publish: Project Y:\RS2\, Configuration: Debug Any CPU ------
 
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
========== Publish: 0 succeeded, 0 failed, 1 skipped ==========
0
 

Author Comment

by:mfony
ID: 39262385
more info:

Everything used to work just fine.
0
 

Author Comment

by:mfony
ID: 39262390
more info:

Validating Web Site
Building directory '/RS2/App_Code/'.
Building directory '/RS2/'.

Validation Complete
Accessibility Checking Web Site
Accessibility check complete. No issues have been found.
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 39262457
Hi,

Seems like deleting the content in the ASP.NET Temp folder and bin will solve the issue - http://social.msdn.microsoft.com/Forums/vstudio/en-US/fe539362-547e-41bd-b7e5-f008de15c3e4/object-reference-not-set-to-an-instance-of-an-object-while-publishing-web-site

Hope it helps u...
0

Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question