| All-in-one bundle Beta 1 or CTP? |
|
 |
Index ‹ Visual Studio 2008 ‹ ADO.NET (Pre-release)
|
- Previous
- 1
- 2
- Visual Studio Tools for Office Building Office integrated applications
We have some applications that uses Office Interop's. We have downloaded the PIA's from Microsoft and references the Interop dll's that are included there.
The problem occurrs when moving to a build server: In order to install the PIA on the build server, we must first install (at least one) Microsoft Office Application.
While we can do that, this seems somewhat incorrect to install client applications on a build server in order to just make it compile.
What is the recommended approach here In other projects we have created Interop-files manually be using the TlbImp tool. But with MS Office, we don't have a type library file.
Regards
/Jakob
- 3
- Visual Studio Setup and Installation Microsoft Component Distribution
I am a software developer and I have created an installation setup program in Visual Studio for the software I wrote in Visual Basic. Another person downloaded my program and installed it to their computer. That person tells me they are running Windows XP on their computer. But when they tried to run my software they got the error message:
Run-time error '339': Component 'MSMAPI32.OCX' not correctly registered: file is missing or invalid.
My program uses MAPI to send out email messages. I thought all Windows systems would have MAPI installed on them. Should I add the MAPI OCX file to my installation program and do I have the legal right to do so Does Microsoft authorize developers to distribute that component with their applications Do I need to distribute some other Microsoft components that my program uses, like ADO and Excel How do I know which components I legally can and should include in my installation program
Any help is appreciated.
- 4
- 5
- Visual Studio Tools for Office Which Interop To Choose?
Hello everyone.
I have a question about the Office 12 Interops - I wish to develop a solution for that platform under .NET v2, But the interops i have right now are either COM or .NET v1.1 assemblies.
Are there any v2 interops planned (Although the v1.1 interops seem to work with v2 form applications) Which are preferable - COM or Managed
Thanks in advance,
Ran Sagy.
- 6
- 7
- Windows Presentation Foundation (WPF) Reflection based loading of Ressources
Hi. I am building a small test framework for loading and instantiating XAML views. I have got a problem with Reflection and loading of XAML ressources.
A. I Load an Assembly: .... a= Assembly.LoadFile("myassembly");...
B. I would then like to load the XAML ressources in that Assembly into the current Applications Ressource Dictionary, (Merged), something like this:
uri = new Uri("pack://application:,,,/MyAssembly;component/Resources/SomeResource.xaml"); rd = new ResourceDictionary(); rd.Source = uri; Application.Current.Resources.MergedDictionaries.Add(rd);
When I use the methods: GetManifestResourceNames / GetManifestResourceStream / GetManifestResourceInfo on the assembly, I get the embedded ressources by name, something like: 'MyAssembly.g.resources', but what I would like to obtain, is the name 'SomeResource',in order to load the ressource into the Application Dictionary.
I hope someone has got an idea.
- 8
- 9
- Visual Studio Tools for Office I need help!
I would really appreciate it if someone could help me out on this
I'm having problems with the security permissions of the word document customization assemblies. Even after giving permissions to the assembly from the .Net framework configuration, it's still telling me that the customization assembly does not have the required permissions to execute. I've been facing this issue for a long time..
plz if anyone has the solution to my problem, i'd really appreciate your feedback
thanks
Maha
- 10
- 11
- Visual Studio Tools for Office VSTO and dead code.
I've built COM add ins for PowerPoint XP and 03 that work perfectly, now I am trying to get them to work in Office 07 and am getting no where.
The problem seems to be that when I call an out of process (microsoft encoder) my code dies. There are no errors thrown, there is ummm, nothing, just dead code.
As an example;
Set encoder blah, blah, blah
encoder.start
Msgbox "Done".
In the above the encoder indeed starts, runs as expected, and then, zip, nada, nothing. Its as if the rest of the msgbox doesn't even exist.
- 12
- 13
- Windows Presentation Foundation (WPF) XBAP sizeHi,
When I publish my XBAP application, the following four files get copied into the xbap directory, in Debug or Release mode:
- Draft.PresentationDesignMarkup.dll (408KB)
- PresentationDesignCore.dll (184KB)
- PresentationDesignDevelopper.dll (372KB)
- PresentationDesignFramework.,dll (84KB)
This adds up to about a megabyte minimum size for the XBAP, before any of my code gets included. This is kind of heavy for lightweight applications, and I don't understand why these dlls aren't included in the 3.0 runtime. Is this still going to be the case after .NET 3.0 RTMs
- 14
- Windows Presentation Foundation (WPF) display System.Windows.Forms.RichTextBox in xaml browser
Hi,
I can't display System.Windows.Forms.RichTextBox in my xaml browser application.If I use System.Windows.Controls.RichTextBox then it works,but i cannot achieve some of the functionalities like getting the text bolded,underlined etc. Hence i tried to use System.Windows.Forms.Richtextbox. Can any one tell me how to display System.Windows.Forms.RichTextBox in XAML browser application or else how could i achieve the mentioned functionalities for system.windows.controls.richtextbox.
Regards,
spshah
- 15
- LINQ Project General Doubts concerning Linq
I have some doubts about Linq:
1) What is the sintax for an update command, like below:
update <table> set <field1> = value, <field2> = value
where <field3> = value and <field4> = value
2) Isnt Linq really providing a native provider for Oracle, MySql Letting this to other vendors looks like ODBC :(
3) Is the idea of Linq to take 100% of ORM market share Why would one continue using other ORMs if Linq (which is integrated to VS2005 and Orca) is able to map DB as well to entities
4) Is Linq really linked to Orca RTM When will that be, is there any planned date yet
|
| Author |
Message |
Kevin Hoffman

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
When will we be able to have an easier-to-install updated CTP of ADO.NET vNext The current one is a September 2006 CTP that requries the May 2006 CTP of LINQ in order to function.
Are there any firm dates as to when LINQ and ADO.NET vNext will either become parallel (release at the same time) or get rolled into the same CTP/Beta
Visual Studio 200825
|
| |
|
| |
 |
