小编Ram*_*eez的帖子

在环回中创建永久AccessToken

如何为StrongLoop API创建永久访问令牌.现在,对于每个用户登录,它创建一个访问令牌.在我的数据库中不必要的输入

我可以增加访问令牌(TTL)的有效性提到这里.

但它仍然会产生新的登录.

access-token strongloop loopbackjs

13
推荐指数
2
解决办法
6592
查看次数

在 64 位环境中调试 c# 代码时出错

Visual Studio 的默认运行环境好像是 32 位的。我需要在 64 位模式下运行我的应用程序之一。我将“平台目标”等项目属性更改为 64 位。但现在我无法运行我的应用程序。我收到类似“无法加载文件或程序集‘MyProject’或其依赖项之一的错误。尝试加载格式不正确的程序。”

然后我尝试了一个新的空白 WebApplication。仍然在那里也显示相同的错误。我删除了所有参考 dll 文件,并从该路径“C:\Windows\Microsoft.NET\Framework64”中添加了依赖项。但不幸的是仍然遇到同样的错误。

我更改了 IIS 的应用程序池属性(启用 32 位应用程序 = True)。然后尝试在本地 IIS Web 服务器中运行,但这也不起作用。

正在使用Windows 7,64位操作系统和Visual Studio 2010。并且使用以下c#代码查找运行环境时

using (RegistryKey registryKey = 
    Registry.LocalMachine.OpenSubKey(@"SOFTWARE\R-core\R"))
{
    var envPath = Environment.GetEnvironmentVariable("PATH");
string rBinPath = (string)registryKey.GetValue("InstallPath");
string rVersion = (string)registryKey.GetValue("Current Version");
rBinPath = System.Environment.Is64BitProcess 
        ? rBinPath + "\\bin\\x64" :rBinPath + "\\bin\\i386";
    Environment.SetEnvironmentVariable(
        "PATH",
    envPath + Path.PathSeparator + rBinPath);
}
Run Code Online (Sandbox Code Playgroud)

System.Environment.Is64BitProcess 的值总是false 我不想走64位的路径,如果运行环境是32位的。那么如何强制VS在64位模式下运行呢?

在这里我分享了我得到的错误响应页面。请帮我解决这个问题谢谢。

错误响应页面

asp.net 64-bit

5
推荐指数
1
解决办法
1500
查看次数

How to arrange two html buttons horizontally in a single line with equal width by completely fills the screen size

Here i want to use two buttons which cover the entire screen width and the buttons should have equal width. And alo there should not be any space between these buttons.

I tried with the following HTML and CSS codes but i didn't get what i expect;

CSS

#container
{
    width:100%
}         
#button1
{
    width:50%;
}
#button2
{
    width:50% 100%;
}
Run Code Online (Sandbox Code Playgroud)

HTML

<div id="container">
  <button id="button1">Button1</button>
  <button id="button2">Button2</button>
</div>
Run Code Online (Sandbox Code Playgroud)

I tried the code here here the buttons not covering the …

html css

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

标签 统计

64-bit ×1

access-token ×1

asp.net ×1

css ×1

html ×1

loopbackjs ×1

strongloop ×1