Answer Questions
danial1007 Custom Scheduler - for Report scheduling and subscription
Hi I'm looking for a scheduling control for ASP.NET - it should be quite generic but we will be using it to schedule report delivery The project requires we need to create our own custom interface similar to SQL Server Report Manager's for the scheduling and subscription functionality. Has anyone done something similar or know of any code libraries that may exist already We need to do this because our web app will interact with SSRS via the Web Service - we are not exposing Report Manager. Thanks Brian ...Show All
Fiander Problem with template parameter inference
Hi All, I want to extend all IEnumerable<T> with a method called SomeOp. Usually I would define the extension like this: static class Sequence { public static IEnumerable<T> SomeOp<T>(this IEnumerable<T> sequence, Func<T, bool> func) { return sequence; } } As the operation always returns an object of the input type, I want to be able to write: List<int> integers = new List<int>(); List<int> ints2 = integers.SomeOp(x => true); To do so, I defined the exension method like this: static class Sequence { public static Enum SomeOp<T, Enum>(this Enum sequence, Func<T, bool> func) where Enum : IEnumerable<T> { return sequence; } } Compil ...Show All
Eugen_S Is there any EDM xml reference document?
This CTP does not contain the mapping tools, so I have to write some mapping mannually. Unforturnately, after searching for a while online, there is no such document which tell how to define the EDM xml, mapping file,etc. Can anyone give some instruction how to get the document If you're familiar with XML Schema, you can look at the .xsd files that we shipped with the CTP: these are the same ones that are used internally to validate the .csdl, .msl, and .ssdl files at design- and run-time. In a default Visual Studio installation, you'll find them in the directory: C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas The files are: CodeGenerationSchema.xsd CSDLSchema.xsd CSDLSchemaTypes.xsd csmsl.xsd DMSchemaTypes.x ...Show All
Carlwave Problems about Import Namespaces in Text Templates.
Hi, When I use <#@ import namespace="System.Collections.Generic" #> in Text Template File (*.tt), it works fine. But when I use <#@ import namespace="System.Data" #> , why an error popup Error 1 Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference ) c:\Documents and Settings\Administrator\Local Settings\Temp\ap3-rmkb.0.cs 3 18 After I add <#@ assembly name = "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" #> It works. However, isn't System.Data exists in GAC like System.Collections.Generic Do I have to explicitly reference assemply "System.Data.dll" Th ...Show All
Mateusz Rajca IIS question.
I got Visual Studion 2005 from MS last year but didn't have a computer to load it on till now. I installed it on the weekend. I was surprised there were no installation instructions, not even on the CD, except for a long list of things that could go wrong. I managed to install with no problems but when it was finished there was a cryptic message about registering ASP.Net with IIS if IIS wasn't already installed. I didn't have IIS installed. I seem to remember with 2002 and 2003 there were detailed installation instructions that included steps to install IIS and FPE. Can I find those instructions for 2005 Or are there separate instructions for installing IIS (and FPE) and then retrofitting this into my VS install I have XP Pro with SP ...Show All
sgmuser Change style/dependencyproperties on children of usercontrols.
If i have a usercontrol that looks like this: <Canvas x:Class="MyNamespace.MyControl" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <TextBlock x:Name="textblock" /> <Image x:Name="img" /> </Canvas> Is it possible to change the style of the textblock in a resourcedictionary like this: <ResourceDictionary xmlns:mns="clr-namespace:MyNamespace;assembly=MyAssembly" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Style x:Key="styleee ...Show All
bob the unknown from mars Request respond with named sender
Hi I'm trying to interop with Axis on a request response scenario with RM. The challenge is that axis only supports this scenario if you use a named sender, i.e. you can't use anonymous but must have an actively listening endpoint at the client as well. You can achieve this in WCF by using the duplex channel shape (e.g. wsDualHttpBinding). The challenge is that the WSDL contract generated for this exposes 2 separate oneway operations instead of a single request-response operation - and this WSDL cannot be consumed by axis. It would be a great help if anyone could say if the following is true: * The only way to realise a request-response scenario in WCF with a named sender is using a duplex binding (unless perhaps by writing cus ...Show All
B Barr Cannot connect to VSS web service due to nested ini files
Hi All I installed the VSS web service with ssl and tested and used it for about a week and all worked perfectly, unfortunately now it returns the following error Cannot contact the visual sourcseafe internet web service or cannot access the specified database. The visual sourcesafe web service returned the following error: VSS Web Service does not allow nested INI files Unfortunately the error does not say which ini files, or where they are and I have looked everywhere for mention of nested ini files on msdn and seem unable to find a solution to the issue. I have even tried removing the web service, readding it without ssl and trying to connect and I still get the same error. The lan VS2005 plugin works ok as does the normal VSS explorer. ...Show All
Hkrabben Problems building using December CTP
Hi Ive been happily using August CTP (been too busy to upgrade!) with no problems, I tried December CTP but have problems with documenting several assemblies because they result in a command that must breach the 260 characters path limit, but I dont get this issue with the August CTP. I'm not too familiar with exactly what happens during the whole documenting process yet but I'm including a snippet from the log file from both CTPs in the hope that someone might spot something which may help me out. From August CTP doc build (works fine): Info: Building topic P:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Properties Info: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStor ...Show All
Binumohan Invalid Operation Exception when hosting WCF on IIS
I am trying to implement a WCF service hosted by IIS using this example: http://msdn2.microsoft.com/en-us/library/ms751519.aspx I get the following error in my browser, when I try to connect to http://localhost/JOHN1/service.svc Server Error in '/' Application. -------------------------------------------------------------------------------- The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value in the ServiceHost directive could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationExcept ...Show All
Bobs18 Bookmark Update Problem
I'm trying to update the text of a bookmark when a document template opens, and have been working to adapt the sample that was provided for VSTO 2003 to read an XML file and populate the bookmarks. I want to use VSTO 2005 instead so my bookmarks don't get removed from the document when I update the text. I have it more or less working, but I'm getting an extra '%' character appended onto the end of the bookmark text. Does anyone know how to get around this. Here's the basics of what I'm doing: Dim targetControl As Object For Each targetControl In Me.Controls If TypeOf (targetControl) Is Word.Bookmark Then Dim bookMark As Word.Bookmark = CType(targetControl, Word.Bookmark) If bookmark.Name = "document_titl ...Show All
HemantMishal enabling metadataSupport behavior via code
I am emplementing a WCF service via c++/cli and hooking it into a legacy application. So far so good except that I can't seem to find the proper interface for enabling the metadataSupport behavior via code instead of a config file. Am I missing something obvious works like a charm, thanks I am sure that you already noticed that metadata support has changed in recent bits. You can read about it e.g. here . The code listed below was written on June CTP and also works on July CTP. Ok, just C# code, but you get it... To enable HTTP GET WSDL retrieval, do this: ServiceHost sh = new ServiceHost( typeof(ITecTv), new Uri("http://localhost:7777/tectv")); ServiceMetadataBehav ...Show All
Simon Clemen Design View / Markup View
As much as I love the improvement on the WPF Designer in visual studio, its slow response to small updates I make in the markup make it slower to develop with. Is there anyway I can tell it to only show up in Xaml markup editor without bringing up the designer screen I know how to collapse the designer part, but when I bring the form back up it brings it up in split mode again. Keep up the great work Cider team!!! And thanks guys! Both, Designer/XAML Editor synchronization and window state persistence, are under active development right now. Beta 1 and even the Feb. CTP of Visual Studio "Orcas" will provide a much improved WPF Design experience. In the meantime, you can right-click on a XAML file in the Soluti ...Show All
Karamasov Is it possible to get the DTE2 com object when starting devenv.exe with parameters...?
I am currently writing some Visual Studio automation and would like to use the experimental hive so that when one of our users fires off Visual Studio from within our code any changes we make through code to windows toolbars etc are not persisted in their main version of Visual Studio. I have experimented with windows configurations, restoring settings on close etc, but this is still to risky for my liking (if the program crashes Visual Studio will be pretty messed up next time it is loaded outside of our code!!). This works perfectly from the command line using the rootsuffx argument but my problem lies in the fact that I need to start devenv.exe from code and get hold of the DTE2 com object. At present we do this by getting the CLSID or ...Show All
LeeC22 MDAC Mismatch after installing VS 2005 SP1
Help. I am trying to run a VB6 application on my computer and I am getting a run time error 3706 - Provider Cannot be found. It may not be properly installed. I have installed this application on other computers in the office and it runs fine. Mine is the only one with VS 2005. I installed the VS2005 SP1 a few days ago. I downloaded the MDAC component checker, it is showing a mismatch in components (I have included the results below). I tried to run the latest version of MDAC_TYP.EXE. It informed me that I cannot run it on my version of the OS (XP SP2). Furhter research on MSDN tells me that the only way I can install it is to install SP2 (which I did a while back). Re-installing a service pack at this time scares me. Is there ...Show All
