Showing posts with label assembly. Show all posts
Showing posts with label assembly. Show all posts

Saturday, March 24, 2012

Exclude languages from assembly?

Is it possible to exclude all of the different languages from the assembly? I build web applications that are only used locally, so have no need for all of the different languages, and every time I expand my Bin folder in VS I have to scroll down past all of the folders to see what dlls I've got. Would be nice to have some configuration setting to disable the additional language resources if not needed...?

Thanks,

eddie

i just set up another development machine today and noticed the same problem, but its never happened on other machines


Hi Eddie,

If you want to disable such feature, you may exclude the lines like the following one from the AjaxControlToolkit.csproj file.

<EmbeddedResourceInclude="ScriptResources\ScriptResources.ar.resx"Condition=" '$(Configuration)'=='Release' ">

<SubType>Designer</SubType>

</EmbeddedResource>

You may need to use notepad to edit it.


Hi Raymond,

Thanks for your reply, and sorry it took me so long to reply. I just tried this out - I downloaded the current source for the toolkit, edited the AjaxControlToolkit.csproj file, removing all references to those ScriptResources.[culture].resx and then did a build. I took the resulting dll and replaced the current dll in VS (replaced the reference), but when I did a build it put back all of those folders... Am I missing something?

Thanks again,

eddie


Eddie,

