开发者

Problem debugging web part on SharePoint 2010 beta and Visual Studio 2010 beta

I have created a "Hello World" web part. When I pressed F5 in Visual Studio 2010, I got the following error. I have already got Microsoft SharePoint Foundation User Code Service started. Can anyone shine some light on this?

I do not see Microsoft SharePoint Sandboxed code service in my Central admin nor after running th开发者_开发百科e powershell command "Get-SPServiceInstance | format-table TypeName, Id".Is it possible I have overlooked something when I install SharePoint 2010 beta?How Can I install the service and start the service?

---------------------------
Microsoft Visual Studio
---------------------------
Unable to attach. Process 'SPUCWORKERPROCESS.exe' is not running on 'WIN-MP9OQOTCKB2'.

Do you want to continue anyway?
---------------------------
Yes   No   
---------------------------


Are you just trying to debug your web part? If so, can't you just attach the debugger to the w3wp.exe process and set a breakpoint in your code?

If you aren't trying to debug it, what exactly are you looking to do? If you want to use your web part, deploy it from VS and then go to the SP site and add your web part.

EDIT After re-reading this, it appears you may be trying to deploy a Visual Web Part as a sandboxed solution. You cannot do this. See http://msdn.microsoft.com/en-us/magazine/ee335711.aspx. You can do 1 of 2 things, change your Visual Web Part to just a Web Part, or change your solution to not be deployed as a sandboxed solution. You can do this by setting the project property (SandboxedSolution) to false.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