I can't see ASP.NET Web Page Administration - webmatrix

I was following Scott Hanselman on Mix11 building the FrontEnd using WebMatrix. http://live.visitmix.com/Keynotes
One of the first things he does is use the ASP.NET Web Page Administration link. When I run WebMatrix that option is not available. I have downloaded the latest version of Web Matrix and the VS tools. I run Web Matrix as an Administrator but still the option is not visible.
What do I need to do to see the Administration link?

In order for the Administration page to be accessed, you need at least one ASP.NET Web Pages file in your site - that is, at least one *.cshtml or *.vbhtml file in the root directory of the site.
This is because WebMatrix detects these files and only includes the required ASP.NET Web Pages libraries if these files are found.
After you add one of these files, try browsing to your http://localhost:/_Admin again.

In webmatrix 3, I don't see an Administrator links as well, but there is a NuGet package manager on the menu panel and you open it and you can download all the packages you want from it. If you don't have the "NuGet" package manager, Click the "Extensions" on the menu panel and download the "NuGet" package manager first.

Related

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.

Visual Studio keeps requesting missing web components

When I open a particular mvc 3 website project in VS 2010 I get the following message:
The Web Project "X" requires missing web components to run with Visual Studio. Would you like to download and install them using the Web Platform Installer now?
ASP.NET Web pages with Razor syntax.
When I click yes
The web platform installer shows with the message that "0" items need to be installed.
My other mvc 3 projects do not show this behavior
Not a major inconvenience, but still...
thoughts any one?
I got the same error after reinstalling my computer.
I came to this conclusion, VS needs IISExpress to load my additional project. The addition projects has a webservice and it can run locally. Even if my endpoints points to a local address it still needs the IISExpress (standard IIS 7.5 does not respond the endpoint request) to open from VS (im running VS2010).
So after installing IISExpress i could reload my project in VS.
C.,
That shouldn't happen, and it would be interesting to figure out why. In the meantime, you should be able to turn this off by unchecking the "Package Restore" checkbox in Visual Studio's Options dialog. (Select "Package Manager" in the tree view to find it.)
If it's happening only for specific projects, you can solve this more surgically by removing the packages.config file for the affected project. In fact, if you want to do root cause analysis, you should look into why that file exists and how it got there.
HTH,
Clay

TFS 2010 Team Project Portal Setting

I am not seeing the out of the box workbooks that come with MSF for Agile Software Development v5.0 in my Team Project. Turns out, TFS stores the Excel files for the template in the SharePoint portal that needs to be specified in the project settings.
From the Project Settings, There seems to be two different ways in which you can specify the Porject Portal location:
My Question:
I am not sure why "Use this SharePoint Site" is listed as (Not configured)? Does the Team Foundation Server needs to have a local SharePoint instal for this option to be enabled? Or is it some kind of permission issue?
Also, when I enter the SharePoint site collection root URL in the "Use a Web site" textbox, there is not much change in the situation. How is one supposed to use this option?
Does this mean that in order to use the workbook one needs to install SharePoint in TFS?
In order to use the workbook you do not need sharepoint. What you need to do is go to the Team Project Collection Node and right click and choose Process Template Manager, Download the process template on to your local computer. Go to the folder and you will see the excel workbook, you will be able to use the workbook.
MSDN article listing the steps to download the process template http://msdn.microsoft.com/en-us/library/ms181511.aspx
To Answer your other questions,
Q. I am not sure why "Use this SharePoint Site" is listed as (Not configured)? Does the Team Foundation Server needs to have a local SharePoint instal for this option to be enabled? Or is it some kind of permission issue?
You have an option to set up the sharepoint site when you create a new team project, however you have an option of not creating a new team site with each team project and can skip this step and come back later to the team project to associate an existing team site to the team project.
Q. Also, when I enter the SharePoint site collection root URL in the "Use a Web site" textbox, there is not much change in the situation. How is one supposed to use this option?
You do not need the team site for this, unless you are planning to publish the excel using excel services to the sharepoint site.
Q. Does this mean that in order to use the workbook one needs to install SharePoint in TFS?
No.
HTH
Cheers,
Tarun

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.

Web Application within a Web Site in Visual Studio?

Visual Studio allows you to make "Web Sites" and "Web Applications", but, inside a project, can you have one within the other?
Say I have my website "www.mysite.com" and I have an application called "BudgetCalculator". One the production server, this is supposed to be located at:
www.mysite.com/BudgetCalculator
And the BudgetCalculator app contains links back to other parts of the website, like "/page1" and "/page2".
However in Visual Studio, when they're listed as two different projects, they're on the same level. When I fire up the debugger for the BudgetCalculator app, those links aren't going to point back to the main website, like they should.
Is there a way around this?
One solution would be to stop using the built-in .NET Web Server.
Use IIS, create one site, and make your Web App a Virtual Directory inside of the Web Site.
A project cannot host/contain another project in Visual Studio.
You can however create a project that sites in the directory of another higher level project when you create it, however they may not be directly linked, so you couldn't debug them both at the same time.

Resources