Here is the .csproj file of mine:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B3B89160-3224-476E-9076-70B500C816CF}</ProjectGuid>
<OutputType>Library</OutputType>
<NoStandardLibraries>false</NoStandardLibraries>
<AssemblyName>AjaxControlToolkit</AssemblyName>
<RootNamespace>AjaxControlToolkit</RootNamespace>
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>AjaxControlToolkit.snk</AssemblyOriginatorKeyFile>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>.\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>.\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.Services" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="AlwaysVisibleControl\AlwaysVisibleControlBehavior.js" />
<EmbeddedResource Include="CascadingDropDown\CascadingDropDownBehavior.js" />
<EmbeddedResource Include="CollapsiblePanel\CollapsiblePanelBehavior.js" />
<EmbeddedResource Include="Common\Common.js" />
<EmbeddedResource Include="ConfirmButton\confirmButtonBehavior.js" />
<EmbeddedResource Include="DropShadow\DropShadowBehavior.js" />
<EmbeddedResource Include="HoverMenu\HoverMenuBehavior.js" />
<EmbeddedResource Include="ModalPopup\ModalPopupBehavior.js" />
<EmbeddedResource Include="NumericUpDown\NumericUpDownBehavior.js" />
<EmbeddedResource Include="PopupControl\PopupControlBehavior.js" />
<EmbeddedResource Include="ReorderList\DropWatcherBehavior.js" />
<EmbeddedResource Include="ResizableControl\ResizableControlBehavior.js" />
<EmbeddedResource Include="RoundedCorners\RoundedCornersBehavior.js" />
<EmbeddedResource Include="TextboxWatermark\TextboxWatermark.js" />
<EmbeddedResource Include="ToggleButton\ToggleButton.js" />
</ItemGroup>
<ItemGroup>
<Compile Include="Accordion\AccordionCommandEventArgs.cs" />
<Compile Include="Accordion\AccordionItemEvent.cs" />
<Compile Include="Accordion\AccordionItemType.cs" />
<Compile Include="Accordion\Accordion.cs" />
<Compile Include="Accordion\AccordionContentPanel.cs" />
<Compile Include="Accordion\AccordionDesigner.cs" />
<Compile Include="Accordion\AccordionExtender.cs" />
<Compile Include="Accordion\AccordionExtenderDesigner.cs" />
<Compile Include="Accordion\AccordionPane.cs" />
<Compile Include="Accordion\AccordionPaneCollection.cs" />
<Compile Include="Accordion\AutoSize.cs" />
<Compile Include="AlwaysVisibleControl\AlwaysVisibleControlDesigner.cs" />
<Compile Include="AlwaysVisibleControl\AlwaysVisibleControlExtender.cs" />
<Compile Include="AlwaysVisibleControl\HorizontalSide.cs" />
<Compile Include="AlwaysVisibleControl\VerticalSide.cs" />
<Compile Include="Animation\Animation.cs" />
<Compile Include="Animation\AnimationExtender.cs" />
<Compile Include="Animation\AnimationExtenderDesigner.cs" />
<Compile Include="Animation\AnimationJavaScriptConverter.cs" />
<Compile Include="Animation\AnimationScripts.cs" />
<Compile Include="AutoComplete\AutoCompleteDesigner.cs" />
<Compile Include="AutoComplete\AutoCompleteExtender.cs" />
<Compile Include="Calendar\CalendarDesigner.cs" />
<Compile Include="Calendar\CalendarExtender.cs" />
<Compile Include="CascadingDropDown\CascadingDropDownDesigner.cs" />
<Compile Include="CascadingDropDown\CascadingDropDownExtender.cs" />
<Compile Include="CascadingDropDown\CascadingDropDownNameValue.cs" />
<Compile Include="CollapsiblePanel\CollapsiblePanelDesigner.cs" />
<Compile Include="CollapsiblePanel\CollapsiblePanelExpandDirection.cs" />
<Compile Include="CollapsiblePanel\CollapsiblePanelExtender.cs" />
<Compile Include="Common\BoxSide.cs" />
<Compile Include="Common\DateTimeScripts.cs" />
<Compile Include="Common\ThreadingScripts.cs" />
<Compile Include="Common\CommonToolkitScripts.cs" />
<Compile Include="Compat\DragDrop\DragDropScripts.cs" />
<Compile Include="Compat\Timer\TimerScript.cs" />
<Compile Include="ConfirmButton\confirmButtonDesigner.cs" />
<Compile Include="ConfirmButton\confirmButtonExtender.cs" />
<Compile Include="DragPanel\DragPanelDesigner.cs" />
<Compile Include="DragPanel\DragPanelExtender.cs" />
<Compile Include="DropDown\DropDownDesigner.cs" />
<Compile Include="DropDown\DropDownExtender.cs" />
<Compile Include="DropShadow\DropShadowDesigner.cs" />
<Compile Include="DropShadow\DropShadowExtender.cs" />
<Compile Include="DynamicPopulate\DynamicPopulateDesigner.cs" />
<Compile Include="DynamicPopulate\DynamicPopulateExtender.cs" />
<Compile Include="ExtenderBase\AnimationExtenderControlBase.cs" />
<Compile Include="ExtenderBase\ClientCssResourceAttribute.cs" />
<Compile Include="ExtenderBase\ClientPropertyNameAttribute.cs" />
<Compile Include="ExtenderBase\ClientScriptResourceAttribute.cs" />
<Compile Include="ExtenderBase\ComponentReferenceAttribute.cs" />
<Compile Include="ExtenderBase\Constants.cs" />
<Compile Include="ExtenderBase\Design\ExtendedTypeDescriptionProvider.cs" />
<Compile Include="ExtenderBase\Design\ExtenderBaseDesignerHelpers.cs" />
<Compile Include="ExtenderBase\Design\ExtenderControlBaseDesigner.cs" />
<Compile Include="ExtenderBase\Design\ExtenderControlBaseDesigner.PageMethodSignatures.cs" />
<Compile Include="ExtenderBase\Design\ExternalReferences.cs" />
<Compile Include="ExtenderBase\Design\PageMethodSignatureAttribute.cs" />
<Compile Include="ExtenderBase\Design\TypeControlIDConverter.cs" />
<Compile Include="ExtenderBase\DynamicPopulateExtenderControlBase.cs" />
<Compile Include="ExtenderBase\ElementReferenceAttribute.cs" />
<Compile Include="ExtenderBase\ExtenderControlBase.cs" />
<Compile Include="ExtenderBase\ExtenderControlEventAttribute.cs" />
<Compile Include="ExtenderBase\ExtenderControlMethodAttribute.cs" />
<Compile Include="ExtenderBase\ExtenderControlPropertyAttribute.cs" />
<Compile Include="ExtenderBase\IClientStateManager.cs" />
<Compile Include="ExtenderBase\IControlResolver.cs" />
<Compile Include="ExtenderBase\ProfilePropertyBinding.cs" />
<Compile Include="ExtenderBase\ProfilePropertyBindingCollection.cs" />
<Compile Include="ExtenderBase\RequiredPropertyAttribute.cs" />
<Compile Include="ExtenderBase\RequiredScriptAttribute.cs" />
<Compile Include="ExtenderBase\ResolveControlEventArgs.cs" />
<Compile Include="ExtenderBase\ResolveControlEventHandler.cs" />
<Compile Include="ExtenderBase\ScriptControlBase.cs" />
<Compile Include="ExtenderBase\ScriptObjectBuilder.cs" />
<Compile Include="ExtenderBase\ScriptUserControl.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ExtenderBase\ServicePathConverter.cs" />
<Compile Include="FilteredTextBox\FilteredTextBoxDesigner.cs" />
<Compile Include="FilteredTextBox\FilteredTextBoxExtender.cs" />
<Compile Include="FilteredTextBox\FilterModes.cs" />
<Compile Include="FilteredTextBox\FilterTypes.cs" />
<Compile Include="HoverExtender\HoverExtenderDesigner.cs" />
<Compile Include="HoverExtender\HoverExtender.cs" />
<Compile Include="HoverMenu\HoverMenuDesigner.cs" />
<Compile Include="HoverMenu\HoverMenuExtender.cs" />
<Compile Include="HoverMenu\HoverMenuPopupPosition.cs" />
<Compile Include="ListSearch\ListSearchDesigner.cs" />
<Compile Include="ListSearch\ListSearchExtender.cs" />
<Compile Include="ListSearch\ListSearchPromptPosition.cs" />
<Compile Include="MaskedEdit\Compatibility\BaseValidator.cs" />
<Compile Include="MaskedEdit\Compatibility\IBaseCompareValidatorAccessor.cs" />
<Compile Include="MaskedEdit\Compatibility\IBaseValidatorAccessor.cs" />
<Compile Include="MaskedEdit\Compatibility\IWebControlAccessor.cs" />
<Compile Include="MaskedEdit\Compatibility\ValidatorHelper.cs" />
<Compile Include="MaskedEdit\MaskedEditCommon.cs" />
<Compile Include="MaskedEdit\MaskedEditDesigner.cs" />
<Compile Include="MaskedEdit\MaskedEditEnum.cs" />
<Compile Include="MaskedEdit\MaskedEditExtender.cs" />
<Compile Include="MaskedEdit\MaskedEditTypeConvert.cs" />
<Compile Include="MaskedEdit\MaskedEditValidator.cs" />
<Compile Include="ModalPopup\ModalPopupExtender.cs" />
<Compile Include="ModalPopup\ModalPopupDesigner.cs" />
<Compile Include="MutuallyExclusiveCheckBox\MutuallyExclusiveCheckBoxDesigner.cs" />
<Compile Include="MutuallyExclusiveCheckBox\MutuallyExclusiveCheckBoxExtender.cs" />
<Compile Include="NoBot\NoBot.cs" />
<Compile Include="NoBot\NoBotDesigner.cs" />
<Compile Include="NoBot\NoBotEventArgs.cs" />
<Compile Include="NoBot\NoBotExtender.cs" />
<Compile Include="NoBot\NoBotState.cs" />
<Compile Include="NumericUpDown\NumericUpDownDesigner.cs" />
<Compile Include="NumericUpDown\NumericUpDownExtender.cs" />
<Compile Include="PagingBulletedList\PagingBulletedListDesigner.cs" />
<Compile Include="PagingBulletedList\PagingBulletedListExtender.cs" />
<Compile Include="PasswordStrength\PasswordStrengthExtenderDesigner.cs" />
<Compile Include="PasswordStrength\PasswordStrengthExtenderExtender.cs" />
<Compile Include="PasswordStrength\PropertyEnumerations.cs" />
<Compile Include="PopupControl\PopupControlDesigner.cs" />
<Compile Include="PopupControl\PopupControlExtender.cs" />
<Compile Include="PopupExtender\PopupExtender.cs" />
<Compile Include="PopupExtender\PopupExtenderDesigner.cs" />
<Compile Include="PopupExtender\PositioningMode.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="Rating\Rating.cs" />
<Compile Include="Rating\RatingDesigner.cs" />
<Compile Include="Rating\RatingExtender.cs" />
<Compile Include="ReorderList\BulletedList.cs" />
<Compile Include="ReorderList\BulletedListItem.cs" />
<Compile Include="ReorderList\DraggableListItemExtender.cs" />
<Compile Include="ReorderList\DropWatcherExtender.cs" />
<Compile Include="ReorderList\ReorderHandleAlignment.cs" />
<Compile Include="ReorderList\ReorderList.cs" />
<Compile Include="ReorderList\ReorderListDesigner.cs" />
<Compile Include="ReorderList\ReorderListEvents.cs" />
<Compile Include="ReorderList\ReorderListInsertLocation.cs" />
<Compile Include="ReorderList\ReorderListItem.cs" />
<Compile Include="ReorderList\ReorderListItemCollection.cs" />
<Compile Include="ReorderList\ReorderListItemLayoutType.cs" />
<Compile Include="ReorderList\RepeatDirection.cs" />
<Compile Include="ResizableControl\ResizableControlDesigner.cs" />
<Compile Include="ResizableControl\ResizableControlExtender.cs" />
<Compile Include="RoundedCorners\BoxCorners.cs" />
<Compile Include="RoundedCorners\RoundedCornersDesigner.cs" />
<Compile Include="RoundedCorners\RoundedCornersExtender.cs" />
<Compile Include="Tabs\TabPanelDesigner.cs" />
<Compile Include="ToolkitScriptManager\ScriptCombineAttribute.cs" />
<Compile Include="Slider\SliderDesigner.cs" />
<Compile Include="Slider\SliderExtender.cs" />
<Compile Include="Slider\SliderOrientation.cs" />
<Compile Include="SlideShow\Slide.cs" />
<Compile Include="SlideShow\SlideShowDesigner.cs" />
<Compile Include="SlideShow\SlideShowExtender.cs" />
<Compile Include="Tabs\TabContainer.cs" />
<Compile Include="Tabs\TabContainerDesigner.cs" />
<Compile Include="Tabs\TabPanel.cs" />
<Compile Include="Tabs\TabPanelCollection.cs" />
<Compile Include="TextboxWatermark\TextboxWatermarkExtender.cs" />
<Compile Include="TextboxWatermark\TextboxWatermarkExtenderDesigner.cs" />
<Compile Include="ToggleButton\ToggleButtonExtender.cs" />
<Compile Include="ToggleButton\ToggleButtonExtenderDesigner.cs" />
<Compile Include="ToolkitScriptManager\ToolkitScriptManager.cs" />
<Compile Include="UpdatePanelAnimation\UpdatePanelAnimationDesigner.cs" />
<Compile Include="UpdatePanelAnimation\UpdatePanelAnimationExtender.cs" />
<Compile Include="ValidatorCallout\ValidatorCalloutDesigner.cs" />
<Compile Include="ValidatorCallout\ValidatorCalloutExtender.cs" />
</ItemGroup>
<ItemGroup>
<None Include="AjaxControlToolkit.snk" />
<None Include="app.config" />
<None Include="ExtenderBase\Design\ExternalReferences.t4" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Accordion\AccordionBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ReorderList\DraggableListItemBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="PasswordStrength\PasswordStrengthExtenderBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="FilteredTextBox\FilteredTextBoxBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Rating\RatingBehavior.js" />
<EmbeddedResource Include="PagingBulletedList\PagingBulletedListBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DynamicPopulate\DynamicPopulateBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ExtenderBase\BaseScripts.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Animation\AnimationBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Animation\Animations.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UpdatePanelAnimation\UpdatePanelAnimationBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="NoBot\NoBotBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Slider\SliderBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Slider\Images\slider_h_handle.gif" />
<EmbeddedResource Include="Slider\Images\slider_h_rail.gif" />
<EmbeddedResource Include="Slider\Images\slider_v_handle.gif" />
<EmbeddedResource Include="Slider\Images\slider_v_rail.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MutuallyExclusiveCheckBox\MutuallyExclusiveCheckBoxBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DropDown\drop-arrow.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DropDown\DropDownBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ValidatorCallout\alert-large.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ValidatorCallout\ValidatorCalloutBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ValidatorCallout\alert-small.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ValidatorCallout\close.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HoverExtender\HoverBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="PopupExtender\PopupBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DragPanel\FloatingBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Compat\DragDrop\DragDropScripts.js" />
</ItemGroup>
<ItemGroup>
<Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Compat\Timer\Timer.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Common\DateTime.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Calendar\CalendarBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Calendar\arrow-right.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Calendar\arrow-left.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\Tabs.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-right.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-line.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-left.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-hover.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-hover-right.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-hover-left.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-active.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-active-right.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\tab-active-left.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MaskedEdit\MaskedEditBehavior.js" />
<EmbeddedResource Include="MaskedEdit\MaskedEditValidator.js" />
<EmbeddedResource Include="Properties\Resources.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<CustomToolNamespace>AjaxControlToolkit</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tabs\Tabs.css" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Calendar\Calendar.css" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Slider\Slider.css" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DropDown\DropDown.css" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="AutoComplete\AutoCompleteBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Common\Threading.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="SlideShow\SlideShowBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ListSearch\ListSearchBehavior.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Accordion\Accordion.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="AlwaysVisibleControl\AlwaysVisible.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Animation\Animation.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="AutoComplete\AutoComplete.ico" />
<EmbeddedResource Include="Calendar\Calendar.ico" />
<EmbeddedResource Include="CascadingDropDown\CascadingDropDown.ico" />
<EmbeddedResource Include="CollapsiblePanel\CollapsiblePanel.ico" />
<EmbeddedResource Include="ConfirmButton\ConfirmButton.ico" />
<EmbeddedResource Include="DragPanel\DragPanel.ico" />
<EmbeddedResource Include="DropDown\DropDown.ico" />
<EmbeddedResource Include="DropShadow\DropShadow.ico" />
<EmbeddedResource Include="DynamicPopulate\DynamicPopulate.ico" />
<EmbeddedResource Include="FilteredTextBox\FilteredTextBox.ico" />
<EmbeddedResource Include="HoverMenu\HoverMenu.ico" />
<EmbeddedResource Include="ListSearch\ListSearch.ico" />
<EmbeddedResource Include="MaskedEdit\MaskedEdit.ico" />
<EmbeddedResource Include="ModalPopup\ModalPopup.ico" />
<EmbeddedResource Include="MutuallyExclusiveCheckBox\MutuallyExclusiveCheckBox.ico" />
<EmbeddedResource Include="NoBot\NoBot.ico" />
<EmbeddedResource Include="NumericUpDown\NumericUpDown.ico" />
<EmbeddedResource Include="PagingBulletedList\PagingBulletedList.ico" />
<EmbeddedResource Include="PasswordStrength\PasswordStrength.ico" />
<EmbeddedResource Include="PopupControl\PopupControl.ico" />
<EmbeddedResource Include="Rating\Rating.ico" />
<EmbeddedResource Include="ReorderList\ReorderList.ico" />
<EmbeddedResource Include="ResizableControl\ResizableControl.ico" />
<EmbeddedResource Include="RoundedCorners\RoundedCorners.ico" />
<EmbeddedResource Include="ScriptResources\ScriptResources.resx">
<SubType>Designer</SubType>
</EmbeddedResource>

