CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 11/1/2006 4:22:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 108 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
simon831
Asp.Net User
error ASPRUNTIME: Object reference not set to an instance of an object11/1/2006 4:22:50 PM

0/0

My project compiles fine. 

When trying to do a 'Publish Website' I get the error:
Object reference not set to an instance of an object

If I create a web deployment project I get the same error.

If I try to do it from a command prompt I get the same error (output below).

Has anyone any idea what it means, or how I can find out what object it can't find? 

 

Simon. 

 

 VS 2005 8.50727.51 Team Ed for Software Dev, Win XP SP2. 

------------------------------------------------------------------------------------------------ 

C:\Program Files\Microsoft Visual Studio 8\VC>aspnet_compiler -v / -u -errorStac
k -f -d -p d:\myApp\wwwroot d:\myApp\release
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.

d:\myApp\wwwroot\App_Code\BookMarkMenu.cs(84): warning CS0618: 'System.Web.U
I.Page.RegisterClientScriptBlock(string, string)' is obsolete: 'The recommended
alternative is ClientScript.RegisterClientScriptBlock(Type type, string key, str
ing script). http://go.microsoft.com/fwlink/?linkid=14202'
error ASPRUNTIME: Object reference not set to an instance of an object.


[NullReferenceException]: Object reference not set to an instance of an object.
   at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile,
 String destPhysicalPath)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath star
tingVirtualDir)
   at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirt
ualDir)
   at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallba
ck callback)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback, Boolean forceCleanBuild)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback)
   at System.Web.Compilation.Precompiler.Main(String[] args)

Mikhail Arkhipo
Asp.Net User
Re: error ASPRUNTIME: Object reference not set to an instance of an object11/1/2006 11:10:52 PM

0/0

Did you try to follow the suggestion and replace obsolete method by a newer construct?
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
simon831
Asp.Net User
Re: error ASPRUNTIME: Object reference not set to an instance of an object11/2/2006 8:49:22 AM

0/0

Thanks for the response. I am pulling my hair out over this.

Fixing the warning didn't make a difference. 

 

 

C:\Program Files\Microsoft Visual Studio 8\VC>aspnet_compiler -v / -u -errorstac
k -f -d -p d:\myApp\wwwroot d:\myApp\release
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.

error ASPRUNTIME: Object reference not set to an instance of an object.

[NullReferenceException]: Object reference not set to an instance of an object.
   at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile,
 String destPhysicalPath)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath star
tingVirtualDir)
   at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirt
ualDir)
   at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallba
ck callback)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback, Boolean forceCleanBuild)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback)
   at System.Web.Compilation.Precompiler.Main(String[] args)

Vladimir.Davido
Asp.Net User
Re: error ASPRUNTIME: Object reference not set to an instance of an object1/10/2007 10:04:19 AM

0/0

Hi!

I had the same problem, when I started investigating - a message about an exception in ?CopyPrecompiledFile? made me think of a problem with some file within application BIN directory. There I found a file named ?App_Code.compiled?, removing which solved the problem. In Your case this as well can be any other file with "bad" attributes or file name, which You will have to find out for Yourself.

Hope this helps.

 

Best regards,

Vladimir Davidov

 

 

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
error ASPRUNTIME: Object reference not set to an instance of an ... error ASPRUNTIME: Object reference not set to an instance of an object. Last post 01-10-2007 5:04 AM by Vladimir.Davidov. 3 replies. ...
Error on WDP build "ASPNETCOMPILER : error ASPRUNTIME: Object ... Re: Error on WDP build "ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object." ...
K. Scott Allen : Precompilation in ASP.NET 2.0 ... will fail with “error ASPRUNTIME: Object reference not set to an instance of an object”. .... Scott, yes I have the Virtual Directory set up for ASP. ...
MSDN MSBuild Msbuild skipping web projects The prebuild project has references to the files required by the web project, ... error ASPRUNTIME: Object reference not set to an instance of an object. ...
MSDN MSBuild ASPNETCOMPILER : error ASPRUNTIME: For some reason we seem to get the error "ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object" when calling our solution ...
AspAdvice.com Lists Do not know why this happened today (and I did reboot so no ... error ASPRUNTIME : Object reference not set to an instance of an object. ...
"The 'GenerateResource' task failed unexpectedly." Another Issue? If I compile WITH the -u option I get no error, ... I get this error message: .. . "error ASPRUNTIME: Object reference not set to an instance of an . ...
aspnet_compiler: error only when precompiling without "-u" option when compiling WITHOUT -u option, I get this error message: "error ASPRUNTIME: Object reference not set to an instance of an object." ...
TheMSsForum.com >> Asp >> SqlCacheDependancy - The Microsoft ... ReadXml(strRdr) However, the last line keeps giving me a "Object reference not set to an instance of an object" and I don't know why. ...
Role based security on external IIS - ng.asp-net-forum.security ... master pages not supported · about asp.net membership & profile · error aspruntime: object reference not set to an instance of an object ...




Search This Site:










webservice method is not cls-compliant???

how to add checkbox in datagridview using datagridviewcheckboxcolumn?im new to windows application

add-ins problem - sp1

how to group your elements in solution explorer together?

installing visual studio.net 2005 team suite for developers

tree view

"__designer:dtid=" - what can i do about this?

adding sqldataadapter to component causes error

checkbox list problem

visual studio 2005 can not display recent project list

asp.net appliaction option is not comming in create new project in vs studio 2005

web project is not available in vs.net 2005

go to definition... i don't want the metadata!

tableadapter configuration wizard error

xml documentation?

visual studio, stable or not

events of page and user control?

absolute paths in designer

word pia issues

how to use cvs as source code control for vs2005?

how to set autopost property of treeview control to false

not able to run the asp.net web project by pressing ctrl+f5

visual studio crashes when saving css file

managing the local web server

where's this five minute portal application i read about :s

vs 2003 upgraded to 2005 error deploying

how to create a custom dataprovider so i can use it with the dataset inasp.net

code analysis in visual studio

databinding issues

empty solution and adding projects problem

  Privacy | Contact Us
All Times Are GMT