Error service Microsoft. Practices. compositeweb. Interfaces. isitemapbuilderservice is not available in

Source: Internet
Author: User

1. Install guidanceautomationtoolkitforvs2008.msi and wcsf to obtain projects created by others from VSS. Because others' installation paths may be different from their own

When you add business module, some Enterprise Library DLL files cannot be found. At this time, only the Enterprise Library DLL files are successfully added.

Moduleinitializer/controller/defaultviewpresenter and their respective interface files. However, the webform module does not successfully add files and compilation fails.

To solve this problem:
1). In the simplest way, You can manually create a folder library under the root directory of solution, copy the DLL of several enterprise libraries used to the bottom, and copy the unfinished business

Module deletion, which can be solved after reconstruction.
2) manually add the required Enterprise Library DLL references to the buiness module based on the business module that has not been created, and add them to the websites side for addition.

For a folder with the same name as business module, right-click the folder and execute Web Client factory --> add page (with presenter) C # To give the page a name.

If userlist. aspx is used, the userlistpresenter and iuserlistview classes are automatically added to the Views folder of the business module.

Of course, the page code will automatically inherit iuserlistview. The compilation is successful, but an error occurs during running.
Error message:
Service Microsoft. Practices. compositeweb. Interfaces. isitemapbuilderservice is not available in the current context.
After comparing the projects that can run normally, we found that a web. config file is missing in the sub-folder with the same name as the business module under websites.

As follows:
<Configuration>
<Configsections>
<Sectiongroup name = "compositeweb">
<Section name = "modules" type = "Microsoft. Practices. compositeweb. configuration. modulesconfigurationsection,

Microsoft. Practices. compositeweb "/>
<Section name = "Authorization"

Type = "Microsoft. Practices. compositeweb. configuration. authorizationconfigurationsection,

Microsoft. Practices. compositeweb "/>
</Sectiongroup>
</Configsections>
<Compositeweb>
<Modules>
<Module name = "usermaint" assemblyname = "usermaint" virtualpath = "~ /Usermaint ">
<Dependencies>
<Dependency module = "shell"/>
</Dependencies>
</Module>
</Modules>
<Authorization>
<! -- Add your own view-Rule mappings here:
E.g .:
<Rule url = "~ /Helloworld/default. aspx "rule =" allowaccesshelloworlddefaultview "/>
-->
</Authorization>
</Compositeweb>
<Appsettings/>
<Connectionstrings/>
<System. Web/>
</Configuration>

Modify <Module name = "usermaint" assemblyname = "usermaint" virtualpath = "~ /Usermaint ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.