<EmbeddedResource Include="Slider\Slider.ico" />
<EmbeddedResource Include="SlideShow\SlideShow.ico" />
<EmbeddedResource Include="Tabs\Tabs.ico" />
<EmbeddedResource Include="TextboxWatermark\TextboxWatermark.ico" />
<EmbeddedResource Include="ToggleButton\ToggleButton.ico" />
<EmbeddedResource Include="UpdatePanelAnimation\UpdatePanelAnimation.ico" />
<EmbeddedResource Include="ValidatorCallout\ValidatorCallout.ico" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
<ProjectExtensions>
<VisualStudio AllowExistingFolder="true" />
</ProjectExtensions>
<!-- Strip the comments out of any JavaScript files that were embedded as resources -->
<UsingTask TaskName="AjaxControlToolkit.JavaScriptCommentStripperTask" AssemblyFile="$(MSBuildProjectDirectory)\..\Binaries\JavaScriptCommentStripper.dll" />
<PropertyGroup>
<CompileDependsOn>
StripJavaScriptComments;
$(CompileDependsOn)
</CompileDependsOn>
</PropertyGroup>
<Target Name="StripJavaScriptComments" Condition=" '$(ConfigurationName)'=='Release' ">
<CreateItem Include="@.(ManifestNonResxWithNoCultureOnDisk)" Condition="'%(Extension)'=='.js'">
<Output TaskParameter="Include" ItemName="EmbeddedJavaScriptSourceFiles" />
</CreateItem>
<JavaScriptCommentStripperTask SourceFiles="@.(EmbeddedJavaScriptSourceFiles)" DestinationFiles="@.(EmbeddedJavaScriptSourceFiles)" />
</Target>
</Project>

