首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能为iAnywhere.Data.SQLAnywhere生成类型库

未能为iAnywhere.Data.SQLAnywhere生成类型库
EN

Stack Overflow用户
提问于 2015-06-11 19:55:10
回答 1查看 330关注 0票数 0

当我试图用这样的类构建一个c#解决方案时,导致这个错误的原因是什么:

代码语言:javascript
复制
using iAnywhere.Data.SQLAnywhere;

 /// Specify a name for your serviced component
    [ ProgId( "Name" ) ]
    /// Add content to hosting COM+ App's description field
    [ Description("Name")]
    /// Configure component's Transaction Option, configure transaction isolation level so only a shared lock is placed for read
    [Transaction(TransactionOption.Supported,
          Isolation = TransactionIsolationLevel.ReadCommitted)]
    /// Configure component's object pooling
    [ObjectPooling(Enabled = true, MinPoolSize = 1, MaxPoolSize = 20, CreationTimeout = 60000)]
    /// Specify COM+ Context Attributes
    [MustRunInClientContext(false)]
    /// Enable event tracking
    [EventTrackingEnabled(false)]
    /// Enable JITA for the component
    [JustInTimeActivation(false)]
    /// Enable Construction String Support for the component
    [ConstructionEnabled(Enabled = false)]
    /// Configure activity-based Synchronization for the component
    [Synchronization(SynchronizationOption.Required)]
    /// Indicate the type of class interface that will be generated for this class
    [ClassInterface(ClassInterfaceType.AutoDual)]

    [GuidAttribute("xxxx")]

它返回错误:

代码语言:javascript
复制
Error   Failed to generate type library 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\iAnywhere.Data.SQLAnywhere.v4.0\v4.0_16.0.0.19484__f222fc4333e0d400\iAnywhere.Data.SQLAnywhere.v4.0.tlb' for 'iAnywhere.Data.SQLAnywhere.v4.0, Version=16.0.0.19484, Culture=neutral, PublicKeyToken=f222fc4333e0d400'.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-12 15:15:19

当我试图通过控制台注册程序集时。它显示:

代码语言:javascript
复制
An unknown exception occurred during installation:
1: System.IO.FileNotFoundException - Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

结果是,在我安装了EntityFramework,Version=5.0.0.0之后,问题就解决了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30790235

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档