Programming :: [C#] Monodevelop Acces To The Path Is Denied?
May 29, 2011
i'm trying to run some code i had written a couple of weeks ago in windows :$, the program has to create and copy some files and when i try to run this code in monodevelop this error:Unhandled Exception: System.UnauthorizedAccessException:Access to the path '/tmp' is denied.i've tried to change the path where i know i have read/write permissions but it doesn't seem to work, the code was originally written to create a file in the Temp folder in windows.
View 1 Replies
ADVERTISEMENT
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Aug 13, 2010
Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?
like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com
View 7 Replies
View Related
Feb 19, 2011
I made a little applicaton in MonoDevelopit works fine and does what it's supposed to when I run it inside of MonoDevelop itself.butwhen I try running the output exe file from either the debug or release folders it just won't do anything...s is because my system assorts exe's with wine or is it something else?I can't really figure it out...and now we're at it is there a way for me to change the output format in MonoDevelop??? I pretty much just got it
View 2 Replies
View Related
Jun 30, 2011
I have tried a few times now with sbopkg but I cannot get monodevelop installed.
All the dependencies install and compile correctly but during the compile of monodevelop it keeps bombing out.
This is on slackware 13.37 32bit
This is the error:
Code:
View 2 Replies
View Related
Feb 26, 2010
I am brand new to openSUSE (coming from Fedora then Kubuntu then Linux Mint) and I must say I am very impressed. Unfortunately I am also a C# developer and I need Mono (and more specifically MonoDevelop) to function correctly. I installed MonoDevelop from YaST and started with the simple "Hello World" command line project that is included by default. I then added Tarball packaging to the solution and attempted to build the package. It spit out the following error:
"Package creation failed. Object reference not set to an instance of an object"
I then tried double clicking on the Tarball package in the solution and it gave me an Unhandled Exception error dialog with a stack trace. Does anyone know what could be causing this problem? It's as if I am missing a required package or something. I have tried to install automake but that didn't change anything.
View 7 Replies
View Related
Oct 9, 2010
I have just installed the package monodevelop on Ubuntu 10.4 and wanted to try it out.I'm a long-time .NET developer using Visual Studio 2005/2008 on Windows so I'm familiar with the concepts.I created a new Gtk# project in MonoDevelop, but the empty project already won't compile because almost all referenced assemblies are missing. Here's the build error messages:
Warning: Die Referenz 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' ist ungltig fr das Ziel-Framework des Projekts. (test1)
Warning: Die Referenz 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' ist ungltig fr das Ziel-Framework des Projekts. (test1)
Warning: Die Referenz 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' ist ungltig fr das Ziel-Framework des Projekts. (test1)
[Code]...
View 4 Replies
View Related
Jun 25, 2010
I have a project built on Silverlight 2.0. I installed Fedora 13 (KDE) a few days ago since I'd like to brush my Linux skills after a long Windows-only time.I installed the monodevelop package and it's dependencies. But while building this project I got the following error:
Code:
Error: Framework 'Moonlight / Silverlight 2.0' not installed.
But I can't find a Moonlight package in PackageKit. Does one exists? Should I download it from Mono Project and build it manually?
View 9 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Feb 19, 2011
I have thousands files in thousands subfolders. All subfolders are named differently, but all files named like:
I have to replace "AAA_000" with the path of the file.
For example if I have a file AAA_000_001.tif in Foled/sub1/sub2, I have to rename AAA_000_001.tif to Foled/sub1/sub2_001.tif (or Folder_sub1_sub2_001.tif)
So far I have this script:
It can replace all AAA of all files in all subfolders with BBB, but I did not find a way to replace it with the path.
View 6 Replies
View Related
Jul 19, 2010
I've been dabbling in IDL lately, and it seems useful enough, but occasionally I come across a problem like this: I'm trying to call an IDL procedure from within an IDL script which is called from a .csh script. (Don't ask, trust me, you don't want to know.) The IDL procedure may or may not be in the same directory as the .csh, so I'm calling it by it's full path: /home/ic/rad_sim However, all IDL will do is give me a syntax error and tell me ic is an undefined variable. Putting ic in double quotes makes the undefined variable error go away, but it still reports a syntax error.
View 13 Replies
View Related
Jun 8, 2010
I'm the server guy which is why I don't know this, but were staging a new webserver and we use some custom perl scripts and as were moving the site over for testing, apache is blowing a perl error;Can't locate web.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/mcp/htdocs/cgi-bin/newgraph.gif line 11.,Now I can copy that file local, but there are a bunch of things, so the question is how do you globally add a folder to the perl search path
View 1 Replies
View Related
Apr 2, 2009
I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program. The point is that for the compiler to run I need to point out every time where the bin is located, as that:
$ /home/threader/kinetic/bin/qmake -project
I have tried the following, but it still doesn't work:
# script
#-----------------------------------------------------------#
# /etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler
[code]....
View 5 Replies
View Related
May 5, 2010
I'm using bash scripting to find any file that matches a path governed by the following regular expression:
"(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
to match files like:
monthly.9/home/user1/.mailbox/l23131564
nightly.15/home/user2/.mailbox/cur/6546213
I've tried:
Code:
myRegex="(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
find ./ -regextype posix-egrep -regex $myRegex
and it just spins and never gives me an answer, even though the file structure isn't that big.
View 8 Replies
View Related
Jul 30, 2010
I want to share file locations with pc users (i'm a mac user). problem is: mac uses fslash, while pc files are indicated with baskslashes. I'm looking for a automation/plugin/shortcut/... to change them quick. I use paths a lot and share them with pc users, so manually it's to time consuming.
View 2 Replies
View Related
Oct 28, 2010
Is there a way to get the full path of a file in C? I have a method that accepts a file name as an argument and is supposed to read the content of the file. The file name might include "../" so this might lead to accessing files outside of the current directory. I tried to use fstat but I could not figure out how to get the full path.
[code]...
View 3 Replies
View Related
Jun 30, 2010
I'm still going through "Agile Web Development with Rails" (Beta version), and I'm confused as to why some code in the book is not working for me. Following their example code in the book, I created code like so:
Code:
$ rails demo
# ...
$ cd demo/
$ script/generate controller Say index hello goodbye
exists app/controllers/
[code]...
After starting the server, I can view the index view and the other views just fine. But then I have trouble if I add this code to any of the view html templates:
Code:
<p><%= link_to "Hello", say_hello_path %></p>
I'm told this is supposed to generate a link to the say/hello view. But instead I get an error message like so:
Code:
undefined local variable or method `say_hello_path' for #<ActionView::Base:0xb6ce3090>
If I edit it to
Code:
<p><%= link_to "Hello", Say_hello_path %></p>
then I get
Code:
uninitialized constant ActionView::Base::CompiledTemplates::Say_hello_path
But I haven't noticed anything in the book so far indicating that I am supposed to initialize these constants or how I am supposed to do it.
View 1 Replies
View Related
May 11, 2011
I'm fighting my way through JAVA. But have hit another wall. Basically I need to to set paths in java so it can set/read files/director for Linux,Mac and windows.
The tutorials I'm using says to do this through the FileSystems class eg
Code:
However this reports it is missing, so a look on line says I need the headers so I set them with
Code:
This gives the following error
This has me totally confused as the tutorial shows this and checking online shows this, do I need to link in libraries or something like that?
I'm using the latest Ubuntu 11.04 and netbeans.
View 4 Replies
View Related
Jun 8, 2010
I have three partitions. One for each: Windows, Debian and my files. I wanted a partition available in all systems, so I created FAT32 and mounted it as /data and drive D. In linux I created symlinks in my /home folder to /data/documents/xxx/xxx. I wanted to save my projects on that partition, but in every IDE I tried I get the permission denied error.
Screenshot
What should I do to make /data writable for IDEs? As normal user I have full access to it.
View 9 Replies
View Related
Jul 15, 2010
I am trying to execute executable files in bash without adding ./ I know there must be an alias to add in .bashrc, that must be something like alias PATH=$PATH:. But this seems not to be working.
View 1 Replies
View Related
Jul 19, 2011
Is there any API to get partition name based on file path in C on Linux OS?
View 1 Replies
View Related
Apr 17, 2009
I'm trying to pass a path as a string to an array, but its evaluating it as a command instead. I want to take the literal string "/mnt/accounts/user/temp/*.jpg" and assign it to an array{1}, but when i echo the array variable, it displays it as
pic1.jpg
pic2.jpg
pic3.jpg
[code]....
I just want it to be the actual text "/mnt/accounts/user/temp/*.jpg" which i will be combining with other text to create a longer path elsewhere in the code.
View 5 Replies
View Related
Feb 5, 2010
We have a custom app that runs on boot on some older hardware running DSL linux, and their startup manager was quite simple. We purchased some newer Asus eeebox's which run xandros and things are quite stable and run nice with 1 exception.The application only runs from the root (/) location. This box auto logs in as 'user' and there is a /home/user/.kde/Autostart folder where you can stick scripts to run at boot. So I have a start.sh script, and with little bash programming tried things such as;
sudo cd /
sudo /startapp.pl
but the errors start spewing with the basic;can't find data/xyz as it's looking in the local.I thought there was a basic cwd (change working directory) but everything I try just forces the run from that location.Any ideas or suggestions are appreciated, but things like can you change the code, etc. can't be done, so it must be a programming thing. The only other thought I had but not sure, can you do a cronjob with @boot or something, that when the box starts, it can run this job as root and fire off?
View 3 Replies
View Related
Apr 11, 2009
I am programming in bash and really stuck finding directory names. I have a script to find all the .php files on my / partition which will return the whole path. Is there a way to print directory hierarchy with all those values leaving out the forward slashes.
View 10 Replies
View Related
Jul 5, 2010
For gcc, it seems that there are multiple include paths like /usr/include and /usr/src/linux/include. How do I check the current include path for gcc via command line? How do I edit it?
What about for cc?
View 9 Replies
View Related
Mar 13, 2009
im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is:
/root/workspace/makedemo/header
my makefile is in the path:/root/workspace/makedemo my makefile was like this:
Code:
HEADERS = $(shell /root/workspace/makedemo/header ls *.h)
SOURCES = $(shell /root/workspace/source ls *.cpp)
COMPILERFLAGS = -W -Wall
DEBUGFLAGS = -g
[code].....
im sure that i've given the correct path but it is showing errors like this:
[root@localhost makedemo]# make
/bin/sh: /root/workspace/source: is a directory
/bin/sh: /root/workspace/source: is a directory
g++ -W -Wall -I. -o output
g++: no input files
make: *** [output] Error 1
View 4 Replies
View Related
Jul 25, 2011
I am assigning a file path to a variable like
$1 means it should accept some file name from cmd prompt but in my case its not working.
View 1 Replies
View Related
Sep 1, 2009
I have the following path wher i want to replace forward slashes with back slashes using sed path=/temp/file.tar
I am using the following but it's not working.
View 3 Replies
View Related
Jan 30, 2011
wrote a simple script that will Parse Secure log find the failed login attempts, and strip out the IP Address. Then take those address and create a file listing them. Thx to colucix for the awk understanding which is then fed into Nmap grabbing OS and Ports that are open on that remote machine -> output is shoved threw Sed only grabbing the Characteristics I felt were need. The output from that is piped into another Directory called Nmap/ and files are created with the output and ipaddress for the file name;
Then that same list that was fed into Nmap is fed into Whois and output is shoved into SED striping out the non-sense getting only valuable info. Those are then put into the Whois/ with the file names being the IP Address and whois info dumped into them.There are lots of paths I can go to continue the chain with all this info... But for now it just merges the Whois Info and Nmap Info into a Master File which is then fed to ssmtp to send an email with the Info to whatever address you like.Put it in a cron job, and it executes every night at 11pm with the secure log being rotated out at 1105pm. Cycle is then repeated. Like I said this is really my first Bash Script.
I have done Batch script with, remote printer mappings, and default printer setups. But thats here nor thereWhat I am really looking for since this script is functional, is your criticism and your technique on another way of accomplishing the objective your critiquing. Just trying to build my skills and look at this process from another perspective.
Code:
echo 'Grabbing the IPs'
# Grabbing IP's from secure log, putting them in the ip array, and then spiting out the
[code]....
View 10 Replies
View Related
Feb 23, 2010
My /usr/lib/cgi-bin/script.cgi must create a directory in my /home/myname directory, but in firefox appears:Quote:Software error:Cannot mkdir: Permission denied at /usr/lib/cgi-bin/script.cgi line 17.For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error
View 3 Replies
View Related