It works perfectly as you required.


Thanks, I tried it again and it worked. Must have missed something before. Your project file didn't work for me - got all kinds of errors, but I went back and re-edited the original project file and did a new build and that worked.

Thanks again!

eddie

Wednesday, March 21, 2012

Errors after Installing RC1 and the Dec CTP

Getting this one again: The type or namespace name 'UI' does not exist in the namespace 'Microsoft.Web' (are you missing an assembly reference?)

The following that I have checked:

1.) Made sure the System.Web.Extensions.dll was in the bin folder

2.) Copied and renamed the Web_CTP.config file to web.config and added it to my project

Anyone else hit this?

Make sure the dlls are in the GAC
Dropped them in the GAC, still no love.

Rick

Last step I know, check your web.confighttp://alpascual.com/blog/al/archive/2006/10/24/Manually-upgrading-from-Atlas-to-ASP.NET-2.0-Ajax.aspx


Little more information:

Created a new website for kicks on the same machine using the Ajax CTP Template. Works fine. Did a diff on the two web.config files and the only difference was:

<buildProviders>
<add extension="*.asbx" type="Microsoft.Web.Preview.Services.BridgeBuildProvider"/>
</buildProviders>

Took this out because it can only be placed in the top level of the site. Is there a problem with using this web.config file or adding AJAX specific settings in a folder below the root? I originally had all of this stuff in the top level web.config file, but was causing the problems described above so moved it ot the folder in which my ajax code was located.


