|
Hello friends,
I got this security error in my application. What it means? What goes wrong and how to resolve it?
Any help will be appreciated..
|
|
|
|
|
No one Can help you without giving the error Details.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
sorry,
The error details are as given below.
Server Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +270
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +163
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +192
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
|
|
|
|
|
|
i want to add navigational menu to my website that appear on each page for navigation.i want to know , i should use frames for that or any thing else.
|
|
|
|
|
Frames, no. The most common thing nowadays is to use a DHTML menu, there are plenty available on the web.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how can i accomplish this task in asp.net
|
|
|
|
|
Hi
I am doing a project where i have problem with the requirement.
First,the requirement is to enter date format in mm/dd/yyyy format.
second requriment changed to allow date format in dd/mm/yyyy.
so,whatever may be the format.I want user to enter in any format but the code should be written in such a way that it accepts any format and changes to DateTime format of the database.
using asp.net with c# (it is recomended to use a web.config to achive this)
Please help me. its a issue.
i need more help
mallika
-- modified at 7:08 Friday 5th October, 2007
|
|
|
|
|
The database should not have a date time format, it should store date objects, not strings. Ideally, you would have a user setting that specifies the date format, and then enforces it, DateTime.TryParse has an overload that allows you to specify a format provider, and therefore, a format.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a web application and I want to avoid multiple users to login on the same application from one system at one time.
For example if a user logins in to an application, and if another user login to the site using single type of browser then the previous user should logout. I am not sure how to implement this but was thinking of using cookies..
could some one tell me the approach
Pavas
|
|
|
|
|
Yes, cookies would help, or you could check the IP of each person as they log in.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks! But how good idea is to have the IP address. If IP addresses are static then what will happen?
Pavas
|
|
|
|
|
Doesn't matter if they are static or not. In fact, static is usually better. But this doesn't matter. I am connected to the web right now. My IP is not static, I don't know my IP address. I do know it won't change until I log off and reconnect to the web. You're talking about someone using the same machine to log in twice. If they do that, the IP will be the same.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, makes sense..thanks!
Pavas
|
|
|
|
|
hi friends
i have one fileUpload control.
I want to upload file on browse button event when user select file from Open Dialog box.
Thanks In advance
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
can we select the area on windows application form through mouse at run time.
please help
Piyush Vardhan Singh
|
|
|
|
|
Why on earth would you ask that in the ASP.NET forum ?
Or do you mean in a web app ? Selected for what purpose ? You can't just drag out the mouse and have a bunch of controls go active, no. You have to write code for that sort of thing.
Your sig has changed, I just noticed, your company name and role is gone ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sorry for the wrong forum selection and i think u r happy to see my signature. if any buddy get happiness with my activity then its pleasure for me. but i want highlight that area which selected by the mouse on widows application form.
Piyush Vardhan Singh
|
|
|
|
|
Draw a rectangle with dot line on mouse click (x1,y1) to mouse leave (x2,y2).
and make visible true/false according to your requirement.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi,
I am using .Net 1.1 for my web application.
And my database server is SQL Server 2005.
My application is running fine, as i can login to it and also able to view pages. But when i open Order management(having 3K records) its give me error,
General Network Error. Check your network documentation
I have also searched many articles and tried following solutions but nothing working
- connectiontimeout = 0, max pool size = 7500/100, pooling = false
- SSL disabling enforce security false as mentioned in microsoft kb article.
And there's nothing any issue with hardware/firewall as my application's login and other forms are working fine(which use same database with same connection string)
Can any one please help me to solve this error?
With Regards,
Mayank Prajapati
MCP, MCTS .Net 2.0
|
|
|
|
|
May be you are fetching 3k records at one shot, try doing paging ?
|
|
|
|
|
hi all,
i am able to set maxlenth while typing the charecters in text box but unble to restrict the lenth while copy paste the text pls help me.
ThanksAndRegards,
Guru
-- modified at 2:15 Thursday 4th October, 2007
|
|
|
|
|
Hi friends.
I want to implement yahoo messanger in my appliaction.
like as www.mig33.com and www.ebuddy.com.
What I have to do to for this?
Thanks in Advance
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
First you need to Client library and server access configurations.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks parvej
If you have any link for this plz send me
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|