Xamarin image invalid path - xamarin.forms

Error is showing
invalid resource directory name:
C:\Users\In\source\repos\Xamarin\Xamarin\Xamarin.Android\obj\Debug\81\res
contact.png "res contact.png".
Although I delete this image file from this path and Bild solution
This image is already appear in this path and cant run
How can I do :C

Related

Webpage is referencing the wrong path. What do I need to do to get it to reference the correct path

I have a gif file in a folder called imgs. When I load my HTML file I get the following error:
http://localhost:63342/AllFours/css/imgs/cardback.gif Failed to load resource: the server responded with a status of 404 (Not Found).
This is the reference in my CSS file: background-image: url("imgs/cardback.gif");
This is an image of my folder:
Assuming your CSS file is on ~/AllFours/css/ and your imgs folder is on ~/AllFours/imgs/ use this to get an image:
url("../imgs/cardback.gif")

Seam 2.0.3.CR1 xcss file not getting picked up

I have an example Seam project that I am working with. I am trying to add a xcss file which I have added to the project under the resources folder org/jboss/seam/ui/richfaces/styles.xcss , I have included the following line in the template.xhtml file :
<a:loadStyle src="resource:///org/jboss/seam/ui/richfaces/styles.xcss"/>
but am confronted with the following exception :
org.ajax4jsf.resource.ResourceNotFoundException: Static resource not found for path /org/jboss/seam/ui/richfaces/styles.xcss
what am I missing?

Can't Delete file with File.Delete(path)

I'm unable to delete file with this command ..
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path
Im getting the above error ..
However Im able to download file with the very same path..
Additional Details: I've have File path saved in the DataBase..
and files are in the ~\Upload\ folder ..
Path like this "~\Upload\ folder" are virtual paths. You need to convert them to physical path to delete them.
If you are in web context then use the following code to get physical path and then delete them.
var physicalPath = HttpContext.Current.Server.MapPath("~/Upload/folder/file.html"); //to get the physical path
File.Delete(physicalPath);
Ensure that you are escaping any backslashes/forward, and just generally check that your path is complete with no small errors.
Failing that make sure your program has the correct privileges to delete the file.
Sorry I can't be more specific but you have not shown your code.

"public://public://user-pictures does not exist" when trying to change user profile photo path

I'm trying to change the path for the user profile pictures in a Drupal 7 installation and I'm getting the following error:
The directory public://public://user-pictures does not exist or is not
writable.
The path that I'm entering is simply "user-profiles".
I tried resetting the variable stored in the database by using the value from a new installation:
UPDATE variable
SET value=0x733A313A2231223B
WHERE name = 'user_pictures';
The update was successful but the problem remained.
Does anybody know how to correct this or where this value is stored in the database?
Thanks
user_pictures is a boolean variable, you're probably looking for user_picture_path.
Since variable values are stored in serialised PHP arrays it'll be much easier to update that path using the API:
variable_set('user_picture_path', 'user-profiles');
Similar to Clive answer, you can use drush from the command line :
drush vset user_picture_path your_path
I got the same error and am able to solve the issue.
“public://public://user-pictures does not exist” when trying to change user profile photo path."
What is did: Navigated to mysite.com/admin/config/people/accounts
in 'Picture directory' field default value was 'pictures', i have changed the directory name to my custom directory name 'prof_images' and now when i try to save the settings, i started getting the above error. I have cross checked the Directory name and permission but everything was fine.
How i solved the issue:
Navigated to Drupal core modules folder /modules/user and commented the following lines:
Blockquote
if (!file_prepare_directory($picture_path, FILE_CREATE_DIRECTORY)) {
form_set_error('user_picture_path', t('The directory %directory does not exist or is not writable.', array('%directory' => $picture_path)));
watchdog('file system', 'The directory %directory does not exist or is not writable.', array('%directory' => $picture_path), WATCHDOG_ERROR);
}
Blockquote
After clearing the cache, everything went cool.
Navigated to mysite.com/admin/config/people/accounts and set 'prof_images' as my user image directory and saved the settings. This time my settings are saved without any problem.
Then uncommented the above lines in the user module and everything worked as usual.
Hope this will help someone.
Thanks

convert .WAR for auto deploy in karaf/servicemix

I've got very simple .WAR containing example servlet. I'm able to deploy it in servicemix using the following command:
osgi:install file:///home/seiho/apache-servicemix-4.4.2/deploy/TestServlet.war?Bundle-SymbolicName=TestServlet&Webapp-Context=/TestServlet
And then see it in my browser. But only with full path to a file, e.g.: localhost:8080/TestServlet/index.html or localhost:8080/TestServlet/TestServlet (my servlet is TestServlet class).
I'd like to launch the index.html page automatically after entering: localhost:8080/TestServlet
how to do it?
MORE IMPORTANT
I need a way to convert the .WAR file or servlet project (I've got the sources) so that new .WAR file can be auto-deployed by copying it to $SERVICEMIX_HOME/deploy directory.
I've tried editing the MANIFEST.MF file, but with no success. Probably I'm doing something wrong.
Thanks for any advice/help.
To be recognised as a wab, you need to add a context path header to your manifest:
Web-ContextPath: TestServlet
It's working now! I was doing my MANIFEST.MF according to this page: http://team.ops4j.org/wiki/display/ops4j/Pax+Web+Extender+-+War+-+OSGi-fy
The problem was that for some reason "Bundle-Version: 1.0" line was required as opposed to optional as stated on that page.
Honestly, just adding the Bundle-Version fix-it.
I knew it was something wrong with the MANIFEST.MF and after Holly Cummins' question I played with it a bit more. Thanks Holly.
I still can't do anything with the manual site launching (have to manually enter the index.html).
http://localhost:8080/TestServlet/ gives me this:
HTTP ERROR 404
Problem accessing /TestServlet/. Reason:
Not Found
Powered by Jetty://
http://localhost:8080/TestServlet/index.html gives me proper site.

Resources