Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware, thus making it behave as expected.
1
vote
1answer
31 views
Adding new item to a list works in dev but not in prod
I have some code which simply gets a list, creates a new item with the appropriate fields, and adds the item to the list. The code worked perfect in the dev and UAT environments but since we deployed ...
0
votes
2answers
40 views
Sharepoint 2013 App won't retract when debugging stopped
I'm trying out simple SP 2013 SharePoint hosted apps against an Office 365 2013 dev site. When I start debugging the apps install fine; when I stop debugging no retraction occurs, I'm having to ...
0
votes
1answer
97 views
EventReceivers not firing at all (SharePoint 2010)
I wrote some code to do some things before and after an item is added to some lists. The solution is sandboxed.
I have checked and confirmed, through power shell, that the event receivers are bound ...
0
votes
2answers
79 views
How can I view Developer Dashboard from a custom master page or PowerShell?
I need to view Developer Dashboard data to investigate a bottleneck on a SharePoint deployment, but the master page has been customized and the Developer Dashboard is not available (after enabling it ...
0
votes
1answer
28 views
SharePoint 2010 Development Setup
Is it possible to develop in Visual Studio on the host machine while F5 deploying/debugging a SharePoint WSP to a VM with SharePoint 2010 installed? I have had significant issues with Visual Studio, ...
2
votes
1answer
84 views
How to debug sharepoint webservice?
I've followed Walkthrough: Creating a Custom ASP.NET Web Service and everything works fine.
I just want to know how to enable debugging for this web service over network. Could you help me?
0
votes
0answers
249 views
How Sharepoint pages life cycle works?
I built a HttpModule for sharepoint. But when I begin to debug the page request, I notice that the debugging has an strange cycle:
1 - context_PreRequestHandlerExecute()
2- page_PreInit()
3 - ...
0
votes
0answers
56 views
How can Solve problems while debugging sharepoint web application?
Everytime I try to run my sharepoint application in debug mode, I get the error bellow:
0
votes
1answer
34 views
Read init params of workflow after it started
There's a sharepoint 2010 site of which I'm administrator. This site has a library with many items and workflows.
One of the workflows is behaving wrong. I would like to look at the initialization ...
0
votes
0answers
84 views
Sharepoint Solution showing old server url while debugging in visual studio 2010
I have a SharePoint solution which I developed in a server named HostA, and was deployed in the same server at the url, http://HostA:2100/ASD
Later I moved the entire solution to a new server HostB, ...
1
vote
2answers
133 views
How can I stop a broken webpart from killing the whole page?
The title says it all, when there's a error in my webpart I can't load the whole page.
I'd like just to don't display the webpart and still see the rest of the page and not just get the error page.
...
0
votes
2answers
213 views
ASP.NET/C# equivalent to js alert() or php echo
I am trying to debug a method and need to trace how a variable is being changed to see where I went wrong. What in ASP.NET/C# could I use to do this?
For example if it was php I could stick an echo ...
1
vote
2answers
80 views
How to debug object model code?
Just finished coding an InfoPath form (C#, InfoPath 2010) on my local PC. Also, I copied the Microsoft.SharePoint.dll from the server to my local Windows 7 Enterprise environment with its respective ...
0
votes
1answer
111 views
Visual Studio 2010 opens “Create New Site” page in browser when I run “Start Debugging” instead of the site I am trying to debug
I am an Office 365 user and fairly new to Sharepoint. I am trying to write a sandboxed solution for SharePoint online. To do this, I have setup a local developer environment and am currently trying ...
0
votes
2answers
909 views
Can't debug/deploy solution from VS 2010
I have encountered strange problem on my dev VM.
Background:
Having my VM open (VM Player), I put host computer into sleep mode, then I woke it and put into sleep mode for second time. After waking ...
0
votes
3answers
901 views
Debugging sandboxed ItemUpdated event receiver - breakpoints not hit
I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
1
vote
1answer
53 views
File transformations before packaging WSP
I need to modify the content of some files in my SP 2010 project before packaging, something like Web.Config transformations.
I need a file to have different content based on the environment: Debug, ...
0
votes
0answers
125 views
Custom default view of a list is redirected to phantom page - how to remedy it now and avoid this in future?
In a list (named "Delivery") I created a new view Forms.aspx (by copying defalt View AllItems.aspx), made it default, heavily modified but after running it (from SPD 2012 by F12 or directly from a ...
1
vote
1answer
323 views
Sharepoint 2010 alternate access mappings and HttpModule problem
I have encountered an interesting problem recently.
I have a HttpModule, which i have added in
modules runAllManagedModulesForAllRequests="true" node , by hand.
The main site collection is at http: ...
2
votes
1answer
1k views
Is it possible to get detailed error messages in SharePoint Online?
When doing any sort of development/testing work against SharePoint Online, there are bound to be some errors. Some errors manifest in the form of exceptions, which can be logged to a special-purpose ...
0
votes
1answer
278 views
Debugging a Timer Job
I was not able to do something a little more elaborate with my timer job so I decided to check if something basic works. So I tried the code below - but it keeps giving me this error - why?
UPDATE
...
1
vote
1answer
552 views
Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
I am currently developing a solution in C# with a feature that uses the SharePoint API to create a number of sites, lists, list views etc. The final result is going to be used on SharePoint Online. ...
1
vote
1answer
189 views
Cannot debug sharepoint solution
I have really strange problems with debuging sharepoint solution.
Sometimes i cannot debug sharepoint webparts. Now i have such situation and nothing helps. I tried to restart computer\recycle ...
0
votes
1answer
265 views
Changing Deployment Url for Webpart in VS 2008
I am trying to debug a webpart in SharePoint 2007 using Visual Studio 2008. When I click debug, it deploys the solution to http://localhost:8080. The url I want to deploy to is on a different port. ...
1
vote
1answer
3k views
Event Receiver Not Firing
I have an event receiver using the VS2010 template for SharePoint 2010 and I have coded it the same way I have done many times. This time, though, it is not firing at all. It is attached to the list ...
0
votes
2answers
231 views
Debugging Problem with Sharepoint Foundation 2010
I've installed Sharepoint 2010 Foundation on my WS2008R2 copy...
Whenever i lanch from Visual Studio some debug, the process couldn't attach to IIS and so every break point is skipped..
To male ...
13
votes
5answers
1k views
Are there any tweaks, tips to make debugging SharePoint 2010 faster?
I am using Visual Studio 2010 Ultimate and SharePoint 2010. The debugging process itself is okay but the startup takes really long. Are there any options or hidden-hints to make this faster?
Edit:
...
0
votes
0answers
566 views
Unable to debug in an event receiver sharepoint 2010
When i debug in the event reciever(item adding) as soon as it reached the if condition
i get the following error
unable to automatically step into the server.The remote procedure could not be ...
0
votes
1answer
207 views
Expiration Policy Job - debugging
I am trying to find out what error is preventing our Expiration Policy timer job from completing.
It is scheduled daily about 10PM. Sometimes when I come in in the morning it is Aborted, sometimes ...
15
votes
2answers
916 views
Can't start debugging after install VS11
After I installed VS11 Dev Preview, VS2010 cannot start debugging the Sharepoint 2010 server (developer install on Windows 7). I get a nice error dialog stating:
Unable to start debugging on the ...
3
votes
2answers
159 views
Is it possible to debug the DLL of a built in _layouts application page?
I'm getting a vague error (as below) on the built-in _layouts/ChangeFieldOrder.aspx page which uses the DLL "Microsoft.SharePoint.ApplicationPages".
"Object reference not set to an instance of an ...
1
vote
2answers
383 views
How do I debug a code-behind page in the Central Administration site
I built a custom timer job and created a configuration page (.aspx) for it.
Going through the Central Administration site, I can get the to configuration page. When I enter values and click "OK" to ...
1
vote
2answers
2k views
The breakpoint will not currently be hit - debuging feature receiver
I need to debug my feature receiver, so I set up few breakpoints, but when I hit F5 in VS2010, they are all missed, and it says that "The breakpoint will not currently be hit. No symbols have been ...
0
votes
1answer
473 views
How to load a sharePoint page in “safe mode”?
I seem to remember that there was a way to add something to the query string for a SharePoint page that would basically load the page in a "safe mode". In this mode you could delete or edit webparts. ...
1
vote
2answers
483 views
SharePoint very slow at Logging Correlation Data step in page trace
wondering if I configured something wrong.
I just installed SharePoint on my laptop and it's running very slowly. It seems to be stuck at the Logging Correlation Data step. What exactly does this ...
0
votes
1answer
67 views
call method in webpart
I'm trying to debug the code below. For some reason the GetUserProperties Method isn't called during debug. Can someone tell me how i'm able to call it? I wan't to display the user-properties in an ...
0
votes
0answers
41 views
debugging but why it going to another solution?
I made a copy of a solution (work1) and called it work2. Now whenever I try to debug work1 the debugging is going to work2's dll. Why is that? and How do I resolve this issue?
3
votes
2answers
1k views
Debugging SPFeatureReceiver
I have built an SPFeatureReceiver and am trying to debug it by attaching to the w3wp.exe process. No matter what I do no breakpoints are ever hit. Here are my steps
Build and Package the solution
...
4
votes
3answers
4k views
How to get a web.config file in a sharepoint 2010 publishing site?
I am working on a sharepoint 2010 project and I noticed in the soultion their is no web.config.
I asked one of my fellow co-workers and he mentioned something about we don't have access to to it as ...
2
votes
3answers
201 views
View callstack of unknown error
I've set
<system.web>
<customErrors mode="Off" />
</system.web>
in my web.config file, but i'm still getting 'unknown error' instead of the stacktrace on my pages. How can I ...
0
votes
2answers
454 views
debug javascript [closed]
I have a javascript thats breaking. Now Is there a way i can call the function from content editor web part and debug to see where the hick up is?
1
vote
1answer
487 views
Does anyone have ELMAH working with SharePoint?
Does anyone have ELMAH working with SharePoint 2010? I have the assembly in the bin folder and have what I believe to be the correct entries in the web.config file. I can run the test at ...
1
vote
1answer
167 views
Debugger stops during debug session
I have a SharePoint 2010 site deployed using Visual Studio 2010. An application page on the site contains an ascx control that includes a FileUpload control. When I am attached to the W3WP process and ...
0
votes
2answers
329 views
Can't load break points for a feature reciever - what's wrong?
I've set a break point in my feature receiver, but symbols never load and break points never met, what can I do to resolve this?
0
votes
1answer
150 views
Can a sharepoint security patch automatically upgrade your sharepoint installation.
Can a sharepoint security patch automatically upgrade your sharepoint installation.
Recently my company experienced an outage after installing a bunch of Microsoft Security patches and automatic ...
0
votes
2answers
1k views
How to figure out why I'm getting “HttpCompileException was unhandled by user code”?
I am brand new to SharePoint, SharePoint development, and MS development.
My SharePoint dev environment consists of Windows 2008, SharePoint 2010, and Visual Studio 2010.
I created a very simple ...
2
votes
4answers
1k views
Debugging Feature Activation Trouble Attaching to W3WP.exe
I am using vs.net 2010 and having trouble debugging a feature activation. I have tried rebooting, reattaching etc. I have attached to w3wp processes (and vshost if it is available) and yet the debug ...
1
vote
3answers
218 views
Debug Web Parts
I am studing this topic and I would like somebody to point me in the right direction for studying this.
Debug Web Parts
This objective may include but is not limited to: ULS log, and event log, ...
2
votes
0answers
1k views
Debugging XSLT in Visual Studio 2010 [closed]
I'm trying to debug XSLT for CQWP.
I followed this guide.
So I'm able to retrieve the XML, and link the files temporarily together using xsl:import.
But then Visual Studio can't find the schema for
...
1
vote
1answer
2k views
Deploy event receiver to sandboxed solution
I am working with Sharepoint Foundation 2010 on both my development and production machines. My production site is hosted. I am trying to deploy a sandboxed event receiver to the production site ...
