hosting

Cannot perform CAS Asserts in Security Transparent methods security level issue

你说的曾经没有我的故事 提交于 2019-12-05 18:11:10
I encountered this error on host. System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods at System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 create) at System.Security.SecurityRuntime.Assert(PermissionSet permSet, StackCrawlMark& stackMark) at System.Security.PermissionSet.Assert() at MySql.Data.MySqlClient.MySqlParameter.SetTypeFromValue() at MySql.Data.MySqlClient.MySqlParameter.set_Value(Object value) at MySql.Data.MySqlClient.MySqlParameter..ctor(String

are there any gotchas for hosting a Silverlight app on a Linux server?

风流意气都作罢 提交于 2019-12-05 17:56:10
I'm building a new Silverlight app for a photography studio. I was about to say "you have to have a Windows-based server hosting it" and then I thought, wait is that right? Looks like it's not. So I could point him toward a Linux host. I know you have to register the MIME types (from a different SO thread). Are there any other caveats or gotchas that I need to know about? Assume for a second that I know next to nothing about Linux. Edit: what if the app needs to talk to a database (mySQL)? Seems like I'd need to have Moonlight to get that going, which isn't gonna fly. The only thing you have

WCF Service dies on its own after some time

落花浮王杯 提交于 2019-12-05 16:54:49
问题 I am facing a peculiar problem related to a hosted WCF service (.NET Framework 4, IIS 7, Windows 2008 Standard SP2). After I deployed the service it works fine for some time and it dies on its own by throwing a file not found exception. The exception details are given below. The application is hosted in IIS7, with a specific app pool pointing to .NET Framework 4 version. I have used FusionLog to find more on the missing assembly no luck. However if I delete all assemblies from the hosted

Multiple Domains to One Virtual Host | Wildcard Host (shared hosting)?

北战南征 提交于 2019-12-05 14:19:32
I have the following task: Create one website which is accessible with 20 different domains names. Same files, same folder, same ip. Question (shared hosting): Can this be accomplish with a bare cname's pointing to the same common subdomain or do we need one static ip for all? The problem is sure shared hosting and I'm trying to avoid creating manually "cpanel addon domains" one by one. Shared hosting doesn't allow to modify httpd conf which allows me to create a wildcard virtual host for an IP. I guess my question is auto answered; I'll need a static unless I'm only using subdomain's w

How can i implement a .htaccess configuration in Firebase Hosting

99封情书 提交于 2019-12-05 12:59:10
I have in my domain a .htaccess configuration that allows my app to work perfectly with the routes. It avoids the error when you refresh an angular 2 app can't resolve the routes. My current config is ths one <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # not rewrite css, js and images RewriteCond %{REQUEST_URI} !\.(?:css|js|map|jpe?g|gif|png|php)$ [NC] RewriteRule ^(.*)$ /index.html?path=$1 [NC,L,QSA] </IfModule> I'm trying to implement the same configuration in my Firebase Hosting because I'm migrating my site, I don't know

Could not load assembly WebPages.Deployment version 2 at host?

旧时模样 提交于 2019-12-05 12:52:14
问题 I have a ASP.NET MVC 2 website (VS2010) that I have upgraded to ASP.NET MVC 3 (VS2012) and this works fin on local IIS7 but when publishing it I get this exception on host : Could not load file or assembly 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. After some seartch I found this that states that I should set CopyLocal on some of the references(inlcuding the System.Web.WebPages

Could not find default endpoint element that references contract - Hosting wcf

此生再无相见时 提交于 2019-12-05 12:19:17
I have one wcf service on this site http://wswob.somee.com/wobservice.svc I try to consume that service with my winform app. This is the error I receive when I create an instant of the service com.somee.wobservice.IwobserviceClient myservice = new com.somee.wobservice.IwobserviceClient(); error: Could not find default endpoint element that references contract 'com.somee.wobservice.Iwobservice' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the

$_SERVER['document_root'] returns /htdocs not /public_html

你说的曾经没有我的故事 提交于 2019-12-05 11:54:37
I'm looking to switch over to a new host, and they provide this nice little "temporary url" to test out your files before you switch. All fine and dandy. So I copy over all of my files. At the top of every page I require another file from the server that is stored at public_html/includes/head.php . Now for whatever reason, the $_SERVER['document_root'] var is returning /public_html/htdocs/includes/head.php (which does not exist on the server) and not /public_html/includes/head.php (which does exist). The resulting error is as follows: Warning: require_once(/home/secure31/public_html/htdocs

NULL reference exception while reading user sessions (Reflection)

好久不见. 提交于 2019-12-05 09:17:23
I have implemented the code for reading the active sessions using the reference Reading All Users Session and Get a list of all active sessions in ASP.NET . Private List<String> getOnlineUsers() { List<String> activeSessions = new List<String>(); object obj = typeof(HttpRuntime).GetProperty("CacheInternal", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null, null); object[] obj2 = (object[])obj.GetType().GetField("_caches", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(obj); for (int i = 0; i < obj2.Length; i++) { Hashtable c2 = (Hashtable)obj2[i].GetType().GetField("

Android - Create RESTful WebService - Host it on mobile

眉间皱痕 提交于 2019-12-05 06:39:15
My question is How to create a Web-service on android device & host it on the mobile. Please don't mis-understood it, I don't want to access the already created webservice deployed on the server, I want to create a webservice that returns json/xml & host it on mobile. I'm totally new to android development but I have programming experience. Please check this link: RESTful Web Services Implementations in Mobile Devices It says its doable for java based mobile so I think it can be done for android too. Thanks. There is one problem with your setup and mobile devices: mobile networks (wifi and 3g)