Identify the WorkerProcess W3WP while debugging ASP.NET application

Leave a comment


Sometimes we will debug an ASP.net webapplication by attaching a W3WP.exe process. While Attaching it will many w3wp.exe. To Know the particular w3wp.exe process for our webapplication we need to type a command in CMD.

1) Click Start

2) Run CMD

3) Goto folder by changing directory cd Windows > System32 > Inetsrv

4) Run appcmd list wp

then you will see all the list of processes

Error “Admin SVC must be running in order to create deployment timer job”

Leave a comment


Hi All,

While Deploying a WSP solution into a WebApplication in Powershell. You may face the issue or error as:

Admin SVC must be running in order to create deployment timer job”

To rectify it:

Just go to Enable the Services of SharePoint Administrator.

Go To Command Prompt and Type Services.msc. You will see a window contains all the list of services running.

Enable “SharePoint 2010 Administration” service.

Service name: SPAdminV4
Display Name: SharePoint 2010 Administration

Once you have Enabled or Started it that the command will run smoothly.

Change Account display name of sharepoint user

Leave a comment


We can use  powershell command to change sharepoint user display name.   Set-SPuser -identity “User name” -DisplayName “Display Name” -web Web url  

Eg: Set-SPuser -identity “i:0#.f|fwamembershipprovider|kdc1″ -DisplayName “kdc1″ -web http://xyz:117/

In case you get access denied while changing the display name, run powershell as administrator/Farm admin.

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Leave a comment


Hi All,

Dont get panic after seeing this huge error message in your SharePoint 2010 page.

Usually when you restore a Database to the database related to sharepoint application.

In my case when I restore a database to the old db of SharePoint site it occureed. To see the exact error we need to do little changes in the web.config of ” Security Token Service Application”.

Location of Security Token Service Application.

1) Open IIS.

2) Click Sites Folder

3) Click SharePoint Web Services (Small Globe Icon)

4) There at bottom you can see Security Token Service Application.

5) Right click and click Explore. There Open its web.config file and do the changes.

<!– Behavior List: –>
<behaviors>
<serviceBehaviors>
<behavior name=”SecurityTokenServiceBehavior”>
<!– The serviceMetadata behavior allows one to enable metadata (endpoints, bindings, services) publishing.
This configuration enables publishing of such data over HTTP GET.
This does not include metadata about the STS itself such as Claim Types, Keys and other elements to establish a trust.
–>

<serviceMetadata httpGetEnabled=”true” />

<serviceDebug httpHelpPageEnabled=”true” includeExceptionDetailInFaults=”true” />

<!– Default WCF throttling limits are too low –>

<serviceThrottling maxConcurrentCalls=”65536″ maxConcurrentSessions=”65536″ maxConcurrentInstances=”65536″ />

</behavior>

</serviceBehaviors>

</behaviors>

Add an assembly (.dll) to the GAC manually – .NET

Leave a comment


Situation: While Publishing ASP.NET files onto the remote server there will be no visual studio tools like gacutil.exe. So we can get doubt how can we add assemblies into gac folder (C:\windows\assembly\) without using gac. Here is the solution.

Solution:

1) Go to local Security Policy in windows 7.

Localsecuritypolicy

 

2) Goto Local Policies ——> Security Options—> User Account Control: Run All Administrators in Admin Approval Mode

 

UAC

UAC

 

 

3) By Default it will be Enabled . Disable it and Add the dlls into C:\windows\Assembly\

 

UAC Enable

UAC Enable

4) After adding again enable it and enjoy !!!

 

 

Sandboxed solution: Error occurred in deployment step ‘Activate Features’ – Office 365 SharePoint Online

Leave a comment


While building webparts for office 365 or sharepoint online you need to develop sandboxed webparts.

To develop and deploy sandbox webparts you need to do few things for successful output.

  1. Download and install “Visual Studio SharePoint power tools”(http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9)
  2. Activate the service “SharePoint 2010 User Code Host” in services. So that error will go.
  3. For more info see at: http://sp2010solutions.blogspot.in/2012/03/sandboxed-solution-error-occurred-in.html
    1. In Visual StudioàNew ProjectàEmpty SharePoint Project

    1. Add a New Item as “Visual Webpart(Sandbox)”

 

Access Denied – Read or Write Permissions for a folder in IIS

Leave a comment


Situation: One of my friend written an application where the image need to upload into a folder which is in IIS a virtual directory and also he wants to access that image.
But in the process when he is access the image in that folder he is getting an error like “Access Denied”.
Solution:
Since they deployed the asp.net application through IIS. We need to give that particular folder Read/Write Access for  IIS_IUSRS users group.

Older Entries

Follow

Get every new post delivered to your Inbox.

Join 210 other followers

%d bloggers like this: