Sharepoint 2010 - Site Template doesn't show in new Web Collection dialog - visual-studio-2010

I am developing new SiteTemplate project in VS 2010. I didn't change anything, and I clicked Deploy to check if it is working on my SP server. And it doesn't ...
Why isn't it working? Plz, help.
I'm developing on Client system (Windows 7) - i have installed autonomous instance of Sharepoint. I haven't changed anything in SP central admin, i also checked folders in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates and files deployed successfully...
Any suggestions for solving problem will be really appreciated.

There are three properties that control a site template's visibility:
IsHidden that controls the visibility of the site template in the UI;
IsRootWebOnly that determines if the site template is available for site collection root web site only;
IsSubWebOnly that determines if the web template is available for sub-web sites only.
Mostly likely the problem is due to improper setting of one of these properties.

Related

Sitecore Cannot open database "marktwoSitecore_Web" requested by the login. The login failed. Login failed for user 'blah''

I am currently trying to set-up a Sitecore project on my PC. When I go to view the project on my browser I get the following error:
Sitecore Cannot open database "marktwoSitecore_Web" requested by the login. The login failed. Login failed for user 'blah''.
These are the steps that I have carried out so far:
1) Firstly there are three types of sitecore installations to do:
- Complete
- Database only
- Client only
I have gone with the Client only installation.
2) The Sitecore "Client-only" installation instance was made inside the inetpub/ wwwroot folder.
3) I then made a visual studio project
4) I made a folder called "Libraries", which is located in the root of my visual studio project solution. I copied over all the relevant Sitecore.dll's from the wwwroot project to my visual-studio project into the Libraries folder. I also replaced the Default web.config file in my Visual studio project with Sitecore's version of Web.config. And then I added Sitecore references to my Visual Studio project.
6) With all of the initial configuration done; I set-up a publish profile so that I could publish my C# code to inetpub/wwwroot project. I did step four so that my publish would not overwrite sitecore dlls.
5) I changed the Connection strings in App_Config/ConnectionStrings.config to point to the Web, core and master sitecore databases. That were created during the Sitecore installation.
Those were the steps I did prior to getting the error about invalid login credentials. I am not sure why I am getting this error; since I went into Microsoft SQL server Management Studio and I gave the user "blah" admin rights to all of the datbases: Master, web and core.
Any support and guidance would be greatly appreciated; as I am unsure of how to address this problem
This error is happening because the web database referenced in your Website/App_Config/ConnectionStrings.config is either not there or the permissions are not set properly on that database. The easiest way to troubleshoot is to load SQL Server Management Studio specifying the host, username and password that are in your connection strings and see if it connects. It sounds like you are probably logging in with your Windows user when you are making the changes listed above.
You could try making the blah user a "db_owner" to see if that helps or your local instance may not be in "mixed authentication mode" which allows for named users and windows users. You can change that in the settings, but you need to restart the service for it to take effect.

How do I modify Adxstudio online's aspx file?

How do I modify Adxstudio online's aspx file?
For example, Case Page Template is linked to an aspx file at ~/Areas/HelpDesk/Pages/Case.aspx. How do I modify that Case.aspx file? I've looked around in both CRM and Adxstudio portal site but still cannot find any aspx file.
I'm using Adxstudio online trial, version 7 and CRM Online 2016.
If you are working in an online trial of Adxstudio I suspect you won't have access to the server side code files.
If you want to edit the server side code you should download the SDK, that has all the aspx files in. You can then self host the portal, whilst having full access to the aspx files in something like Visual Studio.
Is this Adxstudio Cloud Service?
https://www.adxstudio.com/adxstudio-portals/features/cloud-hosted-saas/
If so, the answer is you cannot. For the cloud offering, you get what they give you out of the box.
If you are using the on-premise or 'standard' version - you download the SDK which contains a sample/starter project. Open that, configure the connection string and then you can edit the ASPXs (Page Templates) in the Pages folder.

SharePoint components location

