Web Applications on IIS - iis

i am trying to host my site locally on IIS. But when i browse the site i get this error:
Server Error in '/baby_boy' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'baby_boy`.SiteMaster'.
Source Error:
Line 1: <%# Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="baby_boy.SiteMaster" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Source File: baby_boy/Site.master Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
any advice on how to solve this would be much appreciate.
Thanks.

In the file Site.Master, there is a reference to the classname SiteMaster, in namespace baby_boy
is this file present, and in the the same directory as the Site.Master file?
or is no SiteMaster class?
In the Site.Master there is a reference to baby_boy.SiteMaster, which should read as follows:
baby_boy.Site.Master
(you are missing one period)

Related

The absolute uri: http://java.sun.com/jsf/html cannot be resolved when running JSF 1.0 application on Wildfly 8.1

I'm working on upgrading one of my applications from JSF 1.0 to 2.0. It runs on JBoss 4.0.3SP1 and I'm trying to make it run on WildFly 8.1 final. After some struggles, I was able to get the application compiled and deployed to WildFly but got this error, when accessing the .jsp file.
2015-07-09 07:40:08,600 ERROR [io.undertow.request] (default task-2) UT005022: Exception generating error page /errorpages/error.faces: org.apache.jasper.Jasper
Exception: JBWEB004113: **The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application** at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:53) [jastow-1.0.0.Final.jar:1.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:147) [jastow-1.0.0.Final.jar:1.0.0.Final]
I've read the following articles but still cannot fix the problem.
JSF 1.2 on Wildfly 8 Final - weld-core-jsf is still referencing JSF 2.2 API
Can not find the tag library descriptor for http://java.sun.com/jsf/facelets
https://developer.jboss.org/wiki/StepsToAddAnyNewJSFImplementationOrVersionToWildFly
https://developer.jboss.org/wiki/DesignOfWildFlyMulti-JSFFeature
I also enabled org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL in web.xml and disabled "weld" in WildFly and I put the following libs/files in <EAR>/lib, <WAR>/WEB-INF/lib.
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar
html_basic.tld, jsf_core.tld
And, for JSTL, I tried different URLs, like:
<%# taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
or
<%# taglib uri="http://java.sun.com/jsp/jstl/html" prefix="h"%>
or put the URL into <html> instead of using <%#taglib>.
However, the problem cannot be resolved by the above steps.
Is there anyone had the same problem can share some experience? I'd like to see if there is a possibility I can run the JSF 1.0 code on WildFly?
Thanks in advance!

How to add custom user control in SharePoint 2013 HTML master page

I am trying to add custom usercontrol in SharePoint 2013 HTML master page, but its not working and showing the message
SharePoint can't parse this file, most likely because of an incorrectly formatted SharePoint snippet. The markup at the following location is causing problems. Edit the markup manually to fix it, or replace it with a new snippet from the Snippet Gallery.
Invalid SharePoint markup at line 145. Please repair or recreate the markup
following is the code snippet for HTML master page.
<!--CS: Start Create Snippets From Custom ASP.NET Markup Snippet-->
<!--SPM:<%# Register Src="~/_controltemplates/15/SharePointProject1/UserControl1.ascx" TagPrefix="uc1" TagName="MyDepartmentControl" %>-->
<!--SPM:<uc1:MyDepartmentControl runat="server" id="MyDepartmentControl1" />-->
<!--CE: End Create Snippets From Custom ASP.NET Markup Snippet-->
Please help me how i can make it possible to add asp.net user-control in SharePoint 2013 HTML Master page.
Thanks in advance.
I just solved this problem.
The answer is; convert this line
<!--SPM:<%# Register Src="~/_controltemplates/15/SharePointProject1/UserControl1.ascx" TagPrefix="uc1" TagName="MyDepartmentControl" %>-->
to
<!--SPM:<%# Register TagPrefix="uc1" TagName="MyDepartmentControl" Src="~/_controltemplates/15/SharePointProject1/UserControl1.ascx" %>-->
Have fun..

OpenShift: Too many active sessions

I got an error in OpenShift scalable (JSF JBossAS 7.1) application:
2014/06/19 03:39:55,581 FATAL
[org.apache.jasper.runtime.JspFactoryImpl]
(http-127.12.210.1-127.12.210.1-8080-2) Exception initializing page
context: java.lang.IllegalStateException: createSession: Too many
active sessions
I configured STATE_SAVING_METHOD to client but error is the same.
Why does this error appears?
it seems the solution is put next code snippet to jsp page which is available for haproxy
<%# page session="false" %>

Set custom master pages in sharepoint-hosted apps

I want to use custom master pages in SharePoint-Hosted apps.
I followed this article: http://anthony-verschraegen.blogspot.fi/2013/03/sharepoint-2013-apps-custom-app-master.html
But after my solution deployment to site collection (Myportal/sites/apps) i get File Not Found error. How to solve this problem?
Specify your solution structure and URL details will help your question get answer correctly.
Sometime the mismatching, typo in some path will lead you to this error. Within your provided information, I suggest that you should perform the following check:
Check the Module element.xml file: Module Name, File Path, File Url
<Module Name="MasterPage">
<File Path="MasterPage\appNew.master" Url="_catalogs/masterpage/appNew.master" ReplaceContent="TRUE" /></Module>
Check the .aspx file:
Remember the path: "~site/_catalogs/masterpage/"
<%# Page Language="C#" MasterPageFile="~site/_catalogs/masterpage/appNew.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Check the package.package file: Does the MasterPage module added to any of your features ?
After make sure the above correct, please let me know if you're still facing this problem.

SharePoint : Issue creating Disco

I've followed the instructions here http://msdn.microsoft.com/en-us/library/ms464040.aspx to the letter, when I run disco.exe I get this error:
The HTML document does not contain web service discovery information.
Any suggestions?
http://msdn.microsoft.com/en-us/library/ms464040.aspx
I had some problems with the declaration:
<% # WebService Language="C#" Class="MOSS_WebServices.My_Services, MOSS_WebServices ,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=1b40cb3309a7591b" %>
When you run Disco.exe against your asmx file you may experience very
inconvenient message "HTML document does not contain Web service
discovery information". In my case it was very important to see the exact error message. Please find answer at http://malcan.com/EN/Lists/Tips%20and%20tricks/DispForm.aspx?ID=25

Resources