asp.net core web部署以及访问的问题

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/ycx_520/article/details/89467818

部署必备:SDK+Runtime

1.数据库连接异常,sqlException..

       可能是没有安装SDK

2.IIS 程序池\aspnetcorev2.1 无法连接数据库...

       IIS应用程序池》高级设置》标识》改成LocalSystem

3.IP+Port,连接超时问题或无法访问...

   服务器》高级安全windows防火墙》入站规则》新建规则》端口》下一步》tcp+本地特定端口》下一步-----

   ---》填写名称+描述,中英文都可以。

 

 

 

展开阅读全文

ASP.NET Web Service 部署问题

03-27

我做了一个 .NET 2.0 的Web Service , 本地测试没有问题。rnrn发布在服务器上:服务器系统是 Window Server 2000,我只在服务器上安装了.NET Framework 2.0 ,在服务器上的IIS6 浏览页面没有问题,但是查询数据库数据发生以下错误(数据库链接应该没有问题的):rnrn[color=#FF0000]System.InvalidOperationException: Unable to generate a temporary class (result=1).rnerror CS2001: Source file 'C:\WINNT\TEMP\u4if5f7u.0.cs' could not be foundrnerror CS2008: No inputs specifiedrnrn at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)rn at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)rn at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)rn at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence)rn at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.HttpServerType..ctor(Type type)rn at System.Web.Services.Protocols.HttpServerProtocol.Initialize()rn at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext contextrn......[/color]rnrn请教各位这是什么问题,是环境部署,还是????rnrnrnrnrnrn 论坛

没有更多推荐了,返回首页