 |
|
 |
Can you please let me know,
1. Whether it is advisable to develop a new site in asp.net and convert it into sharepoint site ?
2. what are the advantages achieved by doing 1. ?
Can you please list - Pros and Con of - developing new site in sharepoint VS developing asp.net site and converting into sharepoint site
|
|
|
|
 |
|
 |
Hello
I am new to sharepoint so please help me. From where shoul i start?
actually i have to develop website in ASP.NET and deploy on SharePoint.
Thanking You
|
|
|
|
 |
|
|
 |
|
 |
Very straight and simple to understand article......
|
|
|
|
 |
|
 |
Hi,
We developed a website using visual studio 2003, asp.net and sql server. Now I need to vonvert that website into sharepoint website. We didn't used master pages and place holders in asp.net website. Can you give me the process for converting asp.net (vs 2003) website into sharepoint website (MOSS 2007, sharepoint designer 2007). Please try to reply me.
Thanks,
Manoj
manojpadhuri@gmail.com
|
|
|
|
 |
|
 |
I think i followed all the instructions but still get this error
An error occurred during the processing of /FormServerTemplates/Default.aspx. The server block is not well formed.
pls help!
|
|
|
|
 |
|
 |
Hi,
I am stuck with this error.. I imported the aspx file into sharepoint desginer.. and when i try to view the page i get the follwoing error! pls help!
|
|
|
|
 |
|
 |
I fixed this by resetting to site definition--->under site settings/look and feel. now stuck with a new error
An error occurred during the processing of /FormServerTemplates/Default.aspx. The server block is not well formed.
|
|
|
|
 |
|
 |
Hi Srivatsan,
I've used your technique over and over again, and they are very good, thank you.
However, I am at a stumbling block now. We have a project (that someone else has written in asp.net), and it is my job to place it into SharePoint. The problem is, they are using .xsd files, any ideas how I can proceed with them?
Thanks, Ashok
|
|
|
|
 |
|
 |
All you got to do is use it in the same way as an ASP.NET application. Just put it in the same relative path as the ASP.NET site. Relative to the file that uses it.
Srivatsan
|
|
|
|
 |
|
 |
My asp.net application working fine on asp.net development server 32 bit(Visual Studio 2005). but when viewing the pages on production server(64bit) the page controls are not populating at all.
I am runing the programe in sharepoint context. deployed the program into sharepoint as DLL file imported all the aspx pages into shartepoint designer, but when viewing it on browser page is not populating with any data.
I copied the connection string into Shartepoint web.config file and i tried both windows and sql sever authentication. but still not populating.
please have a look at my ConnectionString on web.config
Any thoughts will be highly appreciated.
|
|
|
|
 |
|
|
 |
|
 |
I followed ur steps in converting the asp.net web site to a sharepoint site.
i am using the web application instead of asp.net site.
the page working fine on sharepoint designer , but viewing it on browser, it displays the following error message.
Compiler Error Message: CS0433: The type 'ASP.global_asax' exists in both 'c:\WINDOWS\microsoft.net\Framework64\v2.0.50727\Temporary ASP.NET Files\root\e596ddcb\af72c2f2\assembly\dl3\b874e785\bc2d4b4c_188eca01\EmployeeDirectory.DLL' and 'c:\WINDOWS\microsoft.net\Framework64\v2.0.50727\Temporary ASP.NET Files\root\e596ddcb\af72c2f2\App_global.asax.8kqujh01.dll'
look at my specs below
connection to the database configured on web.config of the web application see the section below
add key="sEmployee_DirectoryDBConnectionString" value="Provider=sqloledb;Data Source=aber-dsql-001;Initial Catalog=Staff Directory;Integrated Security=SSPI";
. I copied the above settings to the corresponding section of sharepoint site's web.config file.
Main assembly Employee_directory.dll
Web deployment project assembly : EmployeeDirectory.dll
I copied these DLL files to the bin directory of the sharepoint site and tweak the web.config file as per your steps. But every time when on browser i am getting the above ASP.Global_asax problem.
At this stage i am confused with the global.asax file becuase sharepoint got its own global.asax file. what we need to do with the global.asax file of the web application. do we need to copy it to the sharepoint.
Looking forward to hear from you
modified on Wednesday, January 6, 2010 6:16 AM
|
|
|
|
 |
|
 |
