Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

vstemplate error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
michael olson - 15 Dec 2005 15:47 GMT
I have implemented a vstemplate to create a new project type.  When I select
the template under my project type I get and error stating that it tried to
load an untrusted component and references my vstemplate assembly.  This is
the error I get in the application event log:
One or more Visual Studio templates do not match any installed project
packages.

I am signing the assembly with a strong name key file through the project
settings and I installed my assembly into the GAC.  I also tried using the
strong name in the <assembly> tag under the <wizardextension> tag in the
.vstemplate file, but this didn't help.  What am I doing wrong?



Thanks,



Mike Olson
Chuck Heatherly - 15 Dec 2005 16:01 GMT
>I have implemented a vstemplate to create a new project type.  When I select
>the template under my project type I get and error stating that it tried to
[quoted text clipped - 7 lines]
>strong name in the <assembly> tag under the <wizardextension> tag in the
>.vstemplate file, but this didn't help.  What am I doing wrong?

Mike,

I don't have a definitive answer for you, but I was hitting this exact same
situation, getting that error about an untrusted component.  Then instead of
strong naming the assembly, I added a post-build step to the template project
that copied the assembly into the DevEnvDir macro location, and used the
non-strong name in the <assembly> tag, then the error went away.

Chuck
michael olson - 15 Dec 2005 16:21 GMT
Thanks Chuck, that worked.

> >I have implemented a vstemplate to create a new project type.  When I select
> >the template under my project type I get and error stating that it tried to
[quoted text clipped - 17 lines]
>
> Chuck
michael olson - 15 Dec 2005 18:42 GMT
This works for now, but is this the correct way to do it?  The Documentation
states:
"The assembly that implements IWizard must be signed with a strong name and
installed into the global assembly cache."  I've also seen postings where you
can put the assembly in the public or private assemblies directories.  Is the
correct approach to put it in the GAC and will this be a necessity when
deploying this new package to user's machines?

Thanks

> Thanks Chuck, that worked.
>
[quoted text clipped - 19 lines]
> >
> > Chuck

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.