EF 正在运行转换: System.Reflection.TargetInvocationException: 调用的目标发生了异常。

本文介绍了在使用ASP.NET自跟踪模板生成器时遇到的一个错误,该错误与未能正确指定EDML文件路径有关。通过详细解释错误信息,文章指导读者如何在EMDX界面中正确添加代码生成项以解决此问题。
部署运行你感兴趣的模型镜像

错误 1 正在运行转换: System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.IO.FileNotFoundException: 无法定位文件
   在 Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolvePath(String path)
   在 Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolvePath(String path)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 Microsoft.VisualStudio.TextTemplating5ED689C2990069EA428DCCB81FD047FF.GeneratedTextTransformation.DynamicHost.ResolvePath(String path)
   在 Microsoft.VisualStudio.TextTemplating5ED689C2990069EA428DCCB81FD047FF.GeneratedTextTransformation.MetadataLoader.TryCreateEdmItemCollection(String sourcePath, String[] referenceSchemas, EdmItemCollection& edmItemCollection)
   在 Microsoft.VisualStudio.TextTemplating5ED689C2990069EA428DCCB81FD047FF.GeneratedTextTransformation.MetadataLoader.CreateEdmItemCollection(String sourcePath, String[] referenceSchemas)
   在 Microsoft.VisualStudio.TextTemplating5ED689C2990069EA428DCCB81FD047FF.GeneratedTextTransformation.TransformText()
   在 Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String& result) 1 1


在asp.net 自跟踪模板生成器中需要指定你的edml的路径,

在EMDX界面中空白处点右键,在右键菜单中选择“添加代码生成项”。

您可能感兴趣的与本文相关的镜像

Seed-Coder-8B-Base

Seed-Coder-8B-Base

文本生成
Seed-Coder

Seed-Coder是一个功能强大、透明、参数高效的 8B 级开源代码模型系列,包括基础变体、指导变体和推理变体,由字节团队开源

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值