MVC3 Upgrade The type 'System.Web.Mvc.AcceptVerbsAttribute' exists in both

by Cliff 26. January 2011

If after following the manual upgrade instructions you receive an error such as "The type 'System.Web.Mvc.AcceptVerbsAttribute' exists in both " you should try the following:

 

 

  1. Right click on the web site and view the properties -> and in the references section make sure you do not have duplicate references...if you do, delete one of them
  2. Check you bin directory, if you have System.Web.Mvc.dll in the bin, remove it (you may also need to remove System.Web.Abstractions.dll, etc.


    You should then be able to build 

 

Wordpress Pretty permalinks

by Cliff 15. January 2011
If you would like to have "pretty" URL's in wordpress, you can configure this using the "Permalinks" setting in the admin site (wp-admin).  If you select the option "Month and name" this will result in pretty url's, such as category/news.
 
If when you do this, the pages do not load, then you may need to update your apache settings.  Below are the steps I followed.

Assumes you already have the mod_rewrite installed already.
 
  1. backup your .htacess file in the root directory of your wordpress site
  2. modify httpd.conf (this file should be in the conf dir under your apache install dir)
    uncomment:

    LoadModule rewrite_module modules/mod_rewrite.so
  3. modify httpd.conf
    Find the lines below and set AllowOverride to All
     #   Options FileInfo AuthConfig Limit
          AllowOverride All  
 
Now you can delete your .htaccess, go into the admin site, permalinks, select default, save, then select Month and name, then save.  A new .htaccess should be created and you should be in business. 
 

jquery .load using OPTIONS in Firefox

by Cliff 5. January 2011

If you are using the .load or .ajax jquery functions and you notice that instead of using a POST, OPTIONS is used, it may be due to the same origin policy.  This also applies to same domain traffic going from HTTP to HTTPS.

More info here  http://stackoverflow.com/questions/1099787/jquery-ajax-post-sending-options-as-request-method-in-firefox

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  June 2017  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

View posts in large calendar

Blogroll

Download BlogEngine.NET

Download at CodePlex

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Subscribe