- WIN7中组件服务中的DCOM配置找不到Microsoft Excel应用程序的解决办法:
这主要是64位系统的问题,excel是32位的组件,所以在正常的系统组件服务里是看不到的
可以通过在运行里面输入 comexp.msc -32 来打开32位的组件服务,在里就能看到excel组件了
- Provider=Microsoft.Jet.OLEDB.4.0;Provider=Microsoft.ACE.OLEDB.12.0;
- |DataDirectory|
- connectionString="Data Source=|DataDirectory|MvcMusicStore.sdf"
- Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\aspnet.mdf;Integrated Security=True;User Instance=True
- providerName="System.Data.SqlServerCe.4.0"/>
- IE7 httppostfile对象的FileName会带客户端文件的绝对地址,取文件名时应用Path.GetFileName()
- json如果为了兼容IE7浏览器返回text类型,则应返回text/plain,text/html在某些情况下客户端执行JSON.parse会报错
- Response.Redirect 执行时不会向客户端写cookie,应注意这个问题( 经验证后是执行Response.Redirect后不定cookie, 待验证???)
- log4net配置 [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4netTest.config")]
- log4net 程序集调用 var log = LogManager.GetLogger(Assembly.GetEntryAssembly(),name);
- log4net ftp下载日志 报550时 设置 <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
- <%$ %> 属性代码片段,但只能用地服务器控件中 <asp:Label runat="server" Text="<%$ appSettings:test %>"></asp:Label>
- 注册全局程序集 gacutil.exe -i dll路径
-
protected void Application_End(object sender, EventArgs e)
{
var reason = HostingEnvironment.ShutdownReason;
CommFunc.Log.Warn("Application_End, reason:" + reason.ToString());
} -
var traceWriter = request.GetConfiguration().Services.GetTraceWriter();
traceWriter.Trace(request, "", System.Web.Http.Tracing.TraceLevel.Debug, (traceRecord) => { traceRecord.Message = "..." ; }); - cmd重启appPool c:\windows\system32\inetsrv\AppCmd.exe stop apppool /apppool.name:"ASP.NET v4.0"; c:\windows\system32\inetsrv\AppCmd.exe start apppool /apppool.name:"ASP.NET v4.0"
- System.Net.Http.Formatting.5.2.3=>Microsoft.AspNet.WebApi.Client.5.2.7