Deploying SharePoint Layout Assembly Into GAC?

Feb 17, 2011

I'm currently rewriting a legacy SharePoint application and I need to figure out how to deploy it. The application itself is SharePoint solution with several features, including webparts and simple web pages with some code.

There is a webpage that is designed to be deployed in layouts subfolder. In production environment, there is no codebehind in layouts subdirectory, just the .aspx file.

I understand that corresponding codebehind assembly is loaded from GAC. Indeed, it is there. However the page code doesn't contain <%@ Assembly %> directive that would ask it look in GAC, nor does it 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 does this page locate its code assembly in the production environment? I need to deploy the same code to a different server but if I don't specify <%@ Assembly %> SharePoint gives me Unknown Error, which is represented in logs as follows:

Exception Type: System.Web.HttpException
Exception Message: Could not load type 'BadWolf._Default'.

View 2 Replies


Similar Messages:

Web Forms :: Deploying Aspx Pages In Sharepoint?

Mar 10, 2011

provide me any pointers for deploying aspx pages in sharepoint layouts folder.

and also how to add any OOTB webpart in that deployed aspx pages. Can we open those pages in sharepoint designer to add any OOTB webpart.

View 2 Replies

Configuration :: Error When Deploying Visual Webpart In Sharepoint

Mar 25, 2011

I am facing error when I am deploying Visual Webpart in Sharepoint . Then its showing following error Could not load file or assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

View 1 Replies

Visual Studio :: Deploying Form In Sharepoint Site?

Dec 1, 2010

I have created an asp.net window form as a web page and now i have to embed this form in a sharepoint site. How to i proceed.

View 2 Replies

Web Forms :: Assembly Reference Is Missing Error When Deploying On Server

Nov 16, 2012

I have adeed a dll file on my project and it's working fine with local system. but when i uploaded it on hosting webspace it's displaying error. "assembly refference is missing" i have alreday added bin folder there. So how to add bin folder on hosting spaces.

View 1 Replies

Sharepoint Woes - Couldn't Load File Or Assembly - BadImageFormatException

Jan 27, 2010

I've been working on a project that's been a rather seat-of-the-pants experience. We have MOSS 2007 and Silverlight 3 installed. We're trying to make use of some new 3rd party software, Visual Fusion([URL] While working through the tutorial I ran into a bit of an issue. All I really have to go on is the guidance package and sample stuff they provided so it's still a little fuzzy. Basically when I debug the project in Visual Studio 2008, instead of loading the default.aspx page, I get this on my browser instead:

