Giter Club home page Giter Club logo

weeklyreport's Introduction

Hi there 👋

PuzzledAlien's github stats

Top Langs

weeklyreport's People

Contributors

puzzledalien avatar run2948 avatar youbaozhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

weeklyreport's Issues

WEB接口的登录问题

现在编译和调试运行都可以了(.net core版本),数据库的连接串如下(在Enterprise.Web.dll.config文件中),数据库已经配置为SQL授权访问,且启用了sa账户,并设置了密码。

 <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=.;Initial Catalog=Enterprise;User Id =sa;Password=MY_PASSWD;" providerName="System.Data.SqlClient" />
  </connectionStrings>

进入登录界面后,

  1. 默认账户admin不能登录,提示“账号或密码错误。”;
  2. 点击“注册”按钮,进入注册页面完成信息填写后,按“注册”按钮显示“Error: 404”,没有更多信息了。

估计还有什么地方没设置对?
admin账户是不是在数据库端创建的?
“注册”对应的代码是不是有什么特殊处理?

切换到.NET Framework 4.8后,

  1. 默认账户admin仍然不能登录,提示“账号或密码错误。”;
  2. 进入注册页面点击“注册”按钮后出现异常:
    System.IO.FileLoadException
    HResult=0x80131040
    Message=未能加载文件或程序集“System.Data.SqlClient, Version=4.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

出现异常的代码如下:

        public bool Insert(object obj)
        {
            if (obj == null)
                return false;

            SqlExpressionArgs args = new SqlExpressionArgs();
            args.Type = SqlExpressionType.Insert;
            **SqlExpression sqlExpression = RelationalMappingUnity.GetSqlExpression(obj, args);**   //【异常语句】
            return ExcuteSqlExpression(sqlExpression) == 1;
        }

Thanks.

登录界面之后出现的问题(.net core的版本)

登录界面后,我注册了一个个人账号,在试验各种功能的过程中,记录了如下问题:

  1. 点击“设置”里面的“组织机构”会报错“Error: 404”;
  2. 点击“设置”里面的“人员”会报错“Error: 404”;
  3. 点击“设置”里面的“角色”里面的“新增”,加入新增项后点击“确定”按钮会报错“Error: 404”;
    总之,“设置”里面的很多按钮点击了之后都会报错“Error: 404”。

点击“周报”里面的“填写”里面的“项目名称”和“子项目”名称以及“完成情况”都是乱的,看样子是直接的编码数字,但是查询里面这些列名对应的内容是正常显示的,比较怪异!

有空请帮忙看下吧(.net core版本的,后面我就不再关注.net framework 4.8的了)。

dotnet publish后的独立程序localhost:5000/Home/Login可以访问,但IPAddress:5000/Home/Login不能访问

dotnet publish后的独立程序localhost:5000/Home/Login可以访问,但IPAddress:5000/Home/Login不能访问,且对launchSettings.json做了如下改动。Publish到win-x64如此,Publish到linux-x64也是一样的效果,localhost字串好使,IP地址不好使。

    "Enterprise.Web": {
        "commandName": "Project",
        "launchBrowser": true,
        "applicationUrl": "http://0.0.0.0:5000;http://localhost:5000;",
        "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
        }

dotnet publish到linux-x64的问题

dotnet publish到linux-x64上之后,出现如下问题:

  1. localhost:5000/Home/Login可以访问,且速度飞快,但IPAddress:5000/Home/Login不能访问;
  2. 注册页面里面的验证码不正常,没显示,浏览器版本如下(我Linux是RHEL 7.x,浏览器都较老):
    Chrome:Version 62.0.3202.75 (Official Build) (64-bit)
    Firefox:52.0 (64-bit)
  3. 后来我在一个RHEL 8.x的虚拟机上试了,也是同1和2一样的问题,此时Firefox的版本为68.0。

说明:
程序虽然发布到了linux,但是数据库我还是连接的原来Windows上的,用了IP地址,做了协议设置。

[Possible BUG ] There may be a possible bug in the function WeeklyReport GetWeeklyReport(...) of the file WeeklyReport/Sheng.Enterprise.Core/WeeklyReportManager.cs.

In the WeeklyReport/Sheng.Enterprise.Core/WeeklyReportManager.cs, there may be a possible bug in the function WeeklyReport GetWeeklyReport(...) .

As the data grows, the time connecting to the server is becoming longer. And it is not reliable to throw exception according to the following count value. We've encountered this issue this morning after the WeeklyReport system has been peacefully running several month.

                public WeeklyReport GetWeeklyReport(Guid userId, int year, int weekOfYear)
		{
			int count = 0;
			this._dataBase.ExecuteScalar<int>("SELECT COUNT(1) FROM [WeeklyReport]", delegate(int scalarValue)
			{
				count = scalarValue;
			});
			if (count >= 500)
			{
				throw new Exception("在建立与服务器的连接时出错,错误代码:5392");
			}

At present, we've just changed the 500 value to 10000, and the issue has been solved. However, in the long run, there may be a better way to cope with this issue.

Huskier

关于部署的问题

您好!.net core的版本除了在集成环境中调试,可否简单地部署到Linux服务器啊?

或者,能否用docker部署?

或者,有没有部署相关的比较简单的教程什么的?

多谢!

huskier

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.