shared-hosting

ASP.NET MVC2 + Ninject + NLog (+ shared hosting?) = NullReferenceException

别说谁变了你拦得住时间么 提交于 2019-11-28 19:17:32
问题 I have an MVC2 app that's based on the Tekpub Starter Site, so it uses Ninject for dependency injection, NLog for logging, and a bunch of other libraries in various places. As far as I can tell though, it's these that are causing my problem. Everything works beautifully on my PC using the ASP.NET dev server (Cassini) but when I deploy to the server (it's a cheap shared hosting deal), I get a NullReferenceException that seems to be related to Ninject instantiating the logger. Here's the

Security Exception using MySQL and Entity Framework on godaddy

泄露秘密 提交于 2019-11-28 13:12:39
We are getting a SecurityException when using Entity framework on godaddy. The entity has been configured against a MySQL store. (v. 6.1.2) A bit of weirdness with the exception though... Looking at the exception stack it seems to imply that if we open up a connection to MySQL anywhere in the site, then we should get the same exception; however, opening up a MySQL connection directly seems to be working in another part of the site... Here's the verification: using (MySqlConnection connection = new MySqlConnection(ConnectionString)) { connection.Open(); ... } Anyone run across a similar issue?

Deploy Laravel 5 using only FTP in a shared hosting

左心房为你撑大大i 提交于 2019-11-28 08:19:49
I need to deploy a laravel 5 project to a client host. The plan of my client is basic hosting: Linux + MySql without cpanel or similar (i.e. no admin panel). I have access only via ftp and only to a folder named www.mycustomerweb.com. It means I can not create a directory at the same level of www.mycustomerweb.com folder. Only inside it (I think it is called shared hosting). One year ago, I deployed a project made with Laravel 4 this way: got rid of public folder moving its content to root folder and updating index.php and bootstrap.php finished whole project in localhost (with Xampp) uploaded

How to deploy laravel 4.2 on shared hosting?

非 Y 不嫁゛ 提交于 2019-11-28 07:47:04
I developed an application with laravel 4.2.8 and now I am having trouble deploying it. I followed this answer https://stackoverflow.com/a/16683938/3153380 but its not working. I am getting a white screen and the headers are returning a 500 Internal Server Error status. I read around that laravel 4.2 is a bit tricky to set up on shared hosting is this true? I can seem to find a working solution so those that have deployed 4.2 before please help. My folder structure is like below root/ laravel_base/ app/ ... public_html/ siteroot/ assets/ packages/ uploads/ index.php ... Any pointers? Helder

What is the equivalent to CRON jobs in ASP.NET? - C#

て烟熏妆下的殇ゞ 提交于 2019-11-28 07:16:34
In PHP we have CRON jobs, where the hosting server automatically picks up and executes a task as per the schedule given. What would be a good alternative to use for CRON jobs in ASP.NET ? I'd like to use a Web service, but that will not work in a shared hosting environment. Any help would be appreciated, and please advise a way to do this specifically in a shared hosting environment. Try Quartz.NET . it's a decent .NET scheduler which supports CRON expressions , CRON triggers and various other means and methods to schedule tasks to be performed at certain times / intervals. It even includes a

Godaddy ASP.NET membership database woes

[亡魂溺海] 提交于 2019-11-28 05:03:16
问题 I purchased a Windows shared hosting account on godaddy that came with 2 MSSQL databases. I setup one to hold my site data and the other installed aspnet membership schema to store site members. The site works perfectly even displaying data from the 1st database. However when I try to login or register I get this nasty error Exception Details: System.Configuration.Provider.ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured

How to know if shared host (GoDaddy) supports ASP.NET Web API [closed]

ε祈祈猫儿з 提交于 2019-11-28 04:51:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm trying to figure out if it is possible to deploy a Web API application on GoDaddy but could not find a good answer. The closest I came was this link: http://support.godaddy.com/groups/web-hosting/forum/topic/go-daddy-compatible-with-asp-net-mvc-4-razor-syntaxe/ Is there a way

How to use prettify with blogger/blogspot?

风格不统一 提交于 2019-11-28 02:59:08
I'm using blogger.com to host some texts on programming, and I'd like to use prettify (same as stackoverflow) to nicely colour the code samples. How do I install the prettify scripts into the blog domain? Would it be better (if indeed its possible) to link to a shared copy somewhere? I have webspace on a different domain. Would that help? Many thanks. When you make a new entry in blogger, you get the option to use HTML in your entry and to edit your blog entries. so type http://blogger.com , then login, then Posting>Edit Posts>Edit then in there put this at the top: <script type="text

IIS 7.5 gzip compression at shared hosting

若如初见. 提交于 2019-11-28 01:55:47
问题 I have a web-site, which uses ASP.NET and is hosted at IIS 7.5 shared hosting, so I have no direct access to IIS settings. Now I want to enable gzip compression of my pages and css/js files using IIS capabilities, but none of recipes found at the Internet worked for me. For example, when I add what is written here to my Web.config, nothing changes: no errors, no compression. Is this possible? If not, what's the best alternative? 回答1: Try the configuration sample at the bottom of this article:

log4net throwing Security Exception in ASP.Net MVC web application

大憨熊 提交于 2019-11-27 18:03:07
问题 I have written 3 ASP.net MVC web applications, and all are deployed on shared hosting servers with my ISP. All 3 applications are very similar in configuration and settings. The 1st application is deployed to a different server than the 2nd and 3rd. The 1st application gives me no errors. The 2nd and 3rd applications spit out the following SecurityException somewhat : randomly: Link Exception Text: Security Exception Description: The application attempted to perform an operation not allowed