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 / Enterprise Tools / December 2004

Tip: Looking for answers? Try searching our database.

Web UI Enterprise Template Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 03 Dec 2004 14:19 GMT
Hello, I have a few questions about Enterprise Templates.

I would like to create an Enterprise Template that only has a User
Interface.  We are not enforcing all three application layers.  In making my
ETP,

I started VS.Net, choose Enterprise Template Project.
Added a VB Web App to the Enterprise Template Project
Created a copy of the DAP.TDL and used that for the Policy file of the ETP.
Added my custom code to the VB Web App.

I then started integration into my VS.NET by

Removing the Project GUID
Removing the unneccessary files
Added the element to the etp file. below
<GLOBALENTRY>
           <NAME>TPDELEMENTTYPE</NAME>
           <VALUE>etpUIPojects</VALUE>
       </GLOBALENTRY>
Then I changed these
<Views>
           <ProjectExplorer>
               <File>WebTemplate\WebTemplate.vbproj</File>
           </ProjectExplorer>
       </Views>
       <References>
           <Reference>
               <FILE>WebTemplate\WebTemplate.vbproj</FILE>
        <REQUIRESURL>1</REQUIRESURL>
           </Reference>
       </References>

Here is the problem:

I can see the project in the VS.Net IDE however after creating the a new web
project, based on the Ent. Template, the URL is:

http://localhost/TestProj2/TestWebProj_WebTemplate/

Where TestProj2 is the name I specified for the Project and TestWebProj is
the URL I specified.

I would like the URL to be:
http://localhost/TestWebProj

What am I doing wrong?
Steven Powell (MSFT) - 07 Dec 2004 23:52 GMT
Mike -

You're not actually doing anything wrong, but you are running into a design
limitation of using a top-level ETP project with static project prototypes.
In order to prevent naming collisions between two applications with the
same-named layers (e.g. WebUI), our project creation prepends the ETP name to
the web project names to try to guarantee uniqueness.

There is a workaround, but it's a bit more involved. If you look at the MSDN
sample found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/ht
ml/vstchEnterpriseTemplatesBuildingApplicationConstructionKit.asp
,
it provides a sample that uses a top-level wizard that creates the entire
initial application structure. This example is more customizable, and you can
control the exact naming and pathing to your projects.  As a side benefit,
this method will be easier to port to work with VS 2005.

let me know if you have additional questions,
Steven Powell
Visual Studio - Enterprise Frameworks & Tools

> Hello, I have a few questions about Enterprise Templates.
>
[quoted text clipped - 43 lines]
>
> What am I doing wrong?
Mike Logan - 08 Dec 2004 14:15 GMT
Steven,

I am looking at the two options:
-  etp with subproject wizards
-  Custom Project Wizard

First Option
Can I control pathing for the project?
If there is custom content in the project, can I change that custom content?

Second Option
I don't know C++, is there much C++ experience required?

I am reading your article and the MSDN article titled "Walkthrough: Creating
a Template Using Subproject Wizards".

Thanks for your help Steven,

Mike Logan
Mike Logan - 08 Dec 2004 14:15 GMT
Steven,

I am looking at the two options:
-  etp with subproject wizards
-  Custom Project Wizard

First Option
Can I control pathing for the project?
If there is custom content in the project, can I change that custom content?

Second Option
I don't know C++, is there much C++ experience required?

I am reading your article and the MSDN article titled "Walkthrough: Creating
a Template Using Subproject Wizards".

Thanks for your help Steven,

Mike Logan
Steven Powell (MSFT) - 08 Dec 2004 17:45 GMT
Mike -

I'd suggest the 2nd approach. I believe the first runs into the same issue.
The good news is, you don't need to know C++ :). If you can muddle through a
little jscript, you can make the custom wizard work for you. I'm not much of
a jscript guy, either, but I managed to muddle through in creating the
sample. I'd suggest looking at the script for the A.C.K. sample, as well as
looking at the script that the standard language projects use. You can see
the implementation of the VB Web Application, for example, at this path
(assuming default install location):

C:\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\WebApplication

the Scripts folder contains the jscript for that wizard, and Templates
folder contains any project items that get included (note that with the
wizards, there's a step where it expands some templatized names (for example,
it can turn things like "[!output DEFAULT_CLIENT_SCRIPT]" into the value of
the DEFAULT_CLIENT_SCRIPT.

Both options allow you to provide custom content, though the 2nd option
(custom wizard) allows the most control (as you can provide parameters in UI
that get passed to the wizard to control what gets generated).

There's a lot of capabilities in the standard VS wizards & templates. The
Enterprise Template sample templates only scratch the surface.

glad to help.
Steven Powell

=========================

> Steven,
>
[quoted text clipped - 15 lines]
>
> Mike Logan

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.