我熟悉Microsoft堆栈.我正在使用OData来完成我的一些宁静服务.最近我遇到了Swagger的API文档,我试图了解它与OData的关系.它们似乎都是RESTful规范.哪一个被广泛使用?
自安装Visual Studio 2015 Update 3以来,我收到了以下错误.它只在Visual Studio 2015打开时发生,并且无论我是否以本地管理员身份运行都会发生.它经常发生并且很刺激,但似乎并没有影响我正在做的任何工作.代码,服务器资源管理器,VS所有工作正常,弹出错误消息,Microsoft错误报告占用了我的CPU长时间50%的使用率.
有谁知道如何解决这一问题?我不想花几个小时试图解决它.
错误信息:
在我的应用程序事件日志中,我看到以下内容
故障桶126419871336,类型5事件名称:SQLException64响应:不可用Cab Id:0
问题签名:P1:sqlservr.exe P2:0.0.0.0 P3:0000000000000000 P4:sqlmin.dll P5:2015.130.1601.5 P6:000000005724AE98 P7:-1073741819 P8:0000000000064BB2 P9:00000001D8D946AB P10:
附加文件:\?\ C:\ Users\m_f\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\ProjectsV13\SQLDump0100.mdmp \?\ C:\ Users\m_f\AppData\Local\Microsoft\Microsoft SQL服务器本地DB\Instances\ProjectsV13\SQLDump0100.txt \?\ C:\ Users\m_f\AppData\Local\Microsoft\Microsoft SQL Server本地DB\Instances\ProjectsV13\SQLDump0100.log \?\ C:\ ProgramData\Microsoft \的Windows\WER\TEMP\WERE021.tmp.WERInternalMetadata.xml
这些文件可以在这里找到:C:\ ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_sqlservr.exe_7113a987f49ac660cb71f97cb4183ea19827ef0_00000000_0bd7e949
分析符号:重新检查解决方案:0报告ID:3e38065a-5d62-11e6-89a7-97ade4354400报告状态:1 Hashed bucket:ff995718a61d049a3664662b84518798
并在SQL日志中:
进程49生成致命异常c0000005 EXCEPTION_ACCESS_VIOLATION.SQL Server正在终止此过程.
似乎也是一个已知问题 - 请参阅此Microsoft KB文章,说它已被修补.
我的系统在操作系统,补丁,安全更新,Visual Studio更新等方面尽可能地保持最新,但我仍然看到了这个问题.希望有人之前已经解决了这个问题,并且可以为我节省一些挫败感,试图让它排序!
谢谢
我在Azure存储模拟器上遇到问题。我试图重新初始化数据库,并收到以下错误。
这是在安装Visual Studio 2019预览版之后,但这可能只是巧合。我尝试了一个小时左右才能使其运行,然后放弃并仅使用“保留我的文件”选项重置我的机器,重新安装了Visual Studio 2017和Azure工具,但仍然遇到相同的问题。
我知道重置听起来有点激烈,但是VS 2019在VS2017中破坏了我的Azure函数,它们无法启动,所以我想要全新安装。
如果我使用sqllocaldb create(版本13.1.4001.0)手动创建数据库,则可以很好地创建数据库,但是初始化仍然失败,并显示相同的消息。
有任何想法吗?
C:\ Program Files(x86)\ Microsoft SDKs \ Azure \ Storage Emulator> AzureStorageEmulator.exe init Windows Azure存储模拟器5.7.0.0命令行工具找到了SQL实例(localdb)\ MSSQLLocalDB。在SQL实例'(localdb)\ MSSQLLocalDB'上创建数据库AzureStorageEmulatorDb57。无法创建数据库'AzureStorageEmulatorDb57':数据库'AzureStorageEmulatorDb57'不存在。提供有效的数据库名称。若要查看可用的数据库,请使用sys.databases。一个或多个初始化操作已失败。解决这些错误,然后尝试再次运行存储模拟器。错误:无法创建数据库'AzureStorageEmulatorDb57':数据库'AzureStorageEmulatorDb57'不存在。提供有效的数据库名称。若要查看可用的数据库,请使用sys.databases。
我通过Visual Studio Teams Services(在线)使用发布管理.我们使用托管构建代理,我真的想避免管理自定义代理的开销.
我需要的一个项目是AzureRM PowerShell模块.代理上可以使用高达5.1.1的版本,但我需要6.0.0.
我想要做的是在我的发布过程(PowerShell)中使用一个步骤来获取版本6.0.0并使用thart代替,但是我不能让它工作.我已经尝试了一些方法,这些方法都已经解决,目前的方法是:
Write-Output "------------------ Install package provider ------------------"
Find-PackageProvider -Name "NuGet" | Install-PackageProvider -Scope CurrentUser -Force
Write-Output "------------------ Remove Modules ------------------"
Get-Module -ListAvailable | Where-Object {$_.Name -like 'AzureRM*'} | Remove-Module
Write-Output "------------------ Install the AzureRM version we want - 6.0.1! ------------------"
Install-Package AzureRM -RequiredVersion 6.0.1 -Scope CurrentUser -Force
Write-Output "------------------ Import AzureRM 6.0.1 ------------------"
Import-Module AzureRM -RequiredVersion 6.0.1
Run Code Online (Sandbox Code Playgroud)
这一切都很好(即不会崩溃...)但是当我尝试使用其中一个6.0.1 cmdlet时,我收到一个错误.
Get-AzureRmADGroup:Azure PowerShell会话尚未正确初始化.请导入模块,然后重试.
知道我出错的地方或者我可以用来部署AzureRM 6.0.1并在托管代理上使用它的替代策略吗?
我有一个逻辑应用程序,我试图通过 ARM 模板实现自动化。
逻辑应用需要连接到 Office 365。下面是从 Azure 门户的自动化窗格生成的连接模板。
当我运行脚本时,它失败了 - Azure 订阅和 Office 365 订阅之间存在身份验证问题。
链接授权失败
客户端有权在范围内执行操作“Microsoft.Web/locations/managedApis/join/action”……但是当前租户“curr-tenant-guid”无权访问链接订阅“linked-sub-guid” ...
我将无法创建此信任来自动进行配置,但我想将连接创建为占位符,以便可以部署逻辑应用程序,并且我可以返回门户以授权连接。这可能吗?还有其他选择吗?
{
"comments": "Office 365 user for file monitoring",
"type": "Microsoft.Web/connections",
"name": "MyOffice365User",
"apiVersion": "2016-06-01",
"location": "northeurope",
"scale": null,
"properties": {
"displayName": "readuser@example.com",
"customParameterValues": {},
"api": {
"id": "[concat('/subscriptions/a6720ff8-f7cb-4bc8-a542-e7868767686/providers/Microsoft.Web/locations/northeurope/managedApis/', 'MyOffice365User')]"
}
},
"dependsOn": []
}
Run Code Online (Sandbox Code Playgroud) 从昨天开始,在登录过程中,我收到以下消息:
新防火墙规则创建新防火墙规则时出错(HTTP 状态代码 409))(ConnectionDlg)
远程服务器返回错误:(409) 冲突。(系统)
我是webapi的新手,并开发了一个小的webapi,它有一些动作并返回我的自定义类,名为Response.
Response
班public class Response
{
bool IsSuccess=false;
string Message;
object ResponseData;
public Response(bool status, string message, object data)
{
IsSuccess = status;
Message = message;
ResponseData = data;
}
}
Run Code Online (Sandbox Code Playgroud)
[RoutePrefix("api/customer")]
public class CustomerController : ApiController
{
static readonly ICustomerRepository repository = new CustomerRepository();
[HttpGet, Route("GetAll")]
public Response GetAllCustomers()
{
return new Response(true, "SUCCESS", repository.GetAll());
}
[HttpGet, Route("GetByID/{customerID}")]
public Response GetCustomer(string customerID)
{
Customer customer = repository.Get(customerID);
if (customer == null)
{
throw new HttpResponseException(HttpStatusCode.NotFound);
} …
Run Code Online (Sandbox Code Playgroud) 我正在使用 blob 和队列存储、redis chache、documentdb 和 azure sql 数据库并创建 CloudStorageAccount、客户端和容器对象。这些类是否实现了 IDisposable。我是否必须使用“使用”或尝试 finally 块来释放对象/将其设置为 null?
我有一个由ARM模板使用Azure DevOps管道部署的Azure Functions(2.0)实例。我有另一个管道,通过zip部署将功能应用程序部署到实例。这几乎可以完美地工作,但是,如果我将功能Infrastructure部署为Code,然后部署应用程序,然后将Infrastructure部署为Code,则我的功能应用程序将被删除,所有功能都将消失。我正在使用增量部署,所以我想知道为什么这样做。关于它为什么会这样或如何进行故障排除的任何想法?
我已经在下面复制了资源组部署脚本和ARM模板。
New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $TemplateFile).BaseName + '-' + ((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm')) `
-ResourceGroupName $ResourceGroupName `
-TemplateFile $TemplateFile `
-TemplateParameterFile $TemplateParametersFile `
-Mode Incremental `
@OptionalParameters `
-Force -Verbose `
-AdminsGroup $AdminsGroup `
-AdminsGroupObjectId $AdminsGroupObjectId `
-ErrorVariable ErrorMessages
Run Code Online (Sandbox Code Playgroud)
ARM模板
{
"type": "Microsoft.Web/serverfarms",
"sku": {
"name": "Y1",
"tier": "Dynamic",
"size": "Y1",
"family": "Y",
"capacity": 0
},
"kind": "app",
"apiVersion": "2016-09-01",
"name": "[variables('FunctionPlanNameMyStuff')]",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('FunctionPlanNameMyStuff')]",
"perSiteScaling": false,
"reserved": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0
}
},
{
"comments": "MyStuff …
Run Code Online (Sandbox Code Playgroud) azure-resource-manager azure-devops azure-functions azure-functions-runtime azure-functions-core-tools
我一直致力于将我们的 Azure Functions 实现之一升级到 .net 5。我已经与许多恶魔作斗争了,但正当我以为我已经整理了所有配置和依赖项注入更改时,它向我抛出了一个曲线球。host.RunAsync
在之后,Main
我得到了以下异常,我对罪魁祸首有点不知所措。有没有人遇到过并解决了这个问题?
System.UriFormatException
HResult=0x80131537
Message=Invalid URI: The hostname could not be parsed.
Source=System.Private.Uri
StackTrace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Grpc.Net.Client.GrpcChannel.ForAddress(String address, GrpcChannelOptions channelOptions)
at Microsoft.Extensions.DependencyInjection.GrpcServiceCollectionExtensions.<>c.<AddGrpc>b__1_1(IServiceProvider p) in D:\a\1\s\src\DotNetWorker.Grpc\GrpcServiceCollectionExtensions.cs:line 58
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at …
Run Code Online (Sandbox Code Playgroud) azure ×3
c# ×3
azure-devops ×2
.net-5 ×1
asp.net ×1
httpclient ×1
odata ×1
office365 ×1
openapi ×1
powershell ×1
sql-server ×1
swagger ×1
swashbuckle ×1
updates ×1