SpoonsJTD

When can we expect the next release of VSeWSS I am getting the error mentioned in other places (blogs and newsgroups) where I can't build and deploy the same project twice (works the first time, errors out each time after).



Re: SharePoint - Development and Programming VSeWSS

Lawrence Liu - MSFT

I don't have the exact date, but right now, it's looking like February. What error are you seeing



Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

Steps to reproduce:

1) Create a new VSeWSS web part project

2) Hit 'F5' to Build, Deploy, Debug - works fine

3) Add the web part to the page - works fine

4) Close IE

5) Modify Render method enough to trigger a new build

6) Hit 'F5' to Build, Deploy, Debug

I get in the status window: Build Started, Build Progress, Deploy Started ..., Deploy failed. A dialog pops up saying 'There were deployment errors. Continue ' Clicking yes or no doesn't do anything. In the Error list I have 'Object reference not set to an instance of an object.'

Info dump from VS (I've tried disabling Refactor! with no difference):

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Enterprise

Microsoft Visual Basic 2005 77718-113-3000004-41784
Microsoft Visual Basic 2005

Microsoft Visual C# 2005 77718-113-3000004-41784
Microsoft Visual C# 2005

Microsoft Visual C++ 2005 77718-113-3000004-41784
Microsoft Visual C++ 2005

Microsoft Visual J# 2005 77718-113-3000004-41784
Microsoft Visual J# 2005

Microsoft Visual Studio 2005 Tools for Applications 77718-113-3000004-41784
Microsoft Visual Studio 2005 Tools for Applications

Microsoft Visual Studio Tools for Office 77718-113-3000004-41784
Microsoft Visual Studio Tools for the Microsoft Office System

Microsoft Visual Web Developer 2005 77718-113-3000004-41784
Microsoft Visual Web Developer 2005

Visual Studio 2005 Team Edition for Architects 77718-113-3000004-41784
Microsoft Visual Studio 2005 Team Edition for Software Architects

Visual Studio 2005 Team Edition for Developers 77718-113-3000004-41784
Microsoft Visual Studio 2005 Team Edition for Software Developers

Visual Studio 2005 Team Edition for Testers 77718-113-3000004-41784
Microsoft Visual Studio 2005 Team Edition for Software Testers

Visual Studio 2005 Tools for Office Second Edition 77718-113-3000004-41784
Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System

Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005


Extensions for Windows WF
Windows Workflow Foundation Tools for Visual Studio

Microsoft Visual Studio 2005 Team Suite - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Team Suite - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

Orcas Technology Preview - .NET Framework 3.0 Development Tools 1.0
Microsoft Visual Studio Code Name Orcas Community Technology Preview - Development Tools for WinFX

Refactor! for Visual Studio 1.0
Refactor! for Visual Studio 2005.

SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 9.00.2047.00

SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 9.00.2047.00

SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 9.00.2047.00

Windows Installer XML Version 3.0
Votive 2005
Windows Installer XML (WiX) Toolset, Version 3.0
Primary Contributor: Justin Rockwood
Additional Contributors: Bob Arnson
Copyright c Microsoft Corporation. All rights reserved.

DevExpress Tools
DXCore extensibility layer for Visual Studio .NET, from Developer Express, Inc. (www.devexpress.com).





Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

FWIW, after an uninstall of all VS related installs including VS2005, a re-install of VS2005 and SP1 followed by a re-install of VSeWSS, I have the same problem. If there's anything else I can do to debug, please let me know. Is there a VS2005 log somewhere that might have an exception trace



Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

Ok, didn't need a log -- it was right there in the output window:

------ Build started: Project: testpostreinstallwp, Configuration: Debug Any CPU ------

testpostreinstallwp -> d:\projects\testpostreinstallwp\bin\Debug\testpostreinstallwp.dll

------ Deploy started: Project: testpostreinstallwp, Configuration: Debug Any CPU ------

System.NullReferenceException

Object reference not set to an instance of an object.

at Microsoft.SharePoint.Tools.SharePointProxies.SPProxy.get_RealTypeInternal()

at Microsoft.SharePoint.Tools.SharePointProxies.SPProxy.get_RealType()

at Microsoft.SharePoint.Tools.SharePointProxies.SPProxy.InvokeGetProperty(String name)

at Microsoft.SharePoint.Tools.SharePointProxies.SPFeatureDefinitionProxy.get_SolutionId()

at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionRegister.DeleteSolution(Guid id, String url)

at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()





Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

When enumerating features on a MOSS server, some features don't have a Feature Definition, i.e., that property is null. Could that be what I am seeing Anybody else using VSeWSS on a machine with MOSS installed instead of just WSS



Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

Resolved! I changed the 'Start browser with URL' value from http://mymachine to http://mymachine/sites/sitecollectionwithoutmossfeatures and it works.

I'm guessing a check to skip features whose FeatureDefinition property is null would fix the issue where you are trying to debug a webpart added to a page that lives in a MOSS site.





Re: SharePoint - Development and Programming VSeWSS

SharePointing

Good find.. thanks for posting the solution :-)




Re: SharePoint - Development and Programming VSeWSS

Max Brassart

Hi

I am programming on MOSS and got into exactly the same problem.

Did you find a solution for MOSS

Thank you

Max





Re: SharePoint - Development and Programming VSeWSS

SpoonsJTD

If you aren't actually using anything in your web part that accesses something in a MOSS feature, the workaround is good enough -- just develop in a non-MOSS site and move it later. Otherwise, I think you are out of luck until the problem gets fixed in the next version.



Re: SharePoint - Development and Programming VSeWSS

Max Brassart

Hi

I have setup a new MOSS site ...

Question: Where could I find sample code using VSeWSS with web part property or tool part. I have some kind of rendering problem.





Re: SharePoint - Development and Programming VSeWSS

Rob_Nic

Dan Dautrich posted another thing to try... del solution.xml and bin files ...seems to be working for me.

http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.sharepoint.development_and_programming&mid=54b06154-8568-40da-9c6b-404cdb4e39c8

I should note that I am now seeing System.Data.DuplicateNameException when it tries to activate my features... not sure if that is a side effect of killing solution.xml or something else in my mix. I can activate it from the site UI fine so I'll worry about it later.

When I have more time I will be taking a closer look at thekid's project template http://www.codeplex.com/sptemplateland/.





Re: SharePoint - Development and Programming VSeWSS

zedekiah

Where do you change that setting

Thanks

Zed






Re: SharePoint - Development and Programming VSeWSS

Paul Liebrand

I have another possible solution. Check out http://wsswiki.com/Visual_Studio_Extensions_For_WSS_3.0. It explains what could possibly cause the "Object reference not set to the instance of an object" error message. I also wrote a utility to help track down the feature causing the problem.

http://wsswiki.com/Visual_Studio_Extensions_For_WSS_3.0

Paul Liebrand




Re: SharePoint - Development and Programming VSeWSS

Nidhish Dhru

i am also facing the same issue ... it works for the first time and then it doesn't work ... any solution to this