Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

How can i use sharepoint class in asp.net web application

$
0
0

Hi.

I have a file search application which I made with asp.net.

And I must modify this application use the sharepoint search engine

i wanted know if i can use sharepoint class in Asp.net project

New Project -> ASP.net WEB application -> add web form.aspx -> write source aspx.cs file(SPSite site = new SPSite("http://myserverpc23:2222/");) -> build

errors submit is can`t find http://myserverpc23:2222/ (sorry i use Japaness version so i don`t know english error message)

http://myserverpc23:2222/ is Sharepoint Site

I can Access http://myserverpc23:2222/ And No problem if i tried SPSite site = new SPSite("http://myserverpc23:2222/"); in Sharepoint Web part project .

It is an errorif I usetheSPSiteinASP.netproject.

please teach to me


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>