Server Error in '/' Application.

Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[BadImageFormatException: Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +86
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

I've spent the last few hours poking around for answers and it seems to be related to the fact that I'm running this all on a 64-bit machine, but all the references to workarounds I found were rather vague.

View 2 Replies

.NET Master Page Vs. SharePoint Page Layout Template?

Aug 10, 2010

A client of mine uses SharePoint to manage its websites, and recently asked me to build a small website for them using ASP.NET, which they would then implement via SharePoint.My skills with ASP.NET are intermediate, and I have no experience at all with SharePoint.I created a master page for the site, as well as the individual pages, but the client is telling me that they also need a page layout template in order to view and manage the site via SharePoint.

View 1 Replies

Recompile The Assembly To Use The New Mono Assembly Versions The Assembly Is Closed Source?

Feb 18, 2010

I have recently discovered that I am affected by this bug http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71515.html

Well,at http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71529.html they say the work around is to create a global policy assembly and redirect the assemblies that way since it is not read from the web.config.

How do you actually do what they describe there? There is a huge documentation gap in that area with Mono.Also,I can't just recompile the assembly to use the new Mono assembly versions because the assembly is closed source.(but it does work with Mono.)

View 1 Replies

Configuration :: Deploying Web Application - Not Working After Deploying?

May 4, 2010

I am using XAMPP to publish my a .net application. The server is working fine. I created a sample login.aspx file, and it works fine. I deleted the sample login file, and I build and copy all the files to the XAMPP directory. When I tried to acces the page, it gave an error message "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, contact the

View 8 Replies

Unable To Call The SharePoint Custom Web Service From Another SharePoint Farm

Jan 12, 2011

I have deployed a custom SharePoint Web service on Farm A. I am trying to access this Web service from a SharePoint timer job on Farm B. On Farm B, I am creating Class Library project, packaging it (wsp) and then deploying to GAC. The problem is I'm unable to access the Web Service using the following code. TodaysNewSVC is a service reference

TodaysNewSVC.GetTodaysnewsfromInsite objGetNews = new TodaysNewSVC.GetTodaysnewsfromInsite();
objGetNews.PreAuthenticate = true;
objGetNews.Credentials = CredentialCache.DefaultCredentials;
objGetNews.Url = "http://insite-dev.portal/_vti_bin/todaysnews.asmx";
DataTable dt2 = objGetNews.getNewsFromInsite(true, true);

//getNewsFromInsite is a WebMethod which returns the DataTable.

Note: Both farms use the same active directory authentication. I have also done the debugging for Timer Job and feature activation and they are working fine. The problem occurs during the call i.e. getNewsFromInsite
The asmx and wsdl files are accessible from Internet Explorer and also from Windows Console application. Here is the code which I use from console application:

GetTodaysnewsfromInsiteSoapClient objWSClient = new GetTodaysnewsfromInsiteSoapClient();
objWSClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;[code]...

Here is the error message:The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fPages%2fproblem-with-page.aspx%3fc%3d500">here</a>.</h2>
</body></html>

View 1 Replies

Visual Studio :: Assembly Editor - Create A First Blank Page For An Assembly Project?

Oct 11, 2010

i was wondering if visual studio 2010 can be used as an assembly editor too????if yes where do i have to go to create a first blank page for an assembly project?

View 1 Replies

Web Forms :: Referring An Assembly In Project / Without Adding Assembly Reference, It Still Accepting And Running Code?

Jul 5, 2010

Before using any class in your website project/page we have to add it's assembly reference to our project. Right?

Now, when I am using SmtpClient class from System.Net assembly after adding the System.Net.Mail namespace in namespace node of application's web.config file but without adding assembly reference to the project, it still accepting and running the code. Why?

I enquired the machine's web.config file located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIG but didnt find assembly reference for System.Net there also.

So bit confused how it is working and where the assembly reference has been added and how?

View 1 Replies

Error: "Could Not Load Type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010

Jun 15, 2010

Following error comes when creating a WebPart In sharePoint 2010 Server.

Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from assembly 'Microsoft.SharePoint, Version=14.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest(SPUserCodeWebPartHttpRequestContext webPartExecutionContext, SPUserCodeWebPartHttpResponse httpRequestResponse) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.Execute(SPUserCodeExecutionContext executionContext) at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)

View 1 Replies

Assembly Generation - Reference Assembly Targets Different Processor?

May 2, 2010

I'm getting following warning

Assembly generation -- Referenced assembly 'System.Web.dll' targets a different processor

What does this mean and how do I fix this?

View 1 Replies

Create Shared Assembly And Use That Assembly In Web Application?

Jun 3, 2010

I just want to create Shared Assembly and use that assembly in our application.I am using VS 2005.

Step 1

I am trying to build a dll.

Create class library project <TestDllHell>.

Under that project add CalculationArea.cs file.

[Code]....

Then TestDllHell.dll add into GAC successfully.

Now I want to use it in my Website project so did the following steps but unable to view that dll in .Net Reference List Box.

•I go for Run regedit to edit the Windows Registry.

•Navigate to the HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFrameworkAssemblyFolders key.

•Right click on the AssemblyFolders key, then select New > Key. Enter the name of your assembly (without the .dll extension).

•Double click on the key's (Default) value. The Edit String dialog will appear. Enter the full path of the folder where your assembly resides. Note that all assemblies in that folder will appear in the Visual Studio list.

•IMPORTANT! You must exit and restart Visual Studio to see your assembly in the Add Reference dialog.

My question is that

How can I get that dll in my add reference assembly List .Net section?

And if I modify that dll(TestDllHell.dll) then again register in GAC then version will be different,So how can I told my client application that which dll you choose?

View 3 Replies

MVC :: How To Swap The Layout

Mar 18, 2011

In my first MVC3 system, I have more than one menu which has different layout.

how we can have more than 1 layout in one MVC application?

View 3 Replies

Get Layout Web Page?

Aug 28, 2010

I am new in web development and I am designing a web based application now a days. This is my semester project and as well as my first web application. So I have designed the home page using fixed layout taking my pc's 1600x900 resolutions under consideration.I have tested it in IE, Firefox, and Chrome. But I am getting a horizontal scrollbar. And I have come to know that use of fixed layout reduce the portability of web site. I need some information/web link and help on liquid layout. I am collecting images frovarious free template provider website for my web pages and also taking concepts from that.

View 6 Replies

Using Table As A Layout?

Dec 15, 2010

Why not use tables for layout in HTML?

i know that using tables as layout is a big problem..Why don't professional web designers use tables for layout anymore? and what are the alternatives in CSS that i can use and will be the best alternative to tables??

View 4 Replies

Deploying Web App To Different Server

Oct 11, 2010

I was trying to deploy an asp web app over to a different server and when I ran the .msi setup I got the error:

Setup requires Internet Information Server 4.0 or higher and Windows NT 4.0, Windows 2000 or higher...

Now its obvious that it has version 6.0 since windows server 2003 is installed, do you have why this is happening or should I just move my entire application with code over? My database has already successfully been installed on this server and just need the app to be deployed to this server.

View 1 Replies

Configuration :: Deploying MVC 2 Web App Using EF?

Sep 21, 2010

Used Visual Studio 2008 to publish web app to a local IIS7 Website but still hooked to VS development .mdf file with EF. With this I can successfully access web app via local host. As long as the development db server is running, web access is fine.

Then I tried to change connection to local .SQLEXPRESS where I have other databases (this is my production server). I have replicated the development data into the SQLExpress database already. The connection string appears OK.

The problem is the application's entity data model (.edmx file) is still tied to the development .mdf file.

When I tried to rebuild the entity data model, I can see the production instance in list of db connections but cannot select it. Only the development db objects are available.

So I don't think the problem is related to connecting to the production db. It is more about getting the .edmx file to point to the production table. Either it should migrate over or it needs to be rebuilt. I don't see any MVC deployment pages discussing EF deployments.

View 2 Replies

Deploying .net Webapplications?

Jun 18, 2010

I have a local .net webapplication which needs to be run everytime to see the output . Instead of that can i deploy it on the local host server...so that through url i can see the output.

View 2 Replies

Deploying MVC 1.0 App With HTTPS?

Aug 19, 2010

We have an application built on ASP.NET MVC 1.0 which, once deployed, should be accessed with HTTPS. I tried few approaches for HTTPS but I have a few questions.:My home page does not need to be Secured (HTTPS), but rest of the hyperlinks following it will be Secured.I read about the action method attribute [requiresHTTPS] however I want to understand what happens to that tag during development on local machine. In a development enviroment, how do I install a certificate on a dev machine/virtual directory to code and test my changes.So this application is complex in nature and we have around 13 controllers and 50 action methods. This application will have information like Credit card numbers since we do accept payment through this website.

View 1 Replies

Statement Changes The Layout Of Web Page?

Mar 16, 2011

Response.Write(" alert('General Settings Updated Successfully');"); statement changes the layout of my webpage i want to keep the layout as it is..

View 1 Replies

Can Use Ascx As A Layout Template

Jan 7, 2010

This is my layout template (ascx without code behind)

<%@ Control Language="C#" AutoEventWireup="true" Inherits="ws.helpers.LayoutUC" %>
<div>blah blah blah</div>
<ws:Panel runat="server" ID="left"></ws:Panel>
<ws:Panel runat="server" ID="main"></ws:Panel>
<ws:Panel runat="server" ID="right"></ws:Panel>

View 2 Replies

Css - Layout For Admin Page

Jan 21, 2011

I have to develop a admin page in asp.net. For that I need a master page template which looks like admin panel, menu, CSS. I am seeking layout for admin panel I am not sure if this is the right place to ask this question. If it is not I request moderators to move this question to appropriate place.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved