0

I´ve unpacked a WSP package creating a new Project in Visual Studio with the "Import Sharepoint Solution Package" option. I can deploy the project and everything works just fine but I obtain this warning message:

Warning 1   File 'MySolutionCentralAdminPage.aspx.cs' was not found.    

The Warning comes with this block of code:

<%@ Page Language="C#" 
AutoEventWireup="true" 
CodeBehind="MySolutionCentralAdminPage.aspx.cs"
Inherits="MySolution.MySolutionCentralAdminPage" 
MasterPageFile="~/_admin/admin.master" %>   

The thing is everything just works so this file MUST be somewhere but after an intensive search (in my computer and then looking for solutions in internet) I must say I cannot find this file.

How can I locate it in order to modify it?

1 Answers1

1

Is there an MySolution.aspx? the codebehind for the markup you've pasted here should be CassidianCentralAdminPage.aspx.cs not MySolution.aspx.cs

When you're sure that everything is working without MySolution.aspx.cs, you could remove the ItemEntry from the Project file.

To do so you should unload the project in VS and choose Edit ProjectFile from the contextmenu when you rightclick the unloaded project.

I would remove the Item Entry for MySolution.aspx.cs, save it and reload the project.

But you have to ensure that everything is working without the MySolution.aspx.cs..

Thorsten

Thorsten Hans
  • 2,675
  • 19
  • 21
  • I´m sorry, I missmatched the code. Now it´s correct with the correct names. I do have a MySolution.aspx file (where this block of code is). – Kibil Nâla Jan 12 '12 at 09:56
  • ok, but the file mentioned in the Error Message is still not the one which is referenced within the aspx. – Thorsten Hans Jan 12 '12 at 09:57
  • Nop, it doesn´t work without 'MySolutionCentralAdminPage.aspx.cs' – Kibil Nâla Jan 12 '12 at 10:04
  • ok, the you should have a look at the assemblies deployed to the SharePoint Server. I would use .NET Reflector to disassemble the entire assembly and within the installed assembly you should be able to find the missing class. you could easily reuse the disassembled code. – Thorsten Hans Jan 12 '12 at 10:06
  • 1
    Thanks for the help! That seems to be really useful and now I know a new tool :) – Kibil Nâla Jan 12 '12 at 10:37