Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Wednesday, May 7, 2014

The breapoint will not currently be hit. No symbols have been loaded for this document.

Hi Folks,

One day in the morning I keep getting this error: The breakpoint will not currently be hit. No symbols have been loaded for this document.

I asked for help on a Microsoft College and He simple did "nothing". After 30 minutes it started to work and the only different thing he done was this:
Solution:

  1. Go to Menu build -> Configuration Manager
  2. In the Active Solution Configuration, select Release (or Debug if you had Release). Close
  3. Do a Clean Solution then a Build Solution
  4. Switch back to to Debug (or Release if you had Debug).
  5. Now if you deploy the error will go away.

Hope it helps for you folks

Wednesday, March 12, 2014

The breakpoint will not currently be hit. No symbols have been loaded for this document

What i have done to resolve the issue:

  • I selected to start the right project - Source: stackoverflow
  • Attached the specific process - Someone's Blog
  • tested IE 8 and 9 - Someone's Blog

None of these worked.


Solution: I tested switching from debug mode, to release...deploy
Then back to debug ... deploy and unexpected breakpoints started to work!!

Have a happy day

Sunday, November 3, 2013

Error occurred in deployment step 'Activate Features'

On the Quality Enrivonment i created a new Project in Visual Studio and when deploying this message appear:

"Error occurred in deployment step 'Activate Features'"

Solution is to deploy it manually for the first time:
  1. Add the solution to your Farm Add-SPSolution -LiteralPath
  2. Then Install Solution Install-SPSolution -Identity -WebApplication
After that you can deploy automatically using Visual Studio. Enjoy

Wednesday, December 28, 2011

Error Message Could not load the Web.config configuration file. Check the file for any malformed XML elements and try again. The following error occurred: The given key was not present in the dictionary.

Resolution:
To resolve this problem, make sure that the Site URL property value of the SharePoint project in Visual Studio matches the URL assigned to the Default Zone for the alternate access mappings of the web application. Using another zone, such as Intranet, for the URL will not resolve the error. The project’s Site URL and the URL in the Default Zone must be the same. To access alternate access mappings, click Application Management in the SharePoint 2010 Central Administration utility, then click the Configure alternate access mappings link under Web Applications

More information Create zones for Web applications.

Monday, August 1, 2011

Como eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto

Problema: Quando a queremos eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto, não aparece o botão.

Resolução: Apenas é possível mostrar o botão eliminar com execução de código.

PowerShell:

$web = Get-SPWeb http://server
$list = $web.Lists["Documentos"]
$field = $list.Fields["Page Image"] ou
$field = $list.Fields["Rollup image"] ou
$field = $list.Fields["Contact image"]
$field.AllowDeletion = “true”
$field.Update()

Ou pelo Visual Studio:

using
(SPSite site = new SPSite("http://server"))
{

using(SPWeb web = site.OpenWeb())

{

SPList list = web.Lists.TryGetList("Documentos");

SPField field = list.Fields["Page Image"];

SPField field2 = list.Fields["Rollup image"];

SPField field3 = list.Fields["Contact image"];

field.AllowDeletion = true;

field.Update();

}
}


Agora o botão eliminar já aparece nas opções da coluna ;)

Saturday, July 16, 2011

DefaultView.ViewFields not working

Comando DefaultView.ViewFields não funciona se usado dessa forma.
Exemplos:
list.DefaultView.ViewFields.Delete("something"); or
list.DefaultView.ViewFields.Add("something");

É necessário a criação de uma variável para o DefaultView!!!

SPView view = list.DefaultView;
view.ViewFields.Delete("something");
view.Update();

;)

Tuesday, March 29, 2011

<nativehr>hex2Char error: Code point out of range: 80070002</nativehr><nativestack></nativestack>:null

Erro significa o mesmo que : "File not found, verify if the URL is right"

ATENÇÃO: o formato deve ser: "/SubSite/Folder/file.pdf" ou "/SubSite/file.pdf"

Como getFileByURL, getSPItemByURL, getItemByURL

Function is Web.GetListItem(AbsoluteURL);


AbsoluteURL = "/SubSite/Folder/file.pdf";

Thursday, May 6, 2010

VSeWSS Service Logging Error: Access to the path 'Microsoft\VSeWSS 1.3' is denied no deploy

Na criação do meu primeiro projecto em VS 2007 com VSeWSS 1.3 e as extensions para SharePoint, deparei-me com o seguinte erro quando fiz deploy:

Microsoft.SharePoint.Tools.Utilities.VSeWSSServiceException
VSeWSS Service Error: Assembly C:\Users\Administrator\Documents\Visual Studio 2007\Projects\GustavosSharePointSandbox\WebPartVSeWSS13\bin\Debug\WebPartVSeWSS13.dll not found. This may occur because the VSeWSS WCF Service does not have local administrator permissions. Please review the release notes.

VSeWSS Service Logging Error: Access to the path 'Microsoft\VSeWSS 1.3' is denied.

Logging failed attempting to write to Microsoft\VSeWSS 1.3\VSeWSS1.3 service.log. This may occur because the VSeWSS WCF Service does not have local administrator permissions

Isso acontece quando o Utilizador Network Services não tem permissão de Administrador.


Solução: Adicionar o User Network Services ao grupo Administrators.

Não esquecer que é necessário terminar sessão ou reiniciar para funcionar.

Wednesday, May 5, 2010

Could not connect to http://127.0.0.1:1378/SPService.svc. TCP error code 10061

Erro no Visual Studio: Could not connect to http://127.0.0.1:1378/SPService.svc. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:1378

Este erro é causado quando o sistema não possui o VSeWSS, ou o mesmo está corrompido.


Solução:
Instalação do VSeWSS ou reparação do mesmo.

Fica aqui o Url para Download: VSeWSS 1.3
scroll down para veres os links