No Access message displayed in red after uploading the webpart - visual-studio-2010

I need to make changes to the control templates in the webpart. So, I took the webpart code from prod to my dev machine and built a test site.
I have uploaded the webpart on to the test site and "No Access" is displayed in the webpart zone. Do I need to follow any special steps to upload a webpart with user controls or control templates.

Related

how to publish a web application with all configuration of application?

i am working on an web application which is used to send data to devices which is connected in a network(LAN). software is able to send data when it is published through visual studio 2010 and when i am publishing on IIS 6 this software is not able to send data on devices.
(From MSDN)
To publish a Web application project
In the Build menu, click Publish ProjectName.
The Publish Web dialog box is displayed.
Click the ellipsis button (…) to browse to the location that you
want to publish the Web application project to.
Select the Replace matching files with local copies check box or the Delete all existing files prior to publish check box.
Select how you want to copy the Web application project files to the new location by using Only files needed to run this application, All project files, or All files in the source project folder.
You can include files from the App_Data folder by selecting the corresponding check box.
Click OK to publish the Web application project.
In the task bar, Publish succeeded is displayed when publishing has finished.
Make any configuration changes that are required for the Web application at the target location.
For more information, see How to: Configure Published Web Site Projects.
Hope it helps

SharePoint Visual Studio solution not visible in solution gallery

I am trying to locate my solution (WSP) in the solution gallery of SharePoint 2013
I am site collection administrator
in Visual Studio I created a solution containing lots of stuff, all works ok, shows up etc..
(deployed via VS and works, site url = site collection root url)
However... I look in the solution gallery of SP2013 (site collection) and dont see the solution, its
actually... empty,
so.. since it has been deployed, activated and works... where is it?
Farm solutions are displayed in the Central admin site. Even though in Visual Studio you target your WSP to be deployed in a certain web-site, all WSP's(solutions) available in the farm level are displayed at Central Admin. In this way, if you want to deploy the same solution to a different web application you could do it from central admin. It actually makes the work easy.
So, It's not displayed in the web application which you deployed to. Please check on the central admin site.
Go to central admin > System settings > Under "Farm Management" you get "Manage Farm Solutions". All the farm solutions will be listed down there.

Sharepoint 2010 Create and Add Webpart Automatically In Sharepoint Site When Deploy WSP

I'm using SharePoint 2010 and I have developed webparts at visual studio 2010. I'm already using WSP to deploy my web application into server, but still should create and add the webpart manually through SharePoint site. Is there any way that we can deploy the application and automatically create and add all webparts into the site?
Generally web parts are added to pages using features. Basically you create one site collection feature to deploy web part files to web part gallery and web scope feature which adds this web parts to pages (for example default site page).

Sharepoint 2010 build solution with UI then export as wsp template, to deploy in new environment

I build up a solution using UI in Sharepoint 2010. Solution consisted in creating a new site, as subsite using Team Site Template. Then I added the following artifacts:
Several Custom Columns
2 Custom content types using above columns
Document Library using my content types above
Several Custom Views created for above Document Library
1 Reuseable Workflow (this was developed with sharepoint designer 2010)
3 List Worklfow, using 'Three-state-workflow' template
Customisation of site navigation (quick launch)
Customisation of site home page
Some security groups
Added users to groups
Then I exported the site as wsp template, downloaded it to local drive.
I imported it in visual studio 2010, than changed the deployement method to 'Farm Solution' (not Sandboxed Solution) and packaged it.
I have to deploy to new sharepoint environment (new server), but till now there are issues in feature activation (total 5 features). the feature wich contains module elements is having issue.
Any idea how to solve this issue ?
Any idea how to streamline this process in order to avoid deployment issues ?

Sharepoint 2010: Web parts inside web templates

I created a site in Sharepoint 2010 and exported it using "Save as template". That created a .wsp which I imported into Visual Studio 2010 and created a solution. That solution contains a web template (which is just an onet.xml file) among all the site pages and assets. So far, so good.
Now, I developed some web parts and added them to the project. Then I compiled and packaged everything, created a site in Sharepoint by selecting "Select template later", uploaded the .wsp into the site, and activated it. At that point all the webparts are created, and also the web template. So I go to the home page, and create the site with that template. But when the site is create from the template, all the web parts are deleted and replaced by Sharepoint basic web parts (Content editor, page viewer, ...).
Is there a way to include the web parts in the web template? I'm sure it's possible editing the onet.xml, but I'm not sure how.
Thanks in advance
Have you tried manually setting up your web part page after the deployment? Then you can export the site as a template and then look at the resulting onet.xml file. That should give you some clues about the changes you need to make.

Resources