another technical blog...technically

Wednesday, March 20, 2013

Embarrassing stories: Visual Studio toolbox shows only General and HTML Tabs

My boss said "Varro, don't dare to use layouts folder or the custom form will be available to the farm, that's not good", so yesterday i tried to create an application page and deploy it using a module. So, when you create an application page in a SharePoint project, Visual Studio automatically  creates the layouts mapped folder and puts the .aspx file there.
After that you can easily drag and drop the aspx file in the module and continue to work the file under the module itself... theorically.
When i dragged the page into the module, only HTML and General tabs were available on the ToolBox panel, and the ASP and SharePoint elements inserted in the page were marked as unexisting in the code behind.
The problem
I started looking around for a possible solution on the web (moreover i was working on a customer VM used by other people, so don't know what happened on this VM) and tried almost everything.
After a hour i clicked on View Markup and... magically the problem solved. I tested the whole process on a new solution on my local machine and i haven't met the same problem.
The solution
The proof
Morality is: if you have this issue, before risking to waste time trying everything, try this "trick".
written in: Milano, Italia

0 commenti:

Post a Comment

Because of a lot of SPAM about courses, I need to moderate all comments here.
I ensure you that I will answer whenever possible (if you are not a spammer).

Me, myself and I

My Photo
I'm just another IT guy sharing his knowledge with all of you out there.
Wanna know more?