Error: Server was unable to process request. --- Object reference not set
Hi All,
I am using ALSB 2.6.
In the project, i have requirement to do transformation of incoming request with CData Tag and getting a response from the remote service.
I have configured the Proxy Service and Business Service with a message route in which transformation is happening using replace action and adding a XSLT there.
While sending the request from ALSB Test Console , its doing the transformation correctly as follows:
Transformed Request at ALSB
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<lif:MultipleTermLifeQuotePublic xmlns:lif="https://www.farmerslife.com/LifeNetWS/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<lif:xmlInput>
<TERM_LIFE_RATE_QUOTE>
<Quote_Request Quote_Sequence = "100">
<Face_Amount>
1000.00
</Face_Amount>
<Gender>
male
</Gender>
<Age>
100
</Age>
<Level_Term_Years>
100
</Level_Term_Years>
<Type>
string
</Type>
<Nicotine>
true
</Nicotine>
<CIR_Amount>
1000.00
</CIR_Amount>
<State>
string
</State>
<Waiver_Premium>
false
</Waiver_Premium>
</Quote_Request>
</TERM_LIFE_RATE_QUOTE>
</lif:xmlInput>
</lif:MultipleTermLifeQuotePublic>
</soapenv:Body>
After transformation, when its passing through Business Service its giving the followin error at ALSB console
<soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>
Server was unable to process request. ---> Object reference not set to an instance of an object. </faultstring>
<detail/>
</soap:Fault>
</soap:Body>
[b]When i am sending the same request through SOAP UI, I am getting a correct response.
Can any one guide me what to do regarding this, where i am going wrong.
Please try to reply as soon as possible. Its an urgent issue.
That error you're getting is a typical error message from Windows web services. It simply means there was something unspecified that was wrong with your message. You'll need to find a way to extract the actual message being sent in both the "good" and "bad" cases and look at the differences. You can do that in ALSB with a "Log" action.
Similar Messages
-
SOAP Parsing Error: Server was unable to process request
Hia,
We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Asynchronous Scenario).
(ECC -> PI -> Legacy CRM)
System is getting connected and able to send asynchronous messages to legacy system. But getting following error while sending synchronous error:
2010-05-10 13:15:05 Information Delivering to channel: CC_SOAP_SOReject_Out
2010-05-10 13:15:05 Information SOAP: request message entering the adapter with user J2EE_GUEST
2010-05-10 13:15:05 Information SOAP: completed the processing
2010-05-10 13:15:05 Information SOAP: continuing to response message f33caa90-5c07-11df-c659-96d147c2ff0f
2010-05-10 13:15:05 Error SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
2010-05-10 13:15:05 Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
2010-05-10 13:15:05 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.. Setting message to status failed.
2010-05-10 13:15:06 Error The message status was set to FAIL.
I have already checked Data Structure and it is fine.
Regards
In this scenarios we are using XSLT mapping using CDATA.
Please suggest solution.Source structure;
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SOR_test xmlns:ns0="http://MTSINDIA/TEST/SingleValue">
<ITEM>
<sSlsOrderCode>100</sSlsOrderCode>
<sDlrCode>200</sDlrCode>
<sRejectReason>300</sRejectReason>
<nCircleCode>400</nCircleCode>
</ITEM>
</ns0:MT_SOR_test>
Final Target strucutre accept Web Service
<?xml version="1.0" encoding="UTF-8"?>
<ns1:SalesOrderReject xmlns:ns1="http://tempuri.org/"><ns1:SalerOrderRejXML><ITEM><sSlsOrderCode>100</sSlsOrderCode><sDlrCode>200</sDlrCode><sRejectionReason>300</sRejectionReason><nCircleCode>400</nCircleCode></ITEM></ns1:SalerOrderRejXML></ns1:SalesOrderReject>
The above result is the test result which I got from using CONCAT and CONSTANT function si graphical mapping which is not a feasible solutin. It works in small strucutres but where the data structure is big (lets say 40 nodes) and coplex structure than it will fail.
Cannot use XSLT as CDATA will come in picture. Any other options? -
SOAP Error : Server was unable to process request. Key cannot be null.#
HI, When I process SOAP call from ABAP using class csoaptransporthttp->request_response, I am getting following error message:
"Server was unable to process request. > Key cannot be null.##Parameter name: key"
Is anybody as the clue to resolve this error ?Hi,
if you're doing a SOAP client - did you compare with this example:
http://help.sap.com/saphelp_47x200/helpdata/en/2d/64d053e74911d6b2e400508b6b8a93/content.htm
Regards,
Michal Krawczyk -
I'm using the following code to retrieve order list is working fine but it give me an error Server was unable to process request ERROR: A server error has occurred when I trying to retrieve order total paid with same code: and the output when retrieve order total paid is [object Object]
var wsUrl = "https://mysite.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx?WSDL";
var RetrieveTotalPaidXML =
'<?xml version="1.0" encoding="utf-8"?>\
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">\
<soap12:Body>\
<Order_RetrieveTotalPaid xmlns="http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice">\
<username>user</username>\
<password>pass</password>\
<siteid>111222</siteid>\
<orderId>112345</orderId>\
</Order_RetrieveTotalPaid>\
</soap12:Body>\
</soap12:Envelope>';
$.ajax({
type: "POST",
url: wsUrl,
Host: "mysite.worldsecuresystems.com",
contentType: "application/soap+xml; charset=utf-8",
data: RetrieveTotalPaidXML,
dataType: "xml",
success: processSuccess,
error: function(){alert("Error: Something went wrong");}
function processSuccess(ResData) {
var RetrieveTotalPaidParse = $.parseXML(ResData);
var $xmlRetrieveTotalPaidParse = $(RetrieveTotalPaidParse);
var $Order_RetrieveTotalPaidResult = $xmlRetrieveTotalPaidParse.find('Order_RetrieveTotalPaidResult');
$Order_RetrieveTotalPaidResult = $(this).find('Order_RetrieveTotalPaidResult').text();
$('#RetrieveTotalPaidResult').text(Order_RetrieveTotalPaidResult);
I think there a bug in BC CRM Web Service when trying to make a request for Order_RetrieveTotalPaid using soap need to be fixPerhaps it would be good to update the sample request as shown on the Developer reference page for this method (and, actually ALL of the SOAP samples)
The sample shows siteid (all lower case) -
I am working with the API for the first time, and I am currently trying to figure out how to pull a list of products from a cat using the Product_ListRetrieve, I keep getting this error
Server was unable to process request. ---> ERROR: This site is not hosted on this data centerOkay so if anyone else is having these issues I found an answer for MVC3 C#:
Go into the Web Config and look at the Application Settings, by editing the URL there you can find a value containing the service url. add the subdomain there:
Example-
<applicationSettings>
<ITCatExtend.Properties.Settings>
<setting name="ITCatExtend_CRM_CatalystCRMWebservice" serializeAs="String">
<value>https://Add the Sub Domain Here.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx</value>
</setting>
<setting name="ITCatExtend_Ecom_CatalystEcommerceWebservice"
serializeAs="String">
<value>https://Add the Sub Domain Here.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice.asmx</value>
</setting>
</ITCatExtend.Properties.Settings>
</applicationSettings> -
Error in RWB i.e Server was unable to process request
Dear Friends,
I am working on File to SOAP scenario for multiple values.
I have 20 Fields each field is having multiple values in sender side these multiple values I need to send to .Net system.
From ECC it is picking successfully but posting to target system I am getting the problem.
I have taken the sender side 0 to unbounded and target side they provided 0 to unbounded.
For single value it is working fine, but for multiple values I got the error like:
MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
Please suggest me .
Regards,
Shalini ShahCheck my response here: Re: Receiver SOAP Communication Channel Error
I have taken the sender side 0 to unbounded and target side they provided 0 to unbounded.
For single value it is working fine, but for multiple values I got the error like:
Are you sure that your WS actually supports 0..unbounded occurence......also verify that your mapping is generating required output
Regards,
Abhishek. -
Hi All,
we are calling sharepoint webservice from our web application but we are getting below error while calling webservice.
Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Our code is as below.
We used below 2 options but we got same error for both scenario,
1)
ListService.Lists objLists = new ListService.Lists();
NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
objLists.Credentials = objNetworkCredential;
System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
2) ListService.Lists objLists = new ListService.Lists();
objLists.Proxy = new WebProxy("proxyaddress",true);
NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
objLists.Credentials = objNetworkCredential;
System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
Please help me what is the problem while calling this service.
Thanks in advance.
Regards,
Kaivan ShahHi ,
Here is a similar case ,you can have a look at this .
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) -Accessing the sharepoint site:
http://social.msdn.microsoft.com/Forums/en-NZ/sharepointworkflow/thread/5eab2116-7d7c-4bf3-bfa1-48bd8992dded
Thanks,
Entan Ming -
Brand spanking new Sharepoint 2010 RTM and Designer 2010 RTM install. Unable to edit any page whatsoever even when checking out. Error in SP Designer: soap:Server was unable to process request. ---> Value does not fall within the expected range.
Like I said, this is a brand new RTM install with nothing altered yet. Why can't I edit any pages? I am using the highest credentials so there should be no permission issues. There isn't anything that is helping me on the Web for this.
Why would I encounter a problem like this out of the box? This is not the beta - it is RTM!Go to :
Site Collection Administration
SharePoint Designer Settings
and Enable the following
Enable Detaching Pages from the Site Definition
Enable Customizing Master Pages and Page Layouts
Enable Managing of the Web Site URL Structure
This should resolve the SP Designer Edit Issues. -
In our java web application trying establish the connection for sharePoint 2013
using Windows claims authentication (NTLM ), I am getting error message "Server was unable to process request. ---> Site is not configured for Claims Forms Authentication". But In the Sharepoint 2013 our Site is is configured for Windows
claims only.
In the Sharepoint 2013 server in the IIS manager settings for authentication it is enabled for both Windows claims and Forms authentication,
but if I disable Forms authentication that I will be able to connect it through my application but with the direct access i.e., by running the URL in the browser I am not able to connect getting error message "sorry this site has not been shared with
you" in the browser Kindly help me on this.Hi,
This issue is always caused that you had missed FBA configuration in web config of your web application.
You can configure the FBA authentication then check whether it works.
http://technet.microsoft.com/en-us/library/ee806890(v=office.15).aspx
http://chrisbarba.com/2013/07/16/sharepoint-2013-forms-based-authentication-fba/
more reference:
http://stackoverflow.com/questions/5686378/sharepoint-2010-claim-base-authentication-error
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2d82dcd4-0e57-4de5-81bc-60ffc3cb9a9f/sharepoint-2010-claim-authentication-and-authenticationasmx?forum=sharepointgeneralprevious
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Hi there,
I recently got a peculiar error when users tried to log-in into a SP 2010 portal using claims based authentication.
The following error is logged in the event viewer of the SP server in question:
Event ID 8306 - Claims authentication
An exception occurred when trying to issue security token: Server was unable to process request. ---> Index was outside the bounds of the array.
I also found an IIS warning entry with a similar message:
Event ID 1309 - Web Event
Exception type: FaultException
Exception message: Server was unable to process request. ---> Index was outside the bounds of the array.
I simply could not find an answer to why this happened, but an iisreset seemed to have fixed the issue. I was wondering if anyone here would know a possible root cause for this issue?
Thanks in advance for your help.
Regards,
P.Hi,
Thanks for posting your issue, Kindly browse below mentioned URLs to fix this issue
http://underthehood.ironworks.com/2011/05/sharepoint-2010-an-exception-occurred-when-trying-to-issue-security-token-the-server-was-unable-to-p-1.html
http://nearbaseline.com/blog/2011/01/claims-exception-occurred-issuing-a-security-token/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Server was unable to process request.
Server was unable to process request. ---> Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\Windows\TEMP\agbstcm0.0.cs' could not be found error CS2008: No inputs specified
Please repost in a more appropriate forum - Windows Community would be a good start...
http://answers.microsoft.com/en-us/windows
Noel Paton | Nil Carborundum Illegitemi
CrashFixPC |
The Three-toed Sloth
No - I do not work for Microsoft, or any of its contractors. -
I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="SharePointProject1 Feature1" ActivateOnDefault="FALSE" AlwaysForceInstall="TRUE" Id="8f7163d5-6c65-40d8-9045-8f74192f07d7" ReceiverAssembly="SharePointProject1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9c2f0c3a8e22f6a0" ReceiverClass="SharePointProject1.Features.Feature1.Feature1EventReceiver" Scope="Site">
<ElementManifests>
<ElementManifest Location="VisualWebPart1\Elements.xml" />
<ElementFile Location="VisualWebPart1\VisualWebPart1.webpart" />
</ElementManifests>
</Feature>
This is my Feature1EventReceiver code.
SPWeb spWeb = properties.Feature.Parent as SPWeb;
SPList laptopList = spWeb.Lists["Laptops"];
if (laptopList != null)
laptopList.Delete();
SPListCollection lists = spWeb.Lists;
lists.Add("Laptops", "The Laptops", SPListTemplateType.GenericList);
laptopList = spWeb.Lists["Laptops"];
laptopList.Fields.Add("Name", SPFieldType.Text, true);
laptopList.Fields.Add("Model", SPFieldType.Text, true);
laptopList.Fields.Add("Image", SPFieldType.URL, false);
I can deploy if I have only below code
SPWeb spWeb = properties.Feature.Parent as SPWeb;hi
features containing webparts must be site scoped, so you must get spweb as bellow:
SPSite spSite = properties.Feature.Parent as SPSite;
SPWeb spWeb = spSite.RootWeb;
yaşamak bir eylemdir -
I am trying to create a custom timer job and while deploying it getting the error as:
Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.
where am i going wrong?please suggest...
Thanks
Suu30I am not able to get the errors.So attaching the error log files here.Please help
08/21/2012 17:35:03 1 INF Entering function PsconfigUserInterfaceMain.Main
08/21/2012 17:35:03 1 INF Entering function Common.SetCurrentThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Entering function Common.SetThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
08/21/2012 17:35:03 1 INF Leaving function Common.SetThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF The current ui culture English (United States) is NOT right to left
08/21/2012 17:35:03 1 INF Leaving function Common.SetCurrentThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Creating the psconfig application context
08/21/2012 17:35:03 1 INF Entering function PsconfigApplicationContext.PsconfigApplicationContext
08/21/2012 17:35:03 1 INF Entering function UserInterface.UserInterface
08/21/2012 17:35:03 1 INF Leaving function UserInterface.UserInterface
08/21/2012 17:35:03 1 INF Entering function TaskDriver.TaskDriver
08/21/2012 17:35:03 1 INF Entering function TaskDriver.BuildCommandCollection
08/21/2012 17:35:03 1 INF Entering function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Leaving function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Entering function CommandCollection.CommandCollection
08/21/2012 17:35:03 1 INF Leaving function CommandCollection.CommandCollection
08/21/2012 17:35:03 1 INF Entering function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Leaving function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Creating the APPLICATION bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the APPLICATION bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Creating the SINGLESERVER bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the SINGLESERVER bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the V2V_INPLACE_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the V2V_INPLACE_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the CLEAN_INSTALL bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the CLEAN_INSTALL bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the B2B_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the B2B_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the SKU2SKU_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the SKU2SKU_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the runningupgrade bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the runningupgrade bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the LanguagePackInstalled bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the LanguagePackInstalled bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter -
I have installed Project Server 2013 on SharePoint 2013, and installed the first PWA which worked. But I needed to change some configurations and so I deleted the PWA instances, but now I cannot delete the Project Server Service Application. Every attempt
to delete the Service Application it gives the error above, namely:
Sorry, something went wrong
Object reference not set to an instance of an object.
Technical Details
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: ecaeaf9c-9fec-3049-ba23-d9a18337b9e2
Date and Time: 8/18/2014 12:55:31 PM
I'd urgently appreciate help.Thanks Paul for the reply. Here's the error, and the logs below covering the time the error occurred.
I've tried to extract a section of the log file below:
==========================================================
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
08/18/2014 19:20:19.07* w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
08/18/2014 19:20:19.07 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
af4yd High [Forced due to logging gap, cached @ 08/18/2014 19:20:18.99, Original Level: Verbose] TenantAppEtag
record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.07 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Asp Runtime
aj1kp High [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.10 w3wp.exe (0x7240)
0x7370 Project Server Unified Logging Service
b8fx High ULS Init Completed (w3wp.exe, Microsoft.Office.Project.Server.Native.dll) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.15 w3wp.exe (0x7240)
0x7370 0x6FB7007
6t8h High [Forced due to logging gap, cached @ 08/18/2014 19:20:19.07, Original
Level: Verbose] {0} f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.15 w3wp.exe (0x7240)
0x7370 Project Server Provisioning
9or8 High [Forced due to logging gap, Original Level: Verbose] Unprovisioning service app {0}
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.16 w3wp.exe (0x7240)
0x7370 Project Server Provisioning
8ig5 High Unregistering project psi shared application timer job. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.21 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
8nca Medium Application error when access /_admin/ServiceApplicationDelete.aspx,
Error=Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob() at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication
psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData) at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender,
EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyn... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.21* w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
8nca Medium ...cPoint, Boolean includeStagesAfterAsyncPoint)
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.23 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Runtime
tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()
at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)
at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoin... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.23* w3wp.exe (0x7240)
0x7370 SharePoint Foundation Runtime
tkau Unexpected ...t) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.24 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajlz0 High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception
of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()
at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)
at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.Rais...
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.24* w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajlz0 High ...ePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. 67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32* w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.38 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Upgrade
aiaih High [Forced due to logging gap, Original Level: Verbose] desiredVersion: {0}
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.41 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
aat87 Monitorable f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajb4s Monitorable ViewStateLog: Failed to write to the velocity cache:
http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.46 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Monitoring
b4ly Medium Leaving Monitored Scope (Request (POST:http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1)).
Execution Time=550.415729455012 f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
08/18/2014 19:20:20.08* w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)
0x09F8 SharePoint Foundation Monitoring
nasq Medium Entering monitored scope (Timer Job SchedulingUnpublish). Parent No acba9844-723f-4477-901c-adfdcae98e4e
08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)
0x09F8 SharePoint Foundation Logging Correlation Data xmnv
Medium Name=Timer Job SchedulingUnpublish f1c4af9c-ffd4-3049-ba23-d4fe1cc1d1d7
08/18/2014 19:20:20.31 OWSTIMER.EXE (0x09C4)
0x0A10 SharePoint Foundation Monitoring
nasq Medium Entering monitored scope (Timer Job SchedulingUnpublish). Parent No 5dbf5387-ba14-4980-bc61-5ba5490870fa
==============================================
Thanks for the attention. -
Crawler Help: Object reference not set to an instance of an object
I'm trying to write a custom crawler and having some difficulties. I'm getting the document information from a database. I'm trying to have the ClickThroughURL be a web URL and the IndexingURL be a UNC path to the file on a back-end file share. Also, I'm not using DocFetch. The problem I'm having is that when the crawler runs I get the following error for every card:
"4/19/05 13:43:30- (940) Aborted Card creation for document: TestDoc1. Import error: IDispatch error #19876 (0x80044fa4): [Error Importing Card.
Error writing Indexing File.
SOAP fault: faultcode='soap:Server' faultstring='Server was unable to process request. --> Object reference not set to an instance of an object.']"
Has anyone seen this before? Any help you can provide would be greatly appreciated. I have included the code from my document.vb in case that helps.
Thanks,
Jerry
DOCUMENT.VB
Imports System
Imports Plumtree.Remote.Util
Imports Plumtree.Remote.Crawler
Imports System.Resources
Imports System.Globalization
Imports System.Threading
Imports System.IO
Imports System.Data.SqlClient
Imports System.Text
Namespace Plumtree.Remote.CWS.MoFoDocsOpen
Public Class Document
Implements IDocument
Private m_logger As ICrawlerLog
Private DocumentLocation As String
Private d_DocumentNumber As Integer
Private d_Library As String
Private d_Name As String
Private d_Author As String
Private d_AuthorID As String
Private d_Category As String
Private d_ClientName As String
Private d_ClientNumber As String
Private d_DateCreated As DateTime
Private d_DocumentName As String
Private d_DocumentType As String
Private d_EnteredBy As String
Private d_EnteredByID As String
Private d_FolderID As String
Private d_KEFlag As String
Private d_LastEdit As DateTime
Private d_LastEditBy As String
Private d_LastEditByID As String
Private d_Maintainer As String
Private d_MaintainerID As String
Private d_MatterName As String
Private d_MatterNumber As String
Private d_Practice As String
Private d_Description As String
Private d_Version As Integer
Private d_Path As String
Private d_FileName As String
Public Sub New(ByVal provider As DocumentProvider, ByVal documentLocation As String, ByVal signature As String)
Dim location() As String = DocumentLocation.Split("||")
Me.DocumentLocation = DocumentLocation
Me.d_DocumentNumber = location(0)
Me.d_Library = location(2)
Dim objConn As New SqlConnection
Dim objCmd As New SqlCommand
Dim objRec As SqlDataReader
objConn.ConnectionString = "Server=sad2525;Database=PortalDocs;Uid=sa;Pwd=;"
objConn.Open()
objCmd.CommandText = "SELECT * FROM DocsOpenAggregate WHERE Library = '" & Me.d_Library & "' AND DocumentNumber = " & Me.d_DocumentNumber
objCmd.Connection = objConn
objRec = objCmd.ExecuteReader()
Do While objRec.Read() = True
Me.d_Name = objRec("Name")
Me.d_Author = objRec("Author")
Me.d_AuthorID = objRec("AuthorID")
Me.d_Category = objRec("Category")
Me.d_ClientName = objRec("ClientName")
Me.d_ClientNumber = objRec("ClientNumber")
Me.d_DateCreated = objRec("DateCreated")
Me.d_DocumentName = objRec("DocumentName")
Me.d_DocumentType = objRec("DocumentType")
Me.d_EnteredBy = objRec("EnteredBy")
Me.d_EnteredByID = objRec("EnteredByID")
Me.d_FolderID = objRec("FolderID")
Me.d_KEFlag = objRec("KEFlag")
Me.d_LastEdit = objRec("LastEdit")
Me.d_LastEditBy = objRec("LastEditBy")
Me.d_LastEditByID = objRec("LastEditByID")
Me.d_Maintainer = objRec("Maintainer")
Me.d_MaintainerID = objRec("MaintainerID")
Me.d_MatterName = objRec("MatterName")
Me.d_MatterNumber = objRec("MatterNumber")
Me.d_Practice = objRec("Practice")
Me.d_Description = objRec("Description")
Me.d_Version = objRec("Version")
Me.d_Path = objRec("Path")
Me.d_FileName = objRec("FileName")
Loop
objCmd = Nothing
If objRec.IsClosed = False Then objRec.Close()
objRec = Nothing
If objConn.State <> ConnectionState.Closed Then objConn.Close()
objConn = Nothing
End Sub
'If using DocFetch, this method returns a file path to the document in the backend repository.
Public Function GetDocument() As String Implements IDocument.GetDocument
m_logger.Log("Document.GetDocument called for " & Me.DocumentLocation)
Return Me.d_Path
End Function
'Returns the metadata information about this document.
Public Function GetMetaData(ByVal aFilter() As String) As DocumentMetaData Implements IDocument.GetMetaData
m_logger.Log("Document.GetMetaData called for " & DocumentLocation)
Dim DOnvp(23) As NamedValue
DOnvp(0) = New NamedValue("Author", Me.d_Author)
DOnvp(1) = New NamedValue("AuthorID", Me.d_AuthorID)
DOnvp(2) = New NamedValue("Category", Me.d_Category)
DOnvp(3) = New NamedValue("ClientName", Me.d_ClientName)
DOnvp(4) = New NamedValue("ClientNumber", Me.d_ClientNumber)
DOnvp(5) = New NamedValue("DateCreated", Me.d_DateCreated)
DOnvp(6) = New NamedValue("DocumentName", Me.d_DocumentName)
DOnvp(7) = New NamedValue("DocumentType", Me.d_DocumentType)
DOnvp(8) = New NamedValue("EnteredBy", Me.d_EnteredBy)
DOnvp(9) = New NamedValue("EnteredByID", Me.d_EnteredByID)
DOnvp(10) = New NamedValue("FolderID", Me.d_FolderID)
DOnvp(11) = New NamedValue("KEFlag", Me.d_KEFlag)
DOnvp(12) = New NamedValue("LastEdit", Me.d_LastEdit)
DOnvp(13) = New NamedValue("LastEditBy", Me.d_LastEditBy)
DOnvp(14) = New NamedValue("LastEditByID", Me.d_LastEditByID)
DOnvp(15) = New NamedValue("Maintainer", Me.d_Maintainer)
DOnvp(16) = New NamedValue("MaintainerID", Me.d_MaintainerID)
DOnvp(17) = New NamedValue("MatterName", Me.d_MatterName)
DOnvp(18) = New NamedValue("MatterNumber", Me.d_MatterNumber)
DOnvp(19) = New NamedValue("Practice", Me.d_Practice)
DOnvp(20) = New NamedValue("Description", Me.d_Description)
DOnvp(21) = New NamedValue("Version", Me.d_Version)
DOnvp(22) = New NamedValue("Path", Me.d_Path)
DOnvp(23) = New NamedValue("FileName", Me.d_FileName)
Dim metaData As New DocumentMetaData(DOnvp)
Dim strExt As String = Right(Me.d_FileName, Len(Me.d_FileName) - InStrRev(Me.d_FileName, "."))
Select Case LCase(strExt)
Case "xml"
metaData.ContentType = "text/xml"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "vsd"
metaData.ContentType = "application/vnd.visio"
metaData.ImageUUID = "{2CEEC472-7CF0-11d3-BB3A-00105ACE365C}"
Case "mpp"
metaData.ContentType = "application/vnd.ms-project"
metaData.ImageUUID = "{8D6D9F50-D512-11d3-8DB0-00C04FF44474}"
Case "pdf"
metaData.ContentType = "application/pdf"
metaData.ImageUUID = "{64FED895-D031-11D2-8909-006008168DE5}"
Case "doc"
metaData.ContentType = "application/msword"
metaData.ImageUUID = "{0C35DD71-6453-11D2-88C3-006008168DE5}"
Case "dot"
metaData.ContentType = "application/msword"
metaData.ImageUUID = "{0C35DD71-6453-11D2-88C3-006008168DE5}"
Case "rtf"
metaData.ContentType = "text/richtext"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "xls"
metaData.ContentType = "application/vnd.ms-excel"
metaData.ImageUUID = "{0C35DD72-6453-11D2-88C3-006008168DE5}"
Case "xlt"
metaData.ContentType = "application/vnd.ms-excel"
metaData.ImageUUID = "{0C35DD72-6453-11D2-88C3-006008168DE5}"
Case "pps"
metaData.ContentType = "application/vnd.ms-powerpoint"
metaData.ImageUUID = "{0C35DD73-6453-11D2-88C3-006008168DE5}"
Case "ppt"
metaData.ContentType = "application/vnd.ms-powerpoint"
metaData.ImageUUID = "{0C35DD73-6453-11D2-88C3-006008168DE5}"
Case "htm"
metaData.ContentType = "text/html"
metaData.ImageUUID = "{D2E2D5E0-84C9-11D2-A0C5-0060979C42D8}"
Case "html"
metaData.ContentType = "text/html"
metaData.ImageUUID = "{D2E2D5E0-84C9-11D2-A0C5-0060979C42D8}"
Case "asp"
metaData.ContentType = "text/plain"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "idq"
metaData.ContentType = "text/plain"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "txt"
metaData.ContentType = "text/plain"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "log"
metaData.ContentType = "text/plain"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case "sql"
metaData.ContentType = "text/plain"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
Case Else
metaData.ContentType = "application/octet-stream"
metaData.ImageUUID = "{F8F6B82F-53C6-11D2-88B7-006008168DE5}"
End Select
metaData.Name = Me.d_Name
metaData.Description = Me.d_Description
metaData.FileName = Me.d_FileName ' This is a file name - for example "2jd005_.DOC"
metaData.IndexingURL = Me.d_Path ' This is a file path - for example "\\fileserver01\docsd$\SF01\DOCS\MLS1\NONE\2jd005_.DOC"
metaData.ClickThroughURL = "http://mofoweb/docsopen.asp?Unique=" & HttpUtility.HtmlEncode(Me.DocumentLocation)
metaData.UseDocFetch = False
Return metaData
End Function
'Returns the signature or last-modified-date of this document that indicates to the portal whether the document needs refreshing.
Public Function GetDocumentSignature() As String Implements IDocument.GetDocumentSignature
Dim SigString As New StringBuilder
Dim SigEncode As String
SigString.Append(Me.d_DocumentNumber & "||")
SigString.Append(Me.d_Library & "||")
SigString.Append(Me.d_Name & "||")
SigString.Append(Me.d_Author & "||")
SigString.Append(Me.d_AuthorID & "||")
SigString.Append(Me.d_Category & "||")
SigString.Append(Me.d_ClientName & "||")
SigString.Append(Me.d_ClientNumber & "||")
SigString.Append(Me.d_DateCreated & "||")
SigString.Append(Me.d_DocumentName & "||")
SigString.Append(Me.d_DocumentType & "||")
SigString.Append(Me.d_EnteredBy & "||")
SigString.Append(Me.d_EnteredByID & "||")
SigString.Append(Me.d_FolderID & "||")
SigString.Append(Me.d_KEFlag & "||")
SigString.Append(Me.d_LastEdit & "||")
SigString.Append(Me.d_LastEditBy & "||")
SigString.Append(Me.d_LastEditByID & "||")
SigString.Append(Me.d_Maintainer & "||")
SigString.Append(Me.d_MaintainerID & "||")
SigString.Append(Me.d_MatterName & "||")
SigString.Append(Me.d_MatterNumber & "||")
SigString.Append(Me.d_Practice & "||")
SigString.Append(Me.d_Description & "||")
SigString.Append(Me.d_Version & "||")
SigString.Append(Me.d_Path & "||")
SigString.Append(Me.d_FileName & "||")
Dim encoding As New UTF8Encoding
Dim byteArray As Byte() = encoding.GetBytes(SigString.ToString())
SigEncode = System.Convert.ToBase64String(byteArray, 0, byteArray.Length)
Return SigEncode
End Function
'Returns an array of the users with access to this document.
Public Function GetUsers() As ACLEntry() Implements IDocument.GetUsers
'no acl info retrieved
Dim aclArray(-1) As ACLEntry
Return aclArray
End Function
'Returns an array of the groups with access to this document.
Public Function GetGroups() As ACLEntry() Implements IDocument.GetGroups
'no acl info retrieved
Dim aclArray(-1) As ACLEntry
Return aclArray
End Function
End Class
End Namespace1. I don't think you can just set the index url to a unc path.
2. Try creating an index aspx page. In your MetaData.IndexURL set it to the index aspx page, and include query string params for the encoded unc path as well as the content type.
3. In the index servlet, get the content type and path from the query string
4. Get the filename from the file path
5. Set the headers for content-type and Content-Disposition, e.g.
Response.ContentType="application/msword"
Response.AddHeader("Content-Disposition", "inline; filename'" + filename)
6. Stream out the file:
FileStream fs = new FileStream(path, FileMode.Open)
byte[] buffer = new byte[40000]
int result
System.IO.Stream output = Response.OutputStream
do
result = fs.Read(buffer, 0, 40000)
output.Write(buffer, 0, result)
while (result == 40000)
put the above in a try-catch, and then delete the temp file in the finally block.
If this does not help, set a breakpoint in the code to find the error. Also use Log4Net to log any errors.
Maybe you are looking for
-
How to get target file name and buffer the incoming messages?
Hi Experts I have one scenarion like I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the req
-
Keeps saying wrong user id or password. Have tried several nothing works. AT&T said Yahoo server down today causing problem. My friends all using theirs.
-
Can't repeat songs after iOS 5.1 update
After updating my iPhone 4S with iOS 5.1, I can't put my playlists or songs on repeat or shuffle. None of the icons appear on the now playing screen. Even the Genius and Ping icons don't appear on my screen. I've tried everything including googling t
-
Is NIMODBUS.LLB Compatible With Windows7
Good Morning, I have written code using the nimodbus.llb library using Win2000 and LabVIEW 2009. Works fine. I want to install my application on a new laptop with windows 7. Before I purchase the laptop I'd like to know if it will work. Thanks, Da
-
Nothing Return via Jena Program???
Hi Folks, I have followed the below procedures to retrieve the information via Jena. But nothing is returned. Would you please help me to solve it? The first three steps are successful, but nothing is returned when I execute any Jena's SPARQL functio