I am getting errors when I try to convert a users application to SharePoint. I have read that any Eval statements need to be convert to a code behind. They are many of these because the user used the gridview to automatically populate the grid. This would be a lot of re-work. There are other issues also, Any ideas?
|
|
|
|
 |
|
 |
I tried your written steps for deploying asp.net web site to moss2007 but ,I got a error for user controls that "*.Ascx are not allowed here"
|
|
|
|
 |
|
 |
Hi Srivatsan24,
Thanks for your article. I have a question for you - my web application only has 2 files and some images.
The 2 files are an WebGF086.aspx page and an WebGF086.aspx.vb page (web page and code-behind page). That's it.
I am not using any namespaces, so will your method work for me?
My .aspx page begins:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="WebGF086.aspx.vb" Inherits="WebGF086" %>
and my code-behind starts like this:
Partial Class WebGF086
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Forgive me if I sound very amateur (that's because I am!).
Any help would be greatly appreciated.
Kind Regards, Ashok
|
|
|
|
 |
|
 |
Please put a namespace for your code behind and do whatever is mentioned in the article. Because the keywords codeFile is all visual studio centric.
(or if you do not want namespace)
just add a web deployment project and compile it to a single assembly. In the aspx page, i think you can just leave the inherits as is. The inherits has the Namespace.classname. So if you dont have a namespace, then just put the class name. But i would advice putting a namespace as it is always a best practice.
Srivatsan
|
|
|
|
 |
|
 |
Hi Srivatsan,
Thanks for your quick response.
Can you give me an example of how to write a namespace for my 2 files (WebGF086.aspx and WebGF086.aspx.vb) but written in vb please?
Do I need to create a separate file to create the namespace, or do I create it within the WebGF086.aspx.vb file?
Would I have to re-write the code-behind file to something like this for example?
Namespace Ashok
Partial Class WebGF086
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'The remaining code in my code-behind page...
End Sub
End Class
End Namespace
Regards, Ashok
|
|
|
|
 |
|
 |
you are right about the namespace code.
you can also refer any site that will help you in creating a namespace
you have to write it in your .vb file itself.
Srivatsan
|
|
|
|
 |
|
 |
Hi Srivatsan,
Once again, thank you for your quick reply. I've done the namespace now (seems ok), so thanks.
In step 9 you said:
"Also, we have to allow partially trusted callers for the dependency DLLs. This can be done by opening the Assembly.info file of the Class Library project"
Well, I have no Class Libarary project, so shall I just ignore it?
Regards, Ashok
|
|
|
|
 |
|
|
 |
|
 |
Too much words!
Only 4 Steps:
1. Create Web Application Project instead of web site.
2. Sign every project.
3. Every page's Inherits page property like this:
Inherits="Default,DllName,Version=,Culture=,PublicKeyToken=".
4. Create a Site Definition Project to deploy.
modified on Thursday, August 13, 2009 12:50 AM
|
|
|
|
 |
|
 |
ok. but what about people who need more explanation. guess a good teacher is one who teaches not only for the brightest in the class but for all. Thanks anyway.
Srivatsan
|
|
|
|
 |
|
 |
Hello,
Thanks for writing a great article. I've successfully migrated a .NET application to a SharePoint site using your instructions.
Once an app is converted in this way, is there an easy way to roll out the functionality to many SharePoint sites? Maybe through a SharePoint custom feature?
Thanks again.
Regards,
Scott
|
|
|
|
 |
|
 |
Hey man,
Great article. Just what I was looking for.
Though I am not been able to work this thing out for myself.
I have created a website called "foo.com" and a class library "BLL" with namespace "namesp"
(1) In Step1 - 1 When you say "make sure you have proper name space" , could you please give me an example (Is it something what I have given : "namesp.BLL")
(2) In Step1 - 3 How would you add strong key name . ( I presume you would add snk to the class lib? which I have done)
(3) In Step2 - 4 what should be the entry in the web.config.
(4) In Step3 - 10 How would you give "Inherits" in my case.
I have followed the steps but I am constantly getting Pasrser error "Could not load type". If I remove the Inherit tag from the webpage then the page is displayed without error but no data on the page!
I would really appriciate if you can reply to these queries. Also like someone mentioned . If you have a mock code then please put it on the site as it would be extemely useful.
Best Regards
|
|
|
|
 |