appharbor

ASP.NET MVC - Switching from SQL Server Express to Compact Edition - Connection Issue

China☆狼群 提交于 2021-02-08 05:24:14
问题 I have a ASP.NET MVC 4 project - CodeFirst with Entity Framework - that was connected to a SQL Server Express database generated by EF and it was working just fine. However, I am trying to deploy to AppHarbor and having some issues with the version of SQL running there connecting with my app. So, I noticed that they have an example project that is utilizing SQL Server Compact Edition 4. Here is the web.config file for that project: https://github.com/friism/CodeFirstMigrations/blob/master/Web

Specify timezone of datetime without changing value

断了今生、忘了曾经 提交于 2020-02-01 17:36:26
问题 I'm wondering how to go about changing the timezone of a DateTime object without actually changing the value. Here is the background... I have an ASP.NET MVC site hosted on AppHarbor and the server has its time set to UTC. When I submit a form from my site containing a datetime value, say 9/17/2013 4:00am, it comes up to the server with that value. However then when I do: public ActionResult Save(Entity entity) { entity.Date = entity.Date.ToUniversalTime(); EntityService.Save(entity); } ...it

Error CS1705: Assembly uses 'System.Web.Mvc, Version=5.2.3.0' which has a higher version than referenced assembly

二次信任 提交于 2020-01-15 10:40:09
问题 I recently updated my project MVC 5.2.3 (using Nuget). Everything builds fine locally, but when I deploy to AppHarbor, I get the following precompilation error: An error occurred while compiling the views The log shows: Microsoft (R) ASP.NET Compilation Tool version 4.6.1590.0 Utility to precompile an ASP.NET application Copyright (C) Microsoft Corporation. All rights reserved. (0): error CS1705: Assembly 'PickemApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc,

appharbor connection string

眉间皱痕 提交于 2020-01-11 13:08:24
问题 I'm building an ASP.NET MVC3 application that requires access to a database. I've successfully set up the database on my local machine and everything works fine but then I uploaded the app to appharbor.com for testing and now I can't access the database anymore. How do you add a connection string for a SQLEXPRESS database on appharbor.com? The database file is in located in the App_Data folder. I've been trying for days to make it work without avail. I already added the SQL Server add-on on

How to integrate AppHarbor with Slack?

十年热恋 提交于 2019-12-24 00:39:03
问题 There does't seem to be an official integration a.t.m. How can I do it manually? What I'm looking to achieve is: Every time the build goes from PASSED to FAILED, a (sad) message should be posted on Slack Every time the build goes from FAILED to PASSED, a different (happy!) message should be posted. 来源: https://stackoverflow.com/questions/28087223/how-to-integrate-appharbor-with-slack

Persistent Auth Token Expires

家住魔仙堡 提交于 2019-12-23 09:47:16
问题 I have an ASP.NET MVC application using forms authentication. Here's the line of code where I create the auth token: FormsAuthentication.SetAuthCookie(username, true); My web.config contains: <system.web> <machineKey validationKey="{unique key}" decryptionKey="{unique key}" validation="SHA1" decryption="AES" /> <authentication mode="Forms"> <forms loginUrl="~/account/" timeout="2880" /> </authentication> ... </system.web> <location path="my"> <system.web> <authorization> <deny users="?" /> <

web config error: Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive

痞子三分冷 提交于 2019-12-23 06:56:55
问题 I am trying to deploy an application to AppHarbor and followed their instructions on how to modify my web.config, so it uses their instance auf Sql server. Upon running the solution I am getting the error mentioned in the topic: Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive. The only thread i found about this problem was this one. But adding the pre build lines and deleting the obj folder and rebuilding did not bring any solution. It keeps running into this

How do i allow my users to use custom domains on AppHarbor?

故事扮演 提交于 2019-12-22 14:59:14
问题 Free users will get a url like user1.myapp.com The paid ones will be able to point their domains to my app. And my app will serve specific content based on the domain name. Is this possible with AppHarbor? Is yes how? 回答1: Yes, it is possible to use custom hostnames on AppHarbor. If you go to the list of your applications on AppHarbor and click the application, you can click "Hostnames" in the navigation shown left. When you add a hostname there will be instructions on how you need to

ASP.NET Cookieless Session URL Issue ONLY in mobile safari

感情迁移 提交于 2019-12-22 04:42:37
问题 We're hosted on AppHarbor and using their memcacher add-on, setup as described in their documentation: <sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="MemcachedSessionProvider" xdt:Transform="Insert"> <providers> <add name="MemcachedSessionProvider" type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders" dbType="none" /> </providers> </sessionState> We're seeing an issue that can be reproduced ONLY by: Following a twitter

Can I deploy Sailsjs to AppHarbor or Heroku?

孤街醉人 提交于 2019-12-21 21:46:12
问题 AppHarbor supports Node using iisnode. Can I deploy my Sails.js app to AppHarbor at this time, and if so, how? I honestly have no idea what I'm doing with a node deploy but I'm trying to follow along with what I'm reading online. When I deploy my code out to my repo and AppHarbor builds it I get the following error: The current identity (...) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files'. 回答1: UPDATE (September 2013) There is an updated