Lance Olson - MSFT

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
As you mentioned, thus far we've had builds of the ADO.NET vNext CTP that were independent from the other components like the LINQ May CTP. We're now in the process of bringing them together as part of the .NET Framework (code named "Orcas") release and making them available as one Orcas CTP. We expect to have a CTP that contains the next build of the Entity Framework as part of Orcas sometime in the next few weeks. Unfortunately, while this build does have some LINQ to Objects functionality, it does not yet contain the LINQ to Entities portion of the product so you can query using Entity SQL in that build but not LINQ. The combined build that has the Entity Framework plus LINQ support does not yet have a firm public date, but we're actively working on it.
-Lance
|
| |
|
| |
 |
Kevin Hoffman

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
Thats what I'm really looking for... I've got a Virtual Machine using the current Orcas CTP, I've got a VM running .NET 3.0, I've got a real machine using .NET 3.0, and a real machine using the May LINQ CTP and ADO.NET vNext w/LINQ to Entities... I'm wondering when I can consolidate and have a single machine (Virtual or otherwise) that I can use write my data access code (LINQ to Entities)
|
| |
|
| |
 |
Lance Olson - MSFT

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
|
| |
 |
Kevin Hoffman

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
Its a Virtual PC image Why on earth the May and September CTPs were installable and the installs worked (most of the time). Why take a step in the wrong direction and deliver just a VPC
I realize that its probably because there wasn't time to create an install to satisfy the entire environment so that it would work on everyone's machine..but still - 3GB to download, 60 minutes to decompress - its not even portable enough for me to get home from my office without using a USB drive (which I can't plug in at the office)
|
| |
|
| |
 |
Kevin Hoffman

|
Posted: ADO.NET (Pre-release), All-in-one bundle Beta 1 or CTP? |
Top |
Also - the documentation for the October CTP says in one place that it has LINQ to XML, eSQL support, etc.
Further down, it says the CTP does not have any of the "Language Integrated Query CTP" support.
Which is it - can I get LINQ to Entities from this CTP or not I'd rather not download 3GB and soak up massive amounts of space on my drive only to find out that this CTP doesn't have what I want.
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio 2008 ‹ ADO.NET (Pre-release) |
- Next
- 1
- Visual Studio Extensibility Connector inheritance problem
Hi,
I got problems with connector inheritance (i'm using the RTM bits).
Suppose I start from the Task Flow template.
I add a connector MasterConnector that becomes the base class for the CommentConnector.
When I create an instance of the CommentConnector (I associate a comment to a task), save the diagram and reopen it, the instance of the CommentConnector has doubled (two lines appear instead of one).
Has anybody noticed the same problem
Thanks!
Mike
- 2
- ADO.NET (Pre-release) Working with WCF Service
I am trying to use the Entity Framework with a WCF service. It is giving me the following exception:
System.ArgumentException was unhandled by user code Message="The default entity container name 'eKnowledgeSpaceDBModel.eKnowledgeSpaceDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at eKnowledgeSpaceDBModel.eKnowledgeSpaceDB..ctor(String connectionString) in f:\eKnowledgeSpaceSolution\eKnowledgeSpaceObjectModel\obj\Debug\eKnowledgeSpaceObjectModel.Model.cs:line 8656 at eKnowledgeSpace.Service.UserRegistrationMessageDirector.RegisterUser(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\MessageBuilder.cs:line 42 at eKnowledgeSpace.Service.RegistrationService.UserRegistration(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\UserRegistrationService.cs:line 26 at SyncInvokeUserRegistration(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.InvokeDelegate.Invoke(Object target, Object[] inputs, Object[] outputs) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
I am self hosting the WCF Service, and the host application config file is as follows:
< xml version="1.0" encoding="utf-8" >
< configuration>
< configSections>
< section name="system.data.ctp" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ configSections>
< system.data.ctp>
< DbProviderFactories>
< add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
< add name="Map Data Provider" invariant="System.Data.Mapping" description=".Net Framework Map Provider" type="System.Data.Mapping.MapProviderFactory, System.Data.Entity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ DbProviderFactories>
</ system.data.ctp>
< connectionStrings>
< add name="eKnowledgeSpaceDBConnectionString" connectionString="metadata=.;provider=System.Data.SqlClient;provider connection string="Data Source=EKNOWLEDGE\SQLEXPRESS;Initial Catalog=eKnowledgeSpaceDB;Integrated Security=True"" providerName="System.Data.Mapping" />
</ connectionStrings>
< appSettings>
< add key="HTTPBaseAddress"
value="http://localhost:8000/Registration/"/>
< add key="TCPBaseAddress"
value="net.tcp://localhost:8010/Registration/"/>
</ appSettings>
< system.serviceModel>
< services>
< service name= "eKnowledgeSpace.Service.RegistrationService" behaviorConfiguration="RegistrationService">
< host>
< baseAddresses>
< add baseAddress="http://localhost:8000/Registration/"/>
< add baseAddress="net.tcp://localhost:8010/Registration/"/>
</ baseAddresses>
</ host>
< endpoint
address="Register"
binding="basicHttpBinding"
contract= "eKnowledgeSpace.Service.IRegistrationService"
/>
</ service>
</ services>
< behaviors>
< serviceBehaviors>
< behavior name="RegistrationService">
< serviceMetadata httpGetEnabled="true" />
< serviceSecurityAudit auditLogLocation="Application" messageAuthenticationAuditLevel="SuccessOrFailure" serviceAuthorizationAuditLevel="SuccessOrFailure"/>
</ behavior>
</ serviceBehaviors>
</ behaviors>
</ system.serviceModel>
</ configuration>
What should I do to solve this problem. Is there any example of a Entity Framework being called by WCF Service
- 3
- Crystal Reports for Visual Studio Bold text and lines don't appear in print preview of imported report
I created a report that works and displays properly in both the preview tab in the IDE and when previewing it in the running application (using the crystal report viewer control in a windows form).
I wanted to use the same report in another project. So, I chose to add an existing item and found the report. The report was added to the project just fine. However, if I run the application and preview the report, bold text and lines are not displayed in it. Oddly enough, if I resize the preview window using my mouse, they suddenly appear, so they are there. If I scroll or do anything else, though, they disappear again. They also don't appear in the preview tab in the IDE.
Any ideas How can I use the existing report
By the way, I'm using VS2005 for this.
Thanks!
- 4
- 5
- Windows Presentation Foundation (WPF) Databind Child Object
Hi,
I have an object called Product and that product as a property of type List<Photo>. Photo is an object with an URI and a few more properties. What I want to do is in the DataTemplate access the first Photo of each product. I have something like this for the other properties in the Product Object:
<GridView x:Key="gridView" AllowsColumnReorder="True"> <GridViewColumn Header="Tipo de negocio" DisplayMemberBinding="{Binding Path=TypeOfBussiness}"/> <GridViewColumn Header="Tipo de imovel" DisplayMemberBinding="{Binding Path=TypeOfProduct}"/> <GridViewColumn Header="Tipologia" DisplayMemberBinding="{Binding Path=Typology}"/> </GridView>
And I wanted to define another GridViewColumn to show the photo, that will be in a data template. The problem here is binding to the path provided in the first Photo object of the List<Photo> in Products.
Thank you Bruno Silva
- 6
- Visual Studio Extensibility Add a Folder to a project
I am trying to create a folder through IVsProject.AddItem method.
The method documentation says I should pass VSADDITEMOP_OPENDIRECTORY.
This enum does not exist in the SDK.
How do I create a folder in Project Thanks
- 7
- Visual J# General read text for a .txt helpI'm attempting to read a line of text from a text file but found no scanner class that I usually use in the java.util package. Does anyone have a good suggestion on what I should use to read a line of text
Thanks
- 8
- Windows Presentation Foundation (WPF) Proper design for custom templated parent/child control?
Hi everyone, I'm looking for some pointers on building a custom control. I'm doing this as an exercise in learning WPF. Basically here are my requirements:
1) Will have a parent control (ParentControl class) that has a specific Type of child items (ChildPane class). 2) The ParentControl class needs to host the child panes in a certain area. Then it might also have a header area. 3) Only one ChildPane will be visible at a time in the ParentControl. 4) The ChildPane class should be capable of hosting custom content. 5) Both controls need global default styles/templates to be set. 6) For each control, the end user should be able to set a style/template that overrides the global default set up by me for both controls. 7) The end user should be able to set a style/template on a specific ParentControl instance that overrides any global default style/template for ParentControl. 8) The end user should be able to set a style/template on a specific ParentControl instance that overrides the global default style/template for the ChildPane objects displayed in the ParentControl. 9) The end user should be able to set a style/template on a specific ChildPane instance that overrides both the global default style/template for ChildPane AND the style/template, if any, that is set on the "parent" ParentControl for its ChildPanes.
Usage should be simple like this:
<controls:ParentControl> <controls:ChildPane>Pane #1</controls:ChildPane> <controls:ChildPane>Pane #2</controls:ChildPane> <controls:ChildPane>Pane #3</controls:ChildPane> </controls:ParentControl>
Does anyone have any recommendations on getting this sort of functionality working, like a sample that is already out in the wild I've seen samples that do some of this but not all of it.
Also, these are preferred... 1) The parent control's Items collection only return ChildPane types so no casting is needed for the end user. 2) The SelectedPane property should get/set a ChildPane and update UI appropriate when set.
I am considering using Selector as a base class for the ParentControl but that will mean that my Items will be generic and I would prefer them not to be. I am considering ContentControl as my ChildPane base class.
Any help or sample code for the design principles above to get me started is appreciated.
- 9
- Crystal Reports for Visual Studio Selection Formula
Dear All,
I have this problem of designing my report in Crystal Report. Basically my table structure is as below
|
ID |
OutletID |
Type |
Serial |
|
1 |
1 |
A |
1112 |
|
2 |
1 |
B |
1123 |
|
3 |
1 |
C |
1200 |
|
4 |
2 |
C |
1201 |
|
5 |
2 |
C |
1202 |
Below is how I want to output my report
A 1112
B 1123
C 1200 - 1202
The problem is that for Type A and Type B I want to list as it is. But for only type C I want to put them in a range like how I did above where for 1200,1201,1202 I will just put 1200-1202. I done some reading and also did some work around building a formula as below
if {product.Type}= "A" then
else if {product.Type}= "B" then
else if {product.productType}= "C" then
I am really stuck over here. I have the idea of using an array to store all the list values and later do a test on the array value based on the product type. I really dont know how to go further. Can some pls help me I am very new to this crystal repors.
. Thanks a lot in advance.
- 10
- Windows Presentation Foundation (WPF) Connect two elements on StackPanel
Hello,
I have an ItemControl which have its ItemsSource set to a List instance. The ItemsControl's ItemsPanel property is set to StackPanel.
I want to connect two elements in the ItemsControl with a line when the user click with the right mouse button on an item.
How can I draw a line between the two elements
Thank you,
Ido.
- 11
- 12
- Windows Communication Foundation ("Indigo") The remote server did not satisfy the mutual authentication requirementI am trying to write a Client/Server program which needs mutual authentication between the server and client via Kerbros.
Therefore I did the following:
On Server side: Config file:
< xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <services> <service name="Com.Service" behaviorConfiguration="ServiceBehaviorConfig"> <host> <baseAddresses> <add baseAddress="net.tcp://tako:8020/Com/"/> </baseAddresses> </host> <endpoint address="" binding="netTcpBinding" bindingConfiguration="MyNetTCPBinding" contract="Com.IService"> </endpoint> <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"> </endpoint> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ServiceBehaviorConfig"> <serviceMetadata/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="MyNetTCPBinding"> <security mode ="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign"/> </security> </binding> </netTcpBinding> </bindings> </system.serviceModel> </configuration>
On Client side Config file:
< xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="NetTcpBinding_IService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://tako:8020/Com/" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IService" contract="IService" name="NetTcpBinding_IService"> <identity> <userPrincipalName value="username@com.net" /> </identity> </endpoint> </client> </system.serviceModel> </configuration>
set the following to disable fallback to Ntlm service.ClientCredentials.Windows.AllowNtlm = false;
But when I run the server and client, as soon as the client try to call any method in the server object, I receive the following error:
System.ServiceModel.Security.SecurityNegotiationException: The remote server did not satisfy the mutual authentication requirement
I am running both the client and server on the same machine and I am sure my user principal name is correct as as my machine is in AD, Kerbros should be enabled, what else can I check or have I missed out What else may have caused this
Many thanks,
Bobby
- 13
- LINQ Project General Windows installer failure
help urgently required.
I have attempted to run a CognosController.Msi file but the installation failed with the following error: "There is a problem with this windows installer package. A script required for this install to complete could not be run."
I currently have .NET framework 1.1 including SP1 installed.
Any tips on how I can resolve this problem.
Thanks
- 14
- Visual Studio Tools for Office Excel scrollbars get really small.
Hi there, another ListObject woe I'm afraid.
I've a listobject, I bind it to a System.Windows.Forms.BindingSource which has an array of objects as its datasource. I have a test setup so that when I click a button it changes the array the bindingSource is bound to. So it alternates between an array of size 5, and an array of size 1000 (so if I keep clicking the button the listobject alternates between having 5 rows of data and 1000 rows of data).
However, when it binds to the 1000 rows the scrollbar at the side gets smaller, as you'd expect. When it binds on the next button click to 5 rows the scrollbar stays the same size, thus making it hard to scroll precisely. If I bind to 1000 rows again (another button click) the scrollbar gets even smaller. In fact the more times to bind to the 1000 rows the smaller and smaller it gets, such that if you bind to say 100 rows that needs alittle scrolling its very difficult to do this with any accuracy as the scrollbar by this point is very sensitive.
I can't think why it keeps getting smaller, or find any way of resetting its size. I've tried deleting all rows from the bottom of the listobject to the bottom of the Worksheet, but it doesn't change anything.
Strange problem, hope someone might have some idea.
Thanks very much.
- 15
- Visual Studio Report Controls How to: Add a rtf file to the report?
I'm making a sales contract with the report control, what I want to do is: each time the report is generated, it will import a rtf file ( for terms and conditions ) to the report and show it correctly with the report.
Is there any way I can do this with the report control
Thanks in advacne.
Long
|
|
|