質問編集履歴

1

詳細内容を記載しました

2021/02/25 06:24

投稿

ambiti0us
ambiti0us

スコア4

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ASP.netで開発したプログラムをSQLserverへ接続できなくなりました。
1
+ ASP.netで開発したプログラムをIISへ配置しURLを開きましたがSQLserverへ接続できないエラーが発生しました。
2
2
 
3
3
  接続ユーザはsaでSQLserver認証にしています。
4
4
 
@@ -18,6 +18,120 @@
18
18
 
19
19
 
20
20
 
21
+ Webconfigの中身はこちらです。
22
+
23
+
24
+
25
+ <?xml version="1.0" encoding="utf-8"?>
26
+
27
+ <!--
28
+
29
+ ASP.NET アプリケーションの構成方法の詳細については、
30
+
31
+ https://go.microsoft.com/fwlink/?LinkId=301879 を参照してください
32
+
33
+ -->
34
+
35
+ <configuration>
36
+
37
+ <connectionStrings>
38
+
39
+ <add name="ConnectionString" connectionString="Data Source =192.168.40.28;Initial Catalog=test;User ID=sa;Password=Password" />
40
+
41
+ </connectionStrings>
42
+
43
+ <appSettings>
44
+
45
+ <add key="webpages:Version" value="3.0.0.0" />
46
+
47
+ <add key="webpages:Enabled" value="false" />
48
+
49
+ <add key="ClientValidationEnabled" value="true" />
50
+
51
+ <add key="UnobtrusiveJavaScriptEnabled" value="true" />
52
+
53
+ </appSettings>
54
+
55
+ <system.web>
56
+
57
+ <compilation debug="true" targetFramework="4.6" />
58
+
59
+ <httpRuntime targetFramework="4.6" />
60
+
61
+ </system.web>
62
+
63
+ <system.webServer>
64
+
65
+ <handlers>
66
+
67
+ <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
68
+
69
+ <remove name="OPTIONSVerbHandler" />
70
+
71
+ <remove name="TRACEVerbHandler" />
72
+
73
+ <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
74
+
75
+ </handlers>
76
+
77
+ </system.webServer>
78
+
79
+ <runtime>
80
+
81
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
82
+
83
+ <dependentAssembly>
84
+
85
+ <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
86
+
87
+ <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
88
+
89
+ </dependentAssembly>
90
+
91
+ <dependentAssembly>
92
+
93
+ <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
94
+
95
+ <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
96
+
97
+ </dependentAssembly>
98
+
99
+ <dependentAssembly>
100
+
101
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
102
+
103
+ <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
104
+
105
+ </dependentAssembly>
106
+
107
+ <dependentAssembly>
108
+
109
+ <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
110
+
111
+ <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
112
+
113
+ </dependentAssembly>
114
+
115
+ </assemblyBinding>
116
+
117
+ </runtime>
118
+
119
+ <system.codedom>
120
+
121
+ <compilers>
122
+
123
+ <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
124
+
125
+ <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
126
+
127
+ </compilers>
128
+
129
+ </system.codedom>
130
+
131
+ </configuration>
132
+
133
+
134
+
21
135
  アドバイス、または情報が足りない等ありましたらご教授ください。
22
136
 
23
137
  宜しくお願い致します。