I am trying to load my website and it says object instance not found. What do i do??
make sure that the object that it is complaining about is instantiated before it is used...or check it for null before using it. Can you post the actual error and code here so we can see more detail?
More info please.
You flagged C# so can I assume ASP.NET? What version?
What version of IIS?
Did it ever work? Have you changed anything?
Can you strip stuff out to get soemthing working? Then add back a step at a time?
Related
I have add a new webpage in solution.
when I try to run, it shows an Error like below.
Thanks in advance..
The Inherits attribute value is the name of the class which inherits Page in the backend.
Also the path has to be correct. So go on and make some changes.
I'm trying to use EPIServer Webservice ContentChannelService.asmx to import files to a specific property on a page.
I create the pages programatically and after this I want to use the webservice to populate a "linktoimage" property. Now I have succeded in just uploading a file to the root of the filesystem but as you understand I want to connect it to the page's property.
How do I do this? (I have the page's id so I can fetch the page) Tips, tricks or solutions is very welcome!
Thanks!
EDIT
I'm open to use the PageMirroringService.asmx and PageStoreService.asmx as well just don't know exactly how to use them to make it work as I want.
You will need to create a content channel.
This article might be of assistance to you
I solved it using the methode ImoprtFile2() and then use the string that was returned to set the property value of the iamge property. It's not that well documented so it feels like you have to try and error until you get what you want.
I am unable to get execWB working. Can any one show me how to initialize it or which namespace or dll file I need to include in order to use this method.
I am trying to zoom out the content on my browser.
You are in luck. Someone already wrote the interop for you.
Try looking at this Stackoverflow question. This CodeProject link concerns VB.Net but you might be able to get some useful information from it.
My error logger has logged an error recently that just boggles me.
Here's a copy'n paste of the error:
A public action method 'style.css'
could not be found on controller
'ProductController'.
So I ran a search over the entire solution for references to style.css. There are none, and I have no stylesheet named style.css.
The calls are happening on a legitimate users logged in session even. W.T.H?
It seems to me that there's a route mapped in a way that's "catching" '/style.css'.
Used Firebug to find the call... it was coming from a jQuery plugin. Resolved by setting the stylesheet name in the plugin options.
Thanks everyone!
I'm trying to get around an issue for a customer that have a site developed by a previous developer. The following is the line of code causing the issue:
args.AddParam("REFERER","",Request.UrlReferrer.ToString());
Therefore if you navigate directly to this page using the URL, it returns a null exception error. I know that to fix this the code should first be checking if UrlReferrer is set to null, however I am trying to find a way around this problem without having to change any source. Any help would be appreciated
No, there is no URL (Querystring) argument that can set the REFERER http header to something. The only way you can do it is to link to the page from another one, and only navigate to it in that way.