?
Solved

Sandboxed Visual webpart in SharePoint 2010 not deploying

Posted on 2011-04-29
2
Medium Priority
?
1,127 Views
Last Modified: 2012-05-11
Hi,

I am trying to create a sandboxed Visual w.p. in sharepoint 2010.I unable to deploy it.
I followed these steps...
 Created Empty sharepoint Project-->Add New item->Visual w.p.-->write some code->Build (build...ok,successful)->deploy->"Error"->Please help me...

Error 1 The deployment type "TemplateFile" of file "emptySandboxedSoln1UserControl.ascx" in Project Item "emptySandboxedSoln1" is not compatible with a Feature in a Sandboxed Solution. c:\users\administrator\documents\visual studio 2010\Projects\emptySandboxedSoln1\emptySandboxedSoln1\Features\Feature1\Feature1.feature emptySandboxedSoln1

my sharepoint 2010 sandboxed Scervice is already started .
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2nd Case--> with normal sandboxed w.p.:

if i used normal sandboxed w.p. instead of visual sandboxed w.p.->then it is building and getting deployed also.

But on page it showing this error:

Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.

Need some help..Thanks in advance

0
Comment
Question by:smskareem
2 Comments
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 500 total points
ID: 35499547
from what I know the Visual webparts are user control based ascx file and that can not be sandboxed, because they are file system level and required more access.

Read more here
http://www.wictorwilen.se/Post/Visual-Web-Parts-in-SharePoint-2010-cannot-be-Sandboxed.aspx

Hope that helps.

Best of luck.
0
 

Author Closing Comment

by:smskareem
ID: 35786950
ok
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question