It sounds like your referencing "Microsoft.Web" in your code somewhere (markup or code behind). The namespacing has all changed, so you'll need to modify all your existing references accordingly.
No references to that NS anywhere...
No references to that NS anywhere...
hello.

you're?talking?about?a?top?web.confg?file...are?you?saying?that?your?app?is?a?subdir?of?another?web?app??if?so,?then?you?should?make?sure?that?your?top?web?app?is?configured?to?use?asp.net?2.0?and?the?ajax?entries?should?be?put?in?that?top?condig?file.

another thing you should do: check for the scriptresourcehandler. make sure it's on your web?.config file. if this still doesn't solve your problem, use fiddler to see what you're getting from the server and then let us know.
MS changed the namespace in RC1 to System.Web.Extensions, this might be your problem. I had old statements in web.config from Beta 2 for Microsoft.Web.Extensions. I changed it to System and wham, it works. Give it a whirl.

Error25Could not load file or assembly Microsoft.Web.Extensions, Version=1.0.61025.0, Cult

Hi there,

I am just trying to learn AJAX at the moment and have run into a problem. I have copied over the example for cascading dropdowns and this is where I have the above error.
The error occurs in the web.config file on this line

<

addassembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

Can anyone advise what I need to change?

The sample is for old ajax version.

