WebPart not registered as safe at this site
Hello Everybody,
I am very new to Sharepoint Development, I have created a web part for Sharepoint Server 2003, I am also able to successfully install the CAB project for the web part.
But,when I try to drag the web part onto the page at the server I get error "A web part or web form control on this web part page cannot be displayed or imported because it is not registered on this site as safe", eventhough I've marked the web part as safe in the web.config file of the server, I also tried to change the security settings from WSS_minimal to WSS_medium ,but of no use.
Has anyone encountered the problem before ?? Please help me out..
Thanks,
Sumit Sharma
Uploading file to sharepoint list.
This is a snippet that was suggestions by a friend, but it seems to be incomplete. I don't get any errors, but it doesn't upload file, what am I missing? What do I do with NewFile to make it work??
Dim FileContents As Byte
Dim Site As New SPSite("http://sharepointsite.com/qc/")
Site.AllowUnsafeUpdates = True
Dim Web As SPWeb = Site.OpenWeb()
Web.AllowUnsafeUpdates = True
Dim DocumentLibrary As SPList = Web.Lists("System")
Dim DocumentLibraryFolder As SPFolder = Web.Folders("System")
Dim NewFile As SPFile = DocumentLibraryFolder.Files.Add(System.IO.Path.GetFileName(NewFileName), FileContents)
Site.AllowUnsafeUpdates = False
Web.AllowUnsafeUpdates = False
Sharepoint Forms Auth Remember Me Checkbox
I have a site successfully setup and running forms authentication. I noticed though, that there is a Remember Me check box, and unless this is checked the site does not create a cookie and thus cannot properly check out or check in a document, which kills our functionality completely.
I have tried editing this login.aspx file, but I have been unsuccessful. I've tried adding "checked" "checked='true'" and more... but it just isn't happening. Can anyone shed any light on this problem?
Ideally, I want to have this check box hidden and checked by default, so there is no way for a user to uncheck it.
How to submit a infopath form to the respective folders?
We have an InfoPath form, whenever an user submits a form it is saved to the share point library. Here we have to maintain item level security to the InfoPath forms in the forms library i.e. the form which is created by one should see and edit by himself only. Is there any way to provide this functionality without writing code?
Otherwise we will create folders to each employee. But the InfoPath form published to the form library should save to the respective folders instead of saving in single folder so that we can maintain folder level permissions. How to submit a form to the respective folders?
Should I use Excel Services?
I work for a big industry that have lots of power excel users.
Some of them that work in the supply department can build really complex excel spreadsheets of great value for the company.
But they don't have a database of this valuable information.
So they asked me to build a solution that stores this large amount of data in an Oracle database for future use.
They are able to use this data to create even more complex reports.
So my system needs to generate this reports as well.
I know Sharepoint offers me a great solution for keeping all this valuable information in a SQL Server Database without loosing the usabillity of excel, which the users all love and I wouldn't dare to try to recreate.
Excel services seems to be a solution to think about.
But, what if they don't agree to pay for more licences? Can I still use SharePoint and, kind of, simulate what excel services does on my own?
Or is it better to keep the Oracle approach?
Thanks
problem while Creating folder using SharePoint dws web service
I have used sample code for exploring web services of sharepoint to create folders and list and upload documents. First i have tried to create a floder. Its creating folder in my central administration site always. How can i create the folder inside my newly created site collection, e.,g. My site collection is http://localhost:89/sites/60/ --- on which i want to create a folder. but it is always creating folder under central admin site. -- http://localhost:81/
I also tried to give absolute url as parameter folder name in method DwsCreateFolder(string FolderUrl) but it is not taking full url here.
Can anyone help me out.
Thanks in advance.
Building Excel Services
Hi there,
I work for a multinational industry as a .net consultant.
I've developed a solution that I'm not happy at all with. It is hard to work with and has a poor performance.
Therefore, I'm thinking of using a SharePoint Services approach to rebuild a better solution.I am developing a SAP/VB.NET/Oracle Application that functions, basically, like this:
My solution:
1 - Thru a VB.NET UI, the user starts a download from SAP that populates a HUGE excel file.
2 - VB.NET transforms the whole file into a HUGE in-memory XML stream and sends it at once to an Oracle Database.
3 - With PL/SQL I parse the XML and populate three tables that represent a normalized model of the excel spreadsheet generated by SAP. Each file represents a version of what we call a business plan.
4 - The VB.NET UI offers the possibility to edit the business plans. For that, I have to turn the data back into an excel file and open it for the user. The user makes the changes and updates the file again. I have to validate and parse the whole excel file again.
5 - The VB.NET UI offers a series of reports that are generated based on the Oracle tables.
Problems:
Steps 1 to 3 are extremely slow. It takes about 10 minutes to generate one business plan.
Validating numbers, dates and not null cells in 80 x 1000 excel spreadsheets is not fun.
I created an excel-like user interface using text boxes for the user to update a few values of the business plan without having to update the whole excel file. But users hated it since it looks like excel but it doesn't feel like excel. I used javascript and ajax concepts to enhance the user experience but, obviously, I can't compete with excel.
WSS Solution:
1 - After the SAP download process its over, a .NET component uploads the excel file to a SharePoint Document Library. Much faster!
2 - There will be no more xml and oracle since WSS provides that for me out of the box with SQL Server and binary data.
3 - The user are free to open the excel files and update the values with versioning and security. They will love it. No development for me.4 - I will have to access the document library files to build the reports.
Problems:
Steps 1 to 3 are ready. I test it and its working wonderfully.
Step 4 is a problem because we have WSS 3 but we don't have MOSS 2007 or Excel Services. They are not planning to buy those licenses too soon so I will have to develop that by myself.
Question:
Is it possible to access values within excel files that are inside a SharePoint Document Library to build reports?
If yes, can you point me some examples so I can get started?
Thank you!!
is there any place who provide sharepoint free web space
Hi,
I want to know is there any place who provide sharepoint free web space. I want work with sharepoint
krds
lakmal
Custom Membership Provider User Rights Issue
I am using WSS V3 Beta 2 for Custom Site Definition. I am presently working on changing Authentication mode from Windows to Forms
I have created my Own Custom Membership Provider that will talk to Oracle Database for Authentication. I have made an entry in Application's Web.config, Site's Root's web.config and web.config of Sharepoint Central Administration Site. I have creted a class custommembershipprovider which inherits MembershipProvider class and I have implemented methods GetAllusers(), Validate Users(). I added Assembly of this custom class to bin folder of application, Site Root and sharepoint central administration app_bin directory.
From Sharepoint Central Administration I have changed Authentication mode from Windows to forms and provided my membership Provider.
Now when I browse to site, it shows me custom login page. If I try to put invalid user name or password, it prompts me so, and If I put correct username and password, it autheticates the user and moves back to the default page of site. Here the problem starts, it is authenticating the user but not authorizing him for accessing sharepoint site content. Then again when I moved back to sharepoint central administration, Site Collection Administrator to change the site collection administrator from domain\username to username (from oracle db). Here it shows be ADD PEOPLE dialog box, but when I try to search it does not return me any user. Hence I am not able to change site collection administrator. Unless I do it I will not be able to access the site.
My question here is where do I miss a step? Secondly that ADD PEOPLE dialog box uses which Membership Provider, I think its not at all fetching data using my own provider but using its own provider somehow.
Can somebody help me out.
WSS 3.0 and external users in HMC 4.0
I would like the ability for customers to be able to add their own users to their wss sites. However, I do not want to have to add these users to Active Directory if possible. Does anyone know what I have to do to enable this?
Thanks
MPS 4.0 / Create new SharePoint Site error
Hi all,
I get the following error if I try to create a new costumer SharePoint site via provtest/SampleProvisioningUI in MPS 4.0.
System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Provisioning.Providers.SharePointProvider.WebService.SPAdminWS.CreateSite(String siteUrl, String ownerLogin, String ownerEmail, String ownerName, String title, String description, UInt32 lcid, String webTemplate, String hostHeaderUrl) --- End of inner exception stack trace --- at Microsoft.Provisioning.Providers.SharePointProvider.WebService.SPAdminWS.CreateSite(String siteUrl, String ownerLogin, String ownerEmail, String ownerName, String title, String description, UInt32 lcid, String webTemplate, String hostHeaderUrl)
I'm using SharePoint Services 3.0 (SP1) on Windows 2003 R2 (SP2).
All help would be greatly appreciated!
Tobias
search wss subsite
hi all
I am using wss 3.0.
i using the following code to search site contacts. but unfortunately i nether find the site nor contact.
the main site is "http://wssdev".
and the subsite that i want to search is "http://wssdev/bate".
the code:
try
{
DataTable resultsDataTable = new DataTable();
SPSite site = new SPSite("http://wssdev/bate");
{
Microsoft.SharePoint.Search.Query.Query query =
new Microsoft.SharePoint.Search.Query.FullTextSqlQuery (site);
query.ResultTypes = ResultType.RelevantResults;
query.QueryText = @"SELECT SiteName, FirstName FROM SCOPE()";
ResultTableCollection resultTables = query.Execute();
but in the site column i find just the "http://wssdev" site but not "http://wssdev/bate". and in the FirstName Field I don't find any of the "http://wssdev/bate" Contacs.
Does any body have an idea!!
Do I need to configure anything?
thanks in advance
Homepage?!
Hi,
I'm new to SharePoint and need some help!
I want to write an introduction on the homepage but I do not know how to do it. 
Please Help!!!
Thanks
Webpart working on some sites and not on others on a same server
Hello, I have been struggling for four days now with a sharepoint webparts issue and did not manage to solve it.
I developed a personal webpart using chart fx charts for .Net. In order to test this webpart, I was using a test site.
The webpart works well, the graphs show correctly and I am absolutely sure everything is ok with the webpart. Once I was sure I could deploy it on the production site ( myserver:80 ),
I tried to do so using WSS extensions for VS (WSSeVS). There was no problem deploying the webpart and it appears in the webpart collection of the site. But, when trying to add it to a page or to preview it, I have got an error :
Cannot import myWebPart Web Part. à Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)
à Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)
à Microsoft.SharePoint.WebPartPages.WebPartPreview.get_WebPart() à Microsoft.SharePoint.WebPartPages.WebPartPreview.CreateChildControls()
à System.Web.UI.Control.EnsureChildControls() à System.Web.UI.Control.PreRenderRecursiveInternal()
à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Control.PreRenderRecursiveInternal()
à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Control.PreRenderRecursiveInternal()
à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Both sites are on the same server. The only difference is that my test site port was 40560 whereas main site's port is 80.
The webpart still works on the test site but whatever I try I do not manage to get it working on the main site.
I do not have any idea on how to solve it now. Hope you will be able to help me.
Thanks a lot and have a good day.
Having difficulty with search web service
I'm writing a search utility for a web app that is suppose to search sharepoint. So after doing a little research, I find out that there exist a web service called search.asmx that I can use to do my searching. Unfortunately, no matter what I try, I get the following response back from the SharePoint server:
<ResponsePacket xmlns="urn:Microsoft.Search.Response">
<Response domain="">
<Status>ERROR_SERVER</Status>
<DebugErrorMessage>System.ArgumentNullException</DebugErrorMessage>
</Response>
</ResponsePacket>
I have googled and I cannot find a single thing on this. Here is the code I'm using to develop my query:
1 string queryXML =
2 "<QueryPacket xmlns='urn:Microsoft.Search.Query'>" +
3 "<Query>" +
4 "<Context>" +
5 "<QueryText language='en-us' type='MSSQLFT'>" +
6 "SELECT Title, Path, Description, Write, Rank, Size from SCOPE()" +
7 "</QueryText>" +
8 "</Context>" +
9 "</Query>" +
10 "</QueryPacket>";
I read that it might have something to do with the URL of my query service. So I set that explicitly and I'll get the following exception:
Server was unable to process request. ---> There is no Web named "/Shared Documents/_vti_bin/search.asmx".
Any clues?
Sharepoint Newbie with sharepoint issues
I am new to Sharepoint and wondering if it is used for version control, like Subversion and the likes. I just got me a hosting account and trying to figure out how to connect my VS 2008 directly to it, to access and edit and update files and media. Is this possible? If yes, how?? Thanks in Advance
Workflow problem
Hi all,
I've got a hosted WSS 3.0 site (using MPS) and a user that's reporting that when he tries "to run a workflow manually" he gets the following error:
Item has already been added. Key in dictionary:
'<Xoml.a5ccab7c_7a0c_461f_b9fc_60d2fa87d722.32.2560.33.2560.dll><Cfg.a5ccab7c_7a0c_461f_b9fc_60d2fa87d722.34.2560.>' Key being added: '<Xoml.a5ccab7c_7a0c_461f_b9fc_60d2fa87d722.32.2560.33.2560.dll><Cfg.a5ccab7c_7a0c_461f_b9fc_60d2fa87d722.34.2560.>'
Troubleshoot issues with Windows SharePoint
Services.<javascript:HelpWindowKey('troubleshooting')>
Any idea what to do with one of these errors? I confess I'm not extremely skilled at SharePoint.
Thanks for any help at all.
Integrating asp.net application to share point 2007
Hi all,
I developed asp.net application with vs2005, sqlserver2005, in my application I used master pages, business access layer, and data access layer, each and every page will integrate master page (except login page). In master page I am verifying the user is authentication and authorization based on the sessions. It is working fine and also lunched online, the users are working very well.
Now I need to integrate this site (asp.net application) to share point 2007, I created one document management application in share point 2007, I created folder structure and now I need to give permitions for those folders, based on my asp.net application roles and groups. Once the user login into my asp.net application or login to share point application (I need to give some links in botch applications), I need to do operations based on users authentication and authorization.
In asp.net application authentication mode is forms, but as of now my share point application mode is windows only, if I need to change this mode to forms I need to map the data base by asp.net application data base. But my asp.net application is not have any membership providers and role based providers.
So, this my long story, now I need to integrate this both applications with one or two data bases.
Is it possible, if possible please give any tips or ways to do this. If not possible please give a alternate solution for this. If possible give any links to rectify my problem. Please help me out.
If I need to change my existing application to membership and role based provider may be it is not possible at present because it was developed by two and half years if I need to change may be it will take some more time, but time is there to me to do this. With minimum changes I will do, that are not an issue, please kindly keep this information and give a possible solution.
Please excuse me if I am wrong any thingThanks in advance
Jayakumar.B
Where should I install SharePoint Designer?
Should I install the SPD on the Front-End WSS Server?
Or in a developer machine?
Sorry if its a stupid question...
Thanks
Share Point
What is Share Point? Why Share Point ? and How to use Share Point in web applications ?
Thank you
Ramesh(Nani)
Four-State WorkFlow?
Hi there, I didn't find a group for SharePoint Development Issues so I'm posting here on the Windows SharePoint Services Hosting group. If there is a more appropriate group please let me know.
As you know, WSS 3.0 provides a three-state workflow pattern. If I need a four-state workflow what is the best solution?
Does MOSS 2007 has that pattern?
Can I create one with ShrePoint Designer?
Thanks
How to Modify web.config <SafeControl> for LinqDataSource with 3.5
Hi,
Im using VS2008 and 3.5 Framework. In my project im
created webpart that will load any usercontrol in SharePoint site, for
the same i need to add some stuff in web.config. when running process
im adding usercontrol with LinqDataSource, where im getting error that
"Unknown Server tag as <asp:LinqDataSource>", for this need i
need to add new SafeControl Asssembly for LinqDataSource like this...
<SafeControl
Assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls"
TypeName="ObjectDataSource" Safe="False" AllowRemoteDesigner="False"
/>
Can anyone help me to fix the error...
Regards
Jai
Share Point Event receivers
Hi!
I am trying to add ItemAdding and itemUpdating receivers on a share point list but facing few problems. Can anybody help me on this and give me reference to some web resource.
Thanks
ASP.NET error in '/' Application - Sharepoint
When launching my main sharepoint site I'm given a stack trace. I'm not quite sure how to read the stack and thought I'd see if anyone could be of help here.
I have 7 'solutions' globally deployed on my SP farm and everything was working fine. I deployed 6 other web parts and solutions to the virutal site '/'. After I did that is when the site would no longer load.
I retracted all of the solutions that I had deployed, I've deleted and recreated the web application and IIS sites but im still having the same error. Any help is greatly appreciated!
Server Error in '/' Application.
Value does not fall within the expected range.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Value does not fall within the expected range.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentException: Value does not fall within the expected range.]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder) +0
Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder) +122
Microsoft.SharePoint.SPWeb.GetMetadataForUrl(String relUrl, Int32 mondoProcHint, Guid& listId, Int32& itemId, Int32& typeOfObject, Object& fileOrFolder) +88
Microsoft.SharePoint.SPWeb.GetFileOrFolderObject(String strUrl) +188
Microsoft.SharePoint.Publishing.CommonUtilities.GetFileFromUrl(String url, SPWeb web) +833
Microsoft.SharePoint.Publishing.PublishingPage.get_Layout() +173
Microsoft.SharePoint.Publishing.PublishingPage.GetEffectivePageCacheProfileId(Boolean anonUserProfile) +344
Microsoft.SharePoint.Publishing.PublishingPage.GetEffectiveAnonymousPageCacheProfileId() +30
Microsoft.SharePoint.Publishing.CachedPage..ctor(PublishingPage page, SPListItem altItem, String id, String parentId, String title, String url, String description, CachedObjectFactory factory, List`1& fieldInfo) +1094
Microsoft.SharePoint.Publishing.CachedPage.CreateCachedPage(PublishingPage page, SPListItem altItem, CachedObjectFactory factory, List`1& fieldInfo) +267
Microsoft.SharePoint.Publishing.CachedPage.CreateCachedPage(PublishingPage page, CachedObjectFactory factory, List`1& fieldInfo) +35
Microsoft.SharePoint.Publishing.CachedListItem.CreateCachedListItem(SPListItem item, SPListItem alternateItem, Boolean parentIsWeb, CachedObjectFactory factory, List`1& fieldInfo) +377
Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateObject(SPListItem listItem, List`1& fieldInfo) +1098
Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateObject(PublishingPage page) +75
Microsoft.SharePoint.Publishing.CachedObjectFactory.GetPageForCurrentItem() +126
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ComputeRedirectionVirtualPath(TemplateRedirectionPage basePage) +1353
Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.CombineVirtualPaths(String basePath, String relativePath) +91
System.Web.Hosting.VirtualPathProvider.CombineVirtualPaths(VirtualPath basePath, VirtualPath relativePath) +38
System.Web.UI.DependencyParser.AddDependency(VirtualPath virtualPath) +30
System.Web.UI.DependencyParser.ProcessDirective(String directiveName, IDictionary directive) +2176212
System.Web.UI.PageDependencyParser.ProcessDirective(String directiveName, IDictionary directive) +20
System.Web.UI.DependencyParser.ParseString(String text) +131
System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath) +596
System.Web.UI.DependencyParser.GetVirtualPathDependencies() +157
System.Web.Compilation.TemplateControlBuildProvider.GetBuildResultVirtualPathDependencies() +200
System.Web.Compilation.BuildManager.GetVirtualPathDependencies(String virtualPath) +193
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies) +582
Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData) +765
Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData) +965
Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.GetVirtualPathProviderCacheKey(HttpContext context, SPRequestModuleData requestData) +32
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetVirtualPathProviderCacheKey(String virtualPath) +201
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath) +64
Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.GetCacheKey(String virtualPath) +38
System.Web.Hosting.VirtualPathProvider.GetCacheKey(VirtualPath virtualPath) +20
System.Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath(VirtualPath virtualPath, Boolean& keyFromVPP) +24
System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath) +21
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +57
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
|
Different logos for Sharepoint site
Hi all,
I would like to show different logos for different users logged in, pertaining to one SharePoint Site......
Can any one of you solve this problem....???
please help me regarding this Issue.
Regards,
kumar.