小编Eth*_*gon的帖子

Job name "..getProjectMetadata" does not exist

I updated my angular to v9 and when I try to go back in v8, I receive this error. I have already tried the following:

  • uninstall -global angular/cli
  • uninstall angular/cli
  • go back to my last package.json
  • delete node_module folder
  • delete repo

This error continues to show.

My stacktrace is :

An unhandled exception occurred: Job name "..getProjectMetadata" does not exist.
See angular-errors.log for further details.
Run Code Online (Sandbox Code Playgroud)

angular-errors.log :

[error] Error: Job name "..getProjectMetadata" does not exist.
    at Observable._subscribe (/Front/node_modules/@angular-devkit/core/src/experimental/jobs/simple-scheduler.js:350:23)
    at Observable._trySubscribe …
Run Code Online (Sandbox Code Playgroud)

npm angular angular8 angular9

151
推荐指数
6
解决办法
8万
查看次数

我应该将所有WCF服务代码包装在try catch块中吗?

try
{
    ///// here is the code that might throw erros. If I discover the user is unauthorized I throw a WebFaultException myself to alert the client
}      
catch (WebFaultException ex)
{
    throw ex; //but if I wrap all code in try-catch, I have to rethrow the exception o the status code reaches the client
}
catch (Exception ex)
{
    throw new WebFaultException(ex.Message, HttpStatusCode.InternalServerError);
}
Run Code Online (Sandbox Code Playgroud)

我应该把所有东西都包在试试中吗,或者你推荐什么?我使用WCF和rest-ful JSON服务

.net c# wcf try-catch

6
推荐指数
1
解决办法
2218
查看次数

Linq-如何连接到数据库?

我已经使用Microsoft SQL Server Management Studio(Microsoft SQL Server 2008)创建了一个数据库。我一直在搜索,但是我要么不理解它,要么找不到它,但是如何在项目(Visual Studio 2010 Enterprise)中进行连接,以便可以从数据库发送和接收数据?我的数据库名称是MyDB。

var database = new MyDB();
Run Code Online (Sandbox Code Playgroud)

在解决方案资源管理器中,右键单击“引用”,然后单击“添加引用”。

在添加引用对话框中单击.NET,单击System.Data.Linq程序集,然后单击确定。

程序集将添加到项目中。

在Program.cs的顶部添加以下指令:

c# linq .net-4.0

3
推荐指数
1
解决办法
7537
查看次数

在C#中调整DataGridView的大小

我有一个具有DataGridView作为其主要组件的表单.当用户最大化表单时,我需要调整DGV的大小.

正如我在网上看到的,这不能以编程方式完成.

该程序是用C#编写的,并使用WinForms.你会怎么做?

c# winforms

0
推荐指数
1
解决办法
651
查看次数

标签 统计

c# ×3

.net ×1

.net-4.0 ×1

angular ×1

angular8 ×1

angular9 ×1

linq ×1

npm ×1

try-catch ×1

wcf ×1

winforms ×1