我刚刚安装了VS 2015,安装完成了(在慢速网络导致的一些失败时间后,我再次运行安装程序).
我创建一个项目Adroid > Android blank project
当我按F5时,构建似乎成功但部署失败,没有错误消息.尝试设置工具 - >选项 - >构建 - >诊断,没有结果.VS 2015是相当新的,是否有人遇到过这个?我怎样才能解决这个问题?
卸载SQL Server 2012和2008后,然后重新安装,我收到此错误:
您的应用程序中发生了未处理的异常...
为userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings创建配置节处理程序时发生错误:

有关调用实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾.
**************异常文本**************
System.Configuration.ConfigurationErrorsException:发生错误创建userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings配置节处理程序:无法加载文件或程序集系统,版本= 4.0.0.0,文化=中性公钥= b77a5c561934e089'或其依赖项之一.该系统找不到指定的文件.(C:\ Users\hy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config第5行)---> System.IO.FileNotFoundException:无法加载文件或程序集'System,Version = 4.0 .0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'或其依赖项之一.该系统找不到指定的文件.
文件名:'System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'
在System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost主机,字符串typestring,设定布尔throwOnError)
在System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord,FactoryRecord factoryRecord)
在System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord,FactoryRecord factoryRecord)
位于System.Configuration.RintimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
的System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey,Boolean&isRootDeclaredHere)警告:装配绑定日志记录已关闭.
要启用程序集绑定失败日志记录,请将注册表值[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)设置为1.
注意:程序集绑定失败日志记录会导致一些性能损失.
要关闭此功能,请删除注册表值[HKLM\Software\Microsoft\Fusion!EnableLog].---内部异常堆栈跟踪的结束---
在System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey,Boolean&isRootDeclaredHere)
处于System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey,Boolean getLkg,Boolean checkPermission,Boolean getRuntimeObject,Boolean requestIsHere)
System.Configuration.ConfigurationManager.GetSection(String sectionName)的System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
中的System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
处的System对象&result,Object&resultRuntimeObject) ) 在Syst的System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider提供程序)的 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context,SettingsPropertyCollection属性)
中的System.Configuration.ClientSettingsStore.ReadSettings(String sectionName,Boolean isUserScoped) 位于Microsoft的System.Configuration.ApplicationSettingsBase.get_Item(String propertyName) 的System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName) 上的System.Configuration.SettingsBase.get_Item(String propertyName) 中的em.Configuration.SettingsBase.GetPropertyValueByName(String propertyName). SqlServer.Configuration.LandingPage.LandingPageForm.OnLoad(EventArgs的发送) 在System.Windows.Forms.Control.CreateControl(布尔fIgnoreVisible) 在System.Windows.Forms.Control.CreateControl() 在System.Windows.Forms.Control.WmShowWindow(邮件&m) 在System.Windows.Forms.Control.WndProc(邮件&m) 在System.Windows.Forms.Control.ControlNativeWindow.WndProc(邮件&m) 在System.Windows.Forms.NativeWindow.Callback(IntPtr的的HWND,的Int32味精, IntPtr wparam,IntPtr …
我正在为Windows XP创建一个应用程序,所以我坚持使用.Net framework 4.0.我首先尝试使用SQL Server Compact和EF代码但是在出现错误时会出错update-database.
我希望将数据库放在我的代码目录中以部署在客户机器中.
这是我的连接字符串:
<add name="QuanLyKhoContext"
connectionString="Data Source=MyData.sdf;Persist Security Info=False;AttachDBFileName=MyData.sdf"
providerName="System.Data.SqlClient" />
Run Code Online (Sandbox Code Playgroud)
而错误:
此操作需要连接到"主"数据库.无法创建与"主"数据库的连接,因为已打开原始数据库连接并且已从连接字符串中删除凭据.提供未打开的连接.
c# entity-framework connection-string sql-server-ce ef-code-first
如何在SQLite中检索"2015-10-02"到"2015-11-02"之间的所有日期?(字符串类型)结果如下:
'2015-10-03'
'2015-10-04'
'2015-10-05'
...
'2015-11-01'
Run Code Online (Sandbox Code Playgroud)
这不是一个问题SELECT * FROM myTable where myDate <= '2015-01-01' AND myDate >= '2015-01-31'.这不是选择所有具有两天之间字段的现有记录.我只想检索两个日期之间的所有可能日期值.我想用它们按天查询记录数.
Date Count
'2015-01-01' 19
'2015-01-02' 10
'2015-01-03' 0
...
Run Code Online (Sandbox Code Playgroud) 我正在研究算法复杂性分析.我有不整合的问题或C(n, k).
int C(int n, int k){
if(n==k || k==0)
return 1;
return C(n-1, k) + C(n-1, k-1);
}
Run Code Online (Sandbox Code Playgroud)
我如何确定其执行复杂性或T(n)?
我有一个datagridview1. 当用户编辑单元格值时,我想检查数据的验证。如果无效,则将单元格值回滚到旧值。
在CellValidating事件中,我使用了:
e.Cancel = true;
Run Code Online (Sandbox Code Playgroud)
但价值没有回滚我该怎么做?
我想通过设置DefaultCellStyle将200000显示为200.000
dgrTonKho.Columns["xtkTTN"].DefaultCellStyle.Format = "0,.###";
Run Code Online (Sandbox Code Playgroud)
但是当显示它时就像200一样,在删除分隔符后全为零,我不知道为什么
我为dataGridView的DataSource设置了一个List有2个元素,但它总是只有一行,RowCount属性为1。这太奇怪了
我下面的代码有一些实体类名称,我必须解释一下。
HoaDon is Order
ChiTietHoaDon is OrderDetail
SanPham is Product
Run Code Online (Sandbox Code Playgroud)
代码:
using GymFitnessOlympic.Controller;
using GymFitnessOlympic.Models;
using GymFitnessOlympic.Models.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace GymFitnessOlympic.View.ActForm
{
public partial class FrmBanHang2 : Form
{
List<SanPham> allSanPham;
List<ChiTietHoaDon> allChiTiet = new List<ChiTietHoaDon>();
HoaDon hoaDon = new HoaDon();
public FrmBanHang2()
{
InitializeComponent();
int phongID = Login.GetPhongHienTai().MaPhongTap;
allSanPham = SanPhamController.GetList(phongID);
dgrChiTiet.AutoGenerateColumns = false;
dgrChiTiet.AutoGenerateColumns = false;
loadListSanPham(allSanPham);
}
void loadListSanPham(List<SanPham> li)
{
lbSanPham.DataSource …Run Code Online (Sandbox Code Playgroud) c# ×4
datagridview ×3
winforms ×3
android ×1
between ×1
build ×1
c++ ×1
datasource ×1
date ×1
installation ×1
messages ×1
recursion ×1
row ×1
separator ×1
sql-server ×1
sqlite ×1
string ×1
xamarin ×1