I'm struggling to find location of SharePoint components installed on server.
In my case I'm interested in SharePoint List component for MS Dynamics CRM. The URL clearly says it should be following file and folder .../crmgrid/crmgridpage.aspx..., but on server there is no such items.
Where SharePoint components is hidden?
I would appreciate any clue! Thank you in advance!
Static SharePoint pages are stored in the Layouts folder in the SharePoint hive, typically Program Files\Common files\Microsoft Shared\Web Server Extensions\14 for SharePoint 2010.
Any customized pages are not stored on the web server, but rather in the underlying SQL content databases. If the web pages are represented as files contained within document libraries in SharePoint, you can access them via the UNC path to the libraries (such as \\site.com\site\subsite\library\myfile.aspx).
They can also be accessed via SharePoint's REST API and SharePoint's more traditional web services.
Note: you are not permitted to query the underlying SharePoint database directly or your environment will cease to be supported (and the underlying database has a really bizarre schema anyway).

publish MVC 3 app to localhost IIS 7

I have searched a lot and I have tried but couldn't published asp.net mvc 3 application on localhost. I have never tried before. I have currently adminpanel application running on development server of the visual studio. In my machine, following are installed:
IIS 7
windows 7
SQL server 2008
MVC 3
asp.net 4
In visual studio, I publish application using File System publish method and target path to C:\inetpub\wwwroot\adminpanel. And Following Directory and files were copied.
Directory
App_Data
bin
Content
Scripts
Views
Visual Studio 2010
Files
Global.asa
Packages.xml
Web.xml
I don't know but I think Some directory's are missing like the controllers, Helpers, Models, Sources which I have seen in Visual Studio Solution Explorer. When I browse to http://localhost/adminpanel, it shows all directory and files list in browser.
How to publish the application to IIS and use SQL server of local machine so that I can browse to particular controller like http://localhost/User/UserManager which I can do in the dedicated server of the visual studio.
I don't know but I think Some directory are missing like controllers,
Helpers, Models, Source which I have seen in Visual Studio Solution
Explorer.
That's perfectly normal. ASP.NET MVC 3 uses an ASP.NET application type (in contrast to ASP.NET WebSite) meaning that it is precompiled and all the source code is removed when deploying. Only the Views, Static resources such as CSS, Images and Scripts as well as the bin folder containing the compiled assemblies is deployed.
Basically, I think your Site has not been defined as a application in the IIS. You can do it from IIS manager.
But, instead, when you publish the the application, select File System but instead of browsing to the mentioned Folder, in Target Location field click the button next to the text box and select Local IIS on the left side. Now you can create a Application Folder and directly publish into it.

Can't connect to the SharePoint site:

I started VS with admin rights, i'm currently in trouble setting up a SharePoint 2010 project.
Today, I installed VS2010 on our new SP 2010 server
But now I'm failing to create a SharePoint project in Visual Studio. The SharePoint Customization Wizard tells me following:
Cannont connect to the SharePoint site: http://myserver/blah. Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user as the necessary permissions to access the site.
As I'm 'quite' sure, that SharePoint is running on the locale system and I'm having no problems browsing SharePoint with my account, I'm wondering what is preventing me to create the project.
Somewhere else I've read that the user, which is running VS2010, needs db_owner rights to the config and admin tables of SP2010, which I've done, unfortunately this didn't affect anything.
Has anybody encountered this problem before? Thanks for any help!
The URL in the Configuration Wizard needs to be an available SharePoint site so it can deploy the project output. Try to navigate to this url in a browser or go to an existing SP site and use that url in the Customization Wizard.
Add the user account to SQL Server as sysadmin
See: Cannot connect to the Sharepoint Site from Visual Studio 2010
This issue can be fixed by doing the following :-
1.
Added myself as the administrator
2.
Added myself to SharePoint Farm Admin Group
3.
Provided DB Owner access to SharePoint Content DB
Add Visual studio process user to the db owners group for sharepoint databases

Resources