you need to copy latest ASP.NET AJAX web.config to your projects web.config

below is my cascading code for new version for you

ASPX

<%@. Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="CascadingDropDownDemo._Default" EnableEventValidation="false" %>

<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server">
</asp:ScriptManager>
<div>

<asp:UpdatePanel ID="upMain" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddl1" runat="server" Width="275px">
</asp:DropDownList><br />
<asp:DropDownList ID="ddl2" runat="server" Width="275px">
</asp:DropDownList><br />
<asp:DropDownList ID="ddl3" runat="server" Width="275px">
</asp:DropDownList><br />
<cc1:CascadingDropDown ID="ccd1" runat="server" TargetControlID="ddl1" Category="Make"
PromptText="Please select a make" ServicePath="CarsService.asmx" ServiceMethod="GetDropDownContents">
</cc1:CascadingDropDown>
<cc1:CascadingDropDown ID="ccd2" runat="server" TargetControlID="ddl2" Category="Model"
PromptText="Please select a model" ServicePath="CarsService.asmx" ServiceMethod="GetDropDownContents"
ParentControlID="ddl1">
</cc1:CascadingDropDown>
<cc1:CascadingDropDown ID="ccd3" runat="server" TargetControlID="ddl3" Category="Color"
PromptText="Please select a color" ServicePath="CarsService.asmx" ServiceMethod="GetDropDownContents"
ParentControlID="ddl2">
</cc1:CascadingDropDown>
<asp:Button ID="btnClick" runat="server" Text="I want this car." Width="282px" OnClick="btnClick_Click" /><br />
<br />
<asp:Label ID="lblInformation" runat="server" Text="[ No sellection made yet. ]"
Width="279px"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel> </div>
</form>
</body>
</html>

