I want to read following setting configured on Sharepoint server 2010:
file types blocked" for web
application
Anti-virus setting
configured to scan documents on
upload
Is error report collection
enabled (Central Administration >
Operations > Logging and Reporting >
Error Reports > ) etc.
My question is, where are these setting stored on sharepoint server machine? Are they in any config file or in database?
I know programmatic way to read these settings (Got Sharepoint 2010 SDK sample code in C#), but my application is in C++ (VS 2003 .Net) and all the API/interfaces are available in .Net (managed code). Please let me know if the API/interfaces to access these setting are available in unmanaged code also?
Any help is greatly appreciated.
Regards,
Krishnakant
You cannot directly call sharepoint API in unmanaged code.
The settings are stored in sharepoint configuration database and must be called as you say in the SDK. You will need to create a .NET class library assembly which you will need to call from your managed code as a COM DLL.
Related
I work on a Sharepoint Server 2013 project, I want to know if there is a method to make this project (package) that I can work on any machine (at home)
you must have the sharepoint 2013 foundation or enterprise version installed on your machine. Then you can simple publish the project and in that way you can take your project to your local sharepoint environment.
If you want to take the list and any other columns or anything like that to your local environment then you can back up and restore the Content database in local environment.
Please let me know if this helps or you will require any other details regarding this
Thanks
We have this Document Library Monitoring Console App written in C# and its running in SharePoint 2007. We now upgrading our SharePoint Server to 2013, so we also need to upgrade our solutions and customization including console apps.
I search through the web I can't find replace for deprecated "SPSite.StorageManagementInformation".
Please read this MSDN article.
You can to use "SPSite.Usage.Storage".
Hope it help to you.
After a Windows 7 fresh restart, I open the Visual Studio 2010 as administrator, create a new project of Windows Azure Project with ASP.NET Web Role, then at the WebRole1 project I add a WebService1.asmx and press F5 (run).
The Windows Azure services starts OK and the browser open the http:/127.0.0.1:8080/WebService1.asmx perfectly. But when I click at Invoke button to test the webservice method I always receive a Bad Request - Invalid Hostname, with a http:/127.0.0.1:8081/WebService1.asmx/HelloWorld.
The most likely cause is ASMX's WSDL file doesn't stand by load balanced environment such as Windows Azure. The test feature relies on WSDL. You will see similar issues if you add a web/service reference. It is recommended to upgrade to WCF. In WCF, you can use useRequestHeadersForMetadataAddress (http://msdn.microsoft.com/en-us/library/ee816894.aspx) to fix the issue. If you need to use ASMX, please try to manually provide a correct WSDL file.
I am working on a Pocket PC 2003 application that is referencing a Webservice.
I was figuring out ways to debug the Webmethods but not successful.
-I checked the URL property of the Service in WebReferences and made sure it is correct.
-I started debugging the PocketPC application, then built the Webservice as start without debugging, after that went to Debuh> Attach process and attached devenv-"Pocket PC app"
-I also tried attaching to the aspwp.exe process but couldn't seem to hit the break points in Web Methods.
-The webservice is deployed to IIS virtual directory.
-I copy pasted the entire webservice folder in the virtual directory. Then I am opening the solution file in Visual Studio. Start without debugging, when the webmethods show in browser, click on it, then click Invoke
Can someone guide me the proper way to debug a Webservice of this type? Thanks in advance.
If you're using Visual Studio 2005 or higher, instead of IIS, use the toy Web service that comes with Visual Studio. In the properties of your ASP.NET project with the Web services, under "Web", check the "Use Visual Stuidio Development server". In order to make the toy server start, you have so start the ASP.NET project from Visual Studio.
Then you attach to the process called Webdev.Webserver.exe using Managed code debugging.
I am working on Silverlight client to Microsoft Team Foundation Server. I am using an ASMX web service to make the actual calls using the TFS api.
Everything works fine when I run it with the visual studio development server, but I cannot figure out how to deploy the app to IIS.
I can get the ASMX web service to work unless it is a call that uses the TFS api. I have tried putting all of the TFS api DLLs in like every directory that I can think of, and even installing the visual studio sdk. Nothing works!
UPDATE 11/15/09 7:50PM EST:
Turns out that the TFS api was trying to create a cache at c:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\, and the IIS_WPG user didn't have access to do so. Easy fix.
The only supported way of installing the TFS API is to install Team Explorer. You could try to GAC just the assemblies you need, but you're on your own [and technically violating the EULA]...
Other things to check:
IIS is running in 32 bit mode
Impersonation is working correctly
Proxy settings
What error do you get? Have you tried attaching a debugger to IIS?