To add:
C:\Windows\System32\inetsrv>appcmd set site /site.name:"<siteName>" /+bindings.[protocol='https',bindingInformation='*:443:<hostHeader>']
To update:
C:\Windows\System32\inetsrv>appcmd set site /site.name:"<siteName>" /bindings[protocol='https',bindingInformation='*:443:<oldHostHeader>'].bindingInformation:*:443:<newHostHeader>
Tags:
daa224cb-dce8-47d7-b2ae-527b8b8865fe|0|.0
First you need to find out the missing .dll
try
{
//The code that causes the error goes here.
}
catch (ReflectionTypeLoadException ex)
{
StringBuilder sb = new StringBuilder();
foreach (Exception exSub in ex.LoaderExceptions)
{
sb.AppendLine(exSub.Message);
if (exSub is FileNotFoundException)
{
FileNotFoundException exFileNotFound = exSub as FileNotFoundException;
if (!string.IsNullOrEmpty(exFileNotFound.FusionLog))
{
sb.AppendLine("Fusion Log:");
sb.AppendLine(exFileNotFound.FusionLog);
}
}
sb.AppendLine();
}
string errorMessage = sb.ToString();
Elmah.ErrorSignal.FromCurrentContext().Raise(new Exception(errorMessage));
//Display or log the error based on your application.
}
Then check your elmah log.
My mistake was having 2 different versions of the same library on 2 different projects.
Tags:
03210a6d-913c-4e93-9949-3ecda00db11c|0|.0
var httpContextBase = new HttpContextWrapper(System.Web.HttpContext.Current);
var routeData = new RouteData();
var requestContext = new RequestContext(httpContextBase, routeData);
var urlHelper = new UrlHelper(requestContext);
Tags:
98b3888f-02f6-4bd0-a836-97f09b735eee|0|.0
select
*
from
umbracoNode node
inner join cmsContent cc on cc.nodeId = node.id
--inner join cmsContentVersion cv on cv.ContentId = cc.NodeId
--inner join cmsContentType ct on ct.nodeId = cc.contentType
--inner join umbracoNode ctNode on ctNode.id = ct.nodeId
--left join umbracoUser nodeUser on nodeUser.id = node.nodeUser
SELECT *
FROM cmsContentVersion
INSERT INTO [dbo].[cmsContentVersion]
([ContentId]
,[VersionId]
,[VersionDate])
SELECT nodeId, newID(), getDate()
FROM cmsContent
SELECT *
FROM [cmsContentVersion]
UPDATE cmsCV
SET cmsCV.VersionID = t1.versionId
FROM (
SELECT DISTINCT cpd1.contentNodeID , cpd1.versionId
FROM cmsPropertyData cpd1
WHERE cpd1.ID = (SELECT MAX(cpd2.ID)
FROM cmsPropertyData cpd2
WHERE cpd2.contentNodeId = cpd1.contentNodeId
)) AS T1 , [cmsContentVersion] AS cmsCV
WHERE cmsCV.contentID = t1.contentNodeID
Tags: umbraco, sql
e2263da9-f669-4c5e-98aa-b73079a8bc60|0|.0
SELECT 'ALTER SCHEMA dbo TRANSFER ' + s.Name + '.' + p.Name FROM sys.Tables p INNER JOIN
sys.Schemas s on p.schema_id = s.schema_id WHERE s.Name = '[OLD_SCHEMA]'
Tags:
d9f38f54-ac00-4377-80d8-8f39692de376|0|.0
The best examples are listed on www.x.com within our SDK index found at "https://www.x.com/developers/paypal/documentation-tools/sdk
Tags:
e4f2c488-4ebd-4b7f-abd5-270a2acc5a14|0|.0
6a11779f-2d5a-4e05-aedb-06f6afb33378|0|.0
How to query for users on a machine
qwinsta /server:<serverName>
You can also use quser.exe:
quser /server:<serverName>
How to log a user off of a machine
logoff <sessionId> /server:<serverName>
http://www.danrigsby.com/blog/index.php/2008/08/26/remotely-log-off-remote-desktop-users/
Tags:
877649a7-58dc-4dca-ac17-4c7ccaa17a7d|0|.0
http://www.facebook.com/add.php?api_key=[APP-ID]&pages=1
Replace [APP-ID]
Tags:
8d165328-da05-47fb-805f-6b44a485575c|0|.0
- Install VS plugin
- http://visualstudiogallery.msdn.microsoft.com/2b96d16a-c986-4501-8f97-8008f9db141a
- Restart VS2010
- Create a new item, when you are on Web, you will be able to see a new Sass SCSS template:
-

- Once you have created the SCSS file, you can right click and click on Run Custom Tool to generate the .CSS

Sample:
#navbar {
width: 80%;
height: 20px;
ul { list-style-type: none; }
li {
float: left;
a { font-weight: bold; }
}
}
Output:
#navbar {
width: 80%;
height: 20px; }
#navbar ul {
list-style-type: none; }
#navbar li {
float: left; }
#navbar li a {
font-weight: bold; }
Tags: sass vs2010
8754a5ae-71ec-4bc4-980a-d9be8b3ce29d|0|.0