Code Behind

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace CascadingDropDownDemo
{
public partial class _Default : System.Web.UI.Page
{


protected void Page_Load(object sender, EventArgs e)
{

}

protected void btnClick_Click(object sender, EventArgs e)
{
// Get selected values
string make = ddl1.SelectedItem.Text;
string model = ddl2.SelectedItem.Text;
string color = ddl3.SelectedItem.Text;

// Output result string based on which values are specified
if (string.IsNullOrEmpty(make))
{
lblInformation.Text = "Please select a make.";
}
else if (string.IsNullOrEmpty(model))
{
lblInformation.Text = "Please select a model.";
}
else if (string.IsNullOrEmpty(color))
{
lblInformation.Text = "Please select a color.";
}
else
{
lblInformation.Text = string.Format("You have chosen a {0} {1} {2}. Nice car!", color, make, model);
}
}

[WebMethod]
[System.Web.Script.Services.ScriptMethod()]
public static AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownContentsPageMethod(string knownCategoryValues, string Category)
{
CarsService cs = new CarsService();
return cs.GetDropDownContents(knownCategoryValues, Category);
}

protected void ddl3_SelectedIndexChanged(object sender, EventArgs e)
{
string make = ddl1.SelectedItem.Text;
string model = ddl2.SelectedItem.Text;
string color = ddl3.SelectedItem.Text;

// Output result string based on which values are specified
if (string.IsNullOrEmpty(make))
{
lblInformation.Text = "Please select a make.";
}
else if (string.IsNullOrEmpty(model))
{
lblInformation.Text = "Please select a model.";
}
else if (string.IsNullOrEmpty(color))
{
lblInformation.Text = "Please select a color.";
}
else
{
lblInformation.Text = string.Format("You have chosen a {0} {1} {2}. Nice car!", color, make, model);
}
}
}
}

web services code

using System;
using System.Web;
using System.Collections;
using System.Collections.Specialized;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml;

using AjaxControlToolkit.Design;
namespace CascadingDropDownDemo
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
public class CarsService : System.Web.Services.WebService
{
// Member variables
private static XmlDocument _document;
private static object _lock = new object();


// we make these public statics just so we can call them from externally for the
// page method call
//
public static XmlDocument Document
{
get
{
lock (_lock)
{
if (_document == null)
{
// Read XML data from disk
_document = new XmlDocument();
_document.Load(HttpContext.Current.Server.MapPath("~/CarsService.xml"));
}
}
return _document;
}
}

public static string[] Hierarchy
{
get
{

return new string[] { "make", "model" };
}
}

/// <summary>
/// Constructor to initialize members
/// </summary>
public CarsService()
{
}


/// <summary>
/// Helper web service method
/// </summary>
/// <param name="knownCategoryValues">private storage format string</param>
/// <param name="category">category of DropDownList to populate</param>
/// <returns>list of content items</returns>
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownContents(string knownCategoryValues, string category)
{
// Get a dictionary of known category/value pairs
StringDictionary knownCategoryValuesDictionary = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);

// Perform a simple query against the data document
return AjaxControlToolkit.CascadingDropDown.QuerySimpleCascadingDropDownDocument(Document, Hierarchy, knownCategoryValuesDictionary, category);
}
}

}

Good luck


Hi MIB426,

Thanks heaps for your code...I am pretty new to both .NET & AJAX so I need to be a pain and ask a couple more questions.

