Why can not I create a Sharepoint project without a local URL? - sharepoint-2010

I'm trying to create a EventReceiver project in Sharepoint 2010 Templates, but VS always ask me to pass a valid local URL of a Sharepoint Site. Without a Sharepoint Site the project is not created. Why?
Why if I want to create the project and use it direct in production without local tests?

This is a requirement of VS development for share point -- you need a local install of the sharepoint foundation server. It is a free download.
But if you question is more along the lines of "Why make this a requirement", I don't know ;). You can still have a sandbox server to deploy to.

Related

Recreate Sitecore site locally from an existing site

I am supposed to recreate a sitecore site locally on my machine to match the client site. The client sent me three directories: Sitecore Foundation, Sitecore feature, and the website project. Each directory has it's own VS solution file and all three of them are MVC projects. I am confused as to how to upload those to my Sitecore instance that I installed. The idea is to get it working on my local machine so I can edit the site and publish. Is there anything else that I need to ask the client to send me in order to set it up locally? Any help would be appreciated!!
In the easiest scenario you need code of the application and Sitecore items.
From what you wrote, you've got the code.
Now you need to install clean Sitecore instance (using exactly the same version as is used on the client site), compile your code and push the code to the Website folder of your Sitecore installation (e.g. using publish to folder option fro Visual Studio).
You also need Sitecore items. There are multiple options to install them in your local environment, e.g.:
get the backup of Sitecore databases from your client and restore them in your local environment
get Sitecore content packages with all the necessary items and install them in your local databases overriding items from clean Sitecore install
get serialized items (either serialized with default Sitecore serialization mechanism, Unicorn or TDS) and restore them in your local environment.
Those are all the steps required in the simple scenario. There may be other steps needed if solution is more complicated but no one will be able to tell you what you need if they don't know the project.

Move Access Web Database to Another Sharepoint Site

I have an Access web database (the out-of-the-box Project one) and plan to move to another Sharepoint site (a test server). I have done lots of googling and nothing comes up. Any pointers will be greatly appreciated.
Thanks.
After some trials and errors, I figured out how to do that. First open the Access web db in Access client. Then go to Publish & Save, where you should see an option Save As Local Database. Then open the local database, again go to Publish & Save, you can choose to Publish to Access Services. A pane will appear to let you enter the URL of Sharepoint server and site name. If you have customizations or lots of lookups, there's a good possibility it will not publish. If that's the case, you just need to fix all the errors reported.
I was able to move my Access 2016 app to a new Sharepoint Site by saving it as a .app and uploading it to the new site.
I found this link to Microsoft's site helpful: Create an Access app package

How to deploy a web site on IIS by using .dll file

I want to deploy on IIS my web site but I do not want to take whole project. I just need to take .dll file. Is their any way to do so.
I do not want to use visual studio only .dll file from the project to deploy.
The basic steps for deploying to IIS on windows server are as follows:
log onto the machine that is or will be hosting your application.
Use IIS Manager to create a new website for your application.
Create a new application in that site. I believe this also will automatically create an application pool with the same name for you and use it by default.
Specify the virtual directory for your application. This is going to tell IIS where to look for your mvc application. For this case lets assume it is C:\myApp
On your own machine Build the application however you build it with the correct solution configuration (i.e. Release mode). Let say the result of your build is located at C:\MyProject\bin
Copy C:\MyProject\bin from your machine onto your hosting machine at C:\myApp
You should be able to search these steps and find a step by step guide of how to accomplish them. Here is a link to some info on what sites, applications and app pools are to help you better understand.
http://www.iis.net/learn/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis
Based on your sites requirements there will be some additional steps to set up security and alter bindings if you need to change them.
You don't need to deploy your entire website if you only make a change in a single assembly. You could copy the .DLL assembly directly to the bin folder of your website. This will trigger the Application Pool to be recycled in IIS and the changes will be taken into effect on the next request.

Development in Visual Studio 2010 for remote Sharepoint 2010 server

I understand that you can't develop in Visual Studio 2010 for a remote Sharepoint 2010 server because you need a local copy running on your box. (I know there is a hack)
In my situation I have Sharepoint Foundation installed locally for development purposes but I'm not sure how to get the custom lists, etc from the remote server to my local box so I can develop against the same objects.
I've tried exporting the site on the remote box and then creating a new Visual Studio 2010 project from it. This resulted in exceptions when deploying to my local box - more problems which I'm sure given time I could work out...but more problems. (It was types not being installed properly on my local box that the custom object was using)
So I've been thinking there must be an easier way to pull down data structures.
I've spent a while looking for this and while there is quite a lot of information out there I'm finding it hard to find basic information like this.
Any help is greatly appreciated.
What objects do you need from the remote server?
If it is lists, you can export the lists from the remote server as templates then use the resulting stp files to create the lists locally. If it is dlls you can get them form GAC and add the required entries in SharePoint site web.config.
You can also try to export the entire site and create a site locally based on the site template.

Issues web database template missing in SharePoint 2010 Final version

I have been using Sharepoint 2010 Beta for developing an Access database solution using Issues Web Database template.
After installing the final release version of Sharepoint 2010 on the production server, I have been unable to find Issues Web Database template. Has it for some reason not been included in the final version, and is there a way of including it?
What I need to do is to install the template on the server and synchronize the content with the existing solution on the developing server.
Thanks
Web Database Templates are not available to create site collections. I dont know if this can be changed. They are available for sites and sub sites.