asp.net - Deploying SharePoint layout ASP .NET assembly into GAC -
i'm rewriting legacy sharepoint application , need figure out how deploy it.
application sharepoint solution several features, including webparts , simple web pages code.
there webpage designed deployed in layouts
subfolder.
in production environment, there no codebehind in layouts
subdirectory, .aspx
file.
i understand corresponding codebehind assembly loaded gac. indeed, there.
page code doesn't contain <%@ assembly %>
directive ask in gac, nor specify fully-qualified name:
<%@ page language="c#" autoeventwireup="true" codebehind="default.aspx.cs" inherits="badwolf._default" %> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- --> </html>
so how page locate code assembly in production environment? need deploy same code different server if don't specify <%@ assembly %>
sharepoint gives me unknown error, represented in logs follows:
exception type: system.web.httpexception exception message: not load type 'badwolf._default'.
what did miss? there special config, special setting, whatever?
you need use inherits= qualified assembly name...
inherits="myassembly.mynamespace.myclass, myassembly, version=1.0.0.0, culture=neutral, publickeytoken=123456789"
Comments
Post a Comment