Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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...
  #2 (permalink)  
Old November 4th, 2009, 07:29 PM
Authorized User
 
Join Date: Mar 2008
Location: New York, NY, USA.
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
  #3 (permalink)  
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...
  #4 (permalink)  
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?
  #5 (permalink)  
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.
  #6 (permalink)  
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.