我正在尝试发布空白的Web应用程序。使用ASP.NET Web应用程序。我只有一个带有单击处理程序的asp按钮。发布方法为[DllImport("dllname.dll", EntryPoint = "#3", CharSet = CharSet.Unicode, SetLastError = true, CallingConvention = CallingConvention.StdCall)]
public static extern int DeviceList(ref IntPtr hDeviceList);
。但是,如果使用AutoEventWireup,则会出现错误:
data = {2349302: ['7/24/2018 16:03', 'https://localhost/file3.docx'],
2349333: ['7/24/2018 16:03', 'https://localhost/file1.docx'],
2529374: ['7/24/2018 16:01', 'https://localhost/file3.docx'],
2599302: ['7/24/2018 16:01', 'https://localhost/file1.docx'],
2599303: ['7/24/2018 16:04', 'https://localhost/fil232.xml']}
similar_filename = {}
for key, line in data.items():
date, name = line
if name not in similar_filename:
similar_filename[name] = [key]
else:
similar_filename[name].append( key )
similar_filename
>>> {'https://localhost/fil232.xml': [2599303],
'https://localhost/file1.docx': [2599302, 2349333],
'https://localhost/file3.docx': [2529374, 2349302]}
如果我手动添加Click处理程序并且不使用AutoEventWireup,则该应用程序可以运行。
那么,配置文件或IIS设置中是否还有一些其他设置,或者我不知道的其他内容?