|
See my edited post
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi all,
when iam running a web application hosted on a server it gives an error 'Security Exception',what will be the problem with the application.
Can abybody give a solution..
Thanks Advance
|
|
|
|
|
reogeo2008 wrote: when iam running a web application hosted on a server it gives an error 'Security Exception',what will be the problem with the application.
It's trying to do something that the user account that the code is running under doesn't have permission to do.
reogeo2008 wrote: Can abybody give a solution..
Here are some possible solutions:
1. Don't do it.
2. Change the permissions for the user account.
3. Use a different user account for the application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi,
I have a flash object on the root directory of my website. I use it to do multiple uploads on one of my site pages. The site is protected with forms authentication but I just found out that if a user (not logged) enters the complete path of the flash object i.e. http://someserver/myflashobject.swf, he will be able to see the object and use it! in my case it's not a big deal since the page that usually displays the object also sets some javascript event handlers and uses some session parameters, which won't be available here, so no file will actually be uploaded but I was quite astonished that the user wasn't requested to login to access the flash object.
does anybody know why the flash is accessible directly without reverting to the login page?
is there a special configuration for the web site in web.config to stop people accessing the flash object directly?
Thanks
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
|
|
|
|
|
You would get the same issue with a JPG or GIF image, or Word doc or whatever... if you want to protect such files you must tell the webserver to handle requests for them, and build your own HttpHandler to deal with them.
Try Googling something along the lines of "httphandler protect files"... however, you will need access to the webserver as well (or at least get the server admin people to configure IIS as needed.) The webserver needs to be told which types of files to let .NET deal with and which to just farm out when requeted - by default it will deal with .aspx pages and the like, but not .swf etc...
|
|
|
|
|
i've copy/paste -ed some text from ms Word to Visual web developer and it automaticaly added tags&co for me , but when i build it a get an enormous number of errors , from the lines that were added , like :
Warning 6 Unrecognized namespace 'o'.
Error 7 Validation (CSS 2.0): 'Courier' is not a known CSS property name.
Error 416 Unexpected character sequence. Expected a property name for the "<property> : <value>" declaration.
Error 857 Validation (CSS 2.0): 'mso-no-proof' is not a known CSS property name.
am i missing any reference for anything ?
|
|
|
|
|
You cannot/should not copy/paste directly from Word to an HTML page - Word has it's own way of formatting that is different from HTML and CSS - as you can see, from your own example, 'mso-no-proof' is not a known CSS property name...
Just copy plain text, and format that within VWD.
You could "Save as HTML" from Word and use that but personally I wouldn't recommend it - look at the source code that Word generates thus - ugh! Bloatware par excellance!
|
|
|
|
|
i see.. but it gets really annoying to do all the spacing again (specially when i try co paste code lines that i want to be organised as spaced code lines in my html) i tryed to copy it from a notebook file , but it does not come with all the spacing , as word does ..What else can i do ?
|
|
|
|
|
Is it actual code you are trying to paste, or just text to appear on the web page?
If its actual code just press CTRL+K+D and it will reformat for you.
If it is just text to display on a web page then I would copy from Word to Notepad and Notepad to the web page - that will keep spaces but you will probably have to put your own tags back in.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i'm trying to paste code to appear in the web page , like a tutorial . i've tryed to paste it in word ->notepad->web developer , but i get it like class Class1{public static ... no space , no new line , no nothing
|
|
|
|
|
There is no easy solution I'm afraid. Welcome to the world of the web
Bob
Ashfield Consultants Ltd
|
|
|
|
|
oh i see..
Still , you said "no easy solution" and i'm ready to take the hard way
I even want my web page to be able to recognise code tags from the user's posts , like a forum does .. i've been googling it but yet no result . What can i do ?
(excuse me for being such a noob in web programming , i've only dealed with desktop applications since now)
|
|
|
|
|
TerRO_GirL wrote: I even want my web page to be able to recognise code tags from the user's post
This is no different to the way you would do it in a desktop app - kee a list of key words and scan for them.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
And then do all the spacing myself? That sounds like a lot of hard work..
|
|
|
|
|
Thats programming for you - 5% insiration, 95% persperation
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Good one ! ) i recall someone telling me that once..i think my math teacher in highschool
Thanks for everything!
|
|
|
|
|
You're welcome.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi
while generating Report i am getting an exception"Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))". Please help by providing some info how to solve it.
|
|
|
|
|
Without seeing any of the code that triggers this, it will be next to impossible to help.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
which is the latest version a)Ajax
b)Atlas
|
|
|
|
|
Ajax[^] is a technique that Atlas uses - there is no "version" of Ajax per se.
|
|
|
|
|
You obviously have no idea what AJAX is, so buy a book like AJAX in Action and learn how to use your tools.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
I think you are a Fresher. better buy a book related to Ajax and start reading it and practice it.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Hello Friends
I am having two radiobuttonlists created dynamically
What i need is that when ever user checks a radiobutton in list1 then if any rbtn is checked in the list2 it has to be reset ;
If any one knows this then please do let me know
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
HI Friends,
I got stuck while using Repeater within repeater.
The problem is, I am binding fields using Eval() and now I want to compare
field of outer Repeater with field of inner repeater. Can we access that outer field and can we use condition with Eval.
any code sample will be helpful.
thanking you in advance
|
|
|
|