Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 3rd, 2009, 05:40 PM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Code Generator

Hello Every One


I am trying to implement code generator in vb.net & I have followed exact same steps for COM Interop & I have saved .vsz file in the following location

Code:
C:\Program Files\Microsoft Visual Studio 9.0\VB\VBProjectItems
When I am trying to add I am getting an error Invalid at the top level of the document

I am setting ComVisible to true as stated but still I am getting the above error.

Is it something related language since I am trying to generate in vb is something to do .....

Thanks in advance
Sandeep...
 
Old November 4th, 2009, 07:29 PM
Authorized User
 
Join Date: Mar 2008
Posts: 62
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to kalel_4444
Default

Close and restart Visual Studio completely (not just the solution).
Then rebuild your Code Generator Project and try it.

If this works, then for the future, whenever you make changes to the code gen project files, after changing:
1. save project/solution
2. close & restart VS
3. Build code gen project
4. Add Item's...

Again, that's if restarting fixed the problem.

Good luck,
Ronnie
 
Old November 5th, 2009, 12:20 PM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code Generator

Still getting the same error even after restarting the visual studio and rebuilding the project...
 
Old November 16th, 2009, 09:47 AM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Code Generator

I have built and load the application. However, it does not show any items in the connection or table dropdown boxes. Does anyone have any idease as to why?
 
Old November 30th, 2009, 05:00 AM
Registered User
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1. To resolve the invalid error, verify that the correct namespace and class name are in the three .vsz files. You need to use the full name for the class that implements the IDTWizard interface.

2. If your web project is set up to run in VS instead of IIS the code provided won't work. You'll have to replace this code with something else:

Code:
 OpenConfiguration(p.Name.Substring(p.Name.IndexOf("localhost") + 9))
It needs a relative URL to access the web.config of the web project. Another alternative might be to iterate through the Project Items for each project and get the web.config files that way.
 
Old July 16th, 2010, 05:43 PM
Registered User
 
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by justinb138 View Post
1. To resolve the invalid error, verify that the correct namespace and class name are in the three .vsz files. You need to use the full name for the class that implements the IDTWizard interface.

2. If your web project is set up to run in VS instead of IIS the code provided won't work. You'll have to replace this code with something else:

Code:
 OpenConfiguration(p.Name.Substring(p.Name.IndexOf("localhost") + 9))
It needs a relative URL to access the web.config of the web project. Another alternative might be to iterate through the Project Items for each project and get the web.config files that way.
I got everything as described but still nothing! Found on the other thread here that files need to be in ANSI, did that and still nothing!
Can this be a Windows 7 issue?

Please help!

Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Generator GenXisT BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 9 November 3rd, 2009 11:52 AM
Product code generator yogeshyl Excel VBA 1 October 3rd, 2007 10:50 AM
Code generator and some other things Hyzac BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 13 October 9th, 2006 02:06 PM
The best code documentation generator for .VS 2005 woojtii C# 2005 1 July 3rd, 2006 01:17 PM
XSLT code generator for C# asap XSLT 0 April 14th, 2006 03:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.