Where can I get the web.config file from?

This part of your code (web services code) where am I meant to add this to?

Thanks heaps for your help!

using System;
using System.Web;
using System.Collections;
using System.Collections.Specialized;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml;

using AjaxControlToolkit.Design;
namespace CascadingDropDownDemo
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
public class CarsService : System.Web.Services.WebService
{
// Member variables
private static XmlDocument _document;
private static object _lock = new object();


// we make these public statics just so we can call them from externally for the
// page method call
//
public static XmlDocument Document
{
get
{
lock (_lock)
{
if (_document == null)
{
// Read XML data from disk
_document = new XmlDocument();
_document.Load(HttpContext.Current.Server.MapPath("~/CarsService.xml"));
}
}
return _document;
}
}

public static string[] Hierarchy
{
get
{

return new string[] { "make", "model" };
}
}

/// <summary>
/// Constructor to initialize members
/// </summary>
public CarsService()
{
}


/// <summary>
/// Helper web service method
/// </summary>
/// <param name="knownCategoryValues">private storage format string</param>
/// <param name="category">category of DropDownList to populate</param>
/// <returns>list of content items</returns>
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownContents(string knownCategoryValues, string category)
{
// Get a dictionary of known category/value pairs
StringDictionary knownCategoryValuesDictionary = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);

// Perform a simple query against the data document
return AjaxControlToolkit.CascadingDropDown.QuerySimpleCascadingDropDownDocument(Document, Hierarchy, knownCategoryValuesDictionary, category);
}
}

}


Sorry its me again.

Ok I have created a new page called default2.aspx and added the above code. I created a new web service "WebService" and added the above code into WebService.cs.

When I try run the the form I get an error saying "Error 29 Could not create type 'WebService'. C:\Users\shane\Desktop\AJAXEnabledWebSite4\WebService.asmx 1"

What else do I need to change.....Please help!!!!!!!

Thank you

Error1Could not load file or assembly Microsoft.Web.Preview or one of its dependencies. Th

Trying to run the samples and this is the error I get. After looking around I see others have gotten this error but with the beta versions.

My install is not a beta release and I have not had any of the betas installed.

Any ideas?

I would look to your web config file or possibly your machine config file. Im betting you somehow got some old beta settings in it. possibly do a search for Microsoft.Web.Preview in your entire solution.

AjaxButter


The other thing i just noticed is you said you were running the samples. Im betting your using an old compilation of the sample files that was meant to use the beta version redownload the sample your using and give it another go.

Sorry for the double post

AjaxButter


Hi,

If you have installed the AJAX Extensions 1.0, the assembly Microsoft.Web.Preview not exists.

You must to replace all the references and assemblies in the samples for run this.

Hope this helps


Replace with what?

How the Microsoft.Web.Preview not exists with the AJAX extension 1.0, you must to work with the System.Web.Extensions assembly and System.Web.Extensions.Design assembly, installed in the Microsoft ASP.NET folder in Program Files folder.

Replace the web.config with the web.config that is generated in a new ASP.NET AJAX Enabled Web Site.

Or replace your web.config with the web.config file that is in the Microsoft ASP.NET folder.



From InstallationInstructions.txt:

Completing the Installation
--------
After downloading and uncompressing the sample files, copy Microsoft.Web.Preview.dll from the
ASP.NET AJAX CTP installation directory (%Program Files%\Microsoft ASP.NET\ASP.NET 2.0 AJAX
Futures January CTP\v1.0.61025\) to the Bin directory of each sample application. For example,
copy Microsoft.Web.Preview.dll to <installation path>\Contacts\Bin, where <installation path>
is the file path where the ASP.NET AJAX Samples were installed.

You must also copy AjaxControlToolkit.dll from the AJAX Control Toolkit directory to the Bin
directory of each sample application. For example, copy <toolkit installation path>
\AjaxControlToolkit\SampleWebSite\Bin\AjaxControlToolkit.dll to <installation path>\Contacts\Bin,
where <toolkit installation path> is the installation path for the AJAX Control Toolkit and
<installation path> is the file path where the ASP.NET AJAX Samples were installed.

Earlier in InstallationInstructions.txt are the download locations for the Futures CTP and the Control Toolkit.