CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 2/4/2008 6:28:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 45 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
.NET
Asp.Net User
Can't view project using Visual Studio 20082/4/2008 6:28:51 PM

0

Hi,

I've recently installed Visual Studio 2008 and using VS I've opened a "website" folder on my computer so I can make some amends.

The location of the folder on my computer is P:\Castle Point Business Forum\Website\cpbusinessforum.co.uk\

But I've noticed that there is a problem viewing files in a browser using VS (e.g. it's own variation of localhost), where by all my fully functioning websites display the below error message. Can anyone please advise what might be causing this problem and how to resolve it. There is nothing special happening in my application, it doesn't use a database and is a straight forward simple ASP.NET 3.5 project?

Many thanks.


Server Error in '/cpbusinessforum.co.uk' 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.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +41
   System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +176
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +325
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


"Life is only a dream and we are the imagination of ourselves."
by Bill Hicks
HosamKamel
Asp.Net User
Re: Can't view project using Visual Studio 20082/4/2008 11:26:15 PM

0

Try to set the trust level

<trust level="Full" originUrl="" />


Hosam Kamel



Remember to click on Mark as answer on the post that helped you
Mikhail Arkhipo
Asp.Net User
Re: Can't view project using Visual Studio 20082/5/2008 3:06:15 AM

0

It looks like P: is a network drive. Network locations are not considered trusted in .NET. Did the project work before? Generally you can adjust security policy using caspol.exe utility.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
.NET
Asp.Net User
Re: Can't view project using Visual Studio 20082/5/2008 7:59:46 AM

0

Hi Hosam,

This didn't work I'm afraid.

I tried what you suggested but the same error message appeared.

The below is the part of my web.config which has been updated (maybe I added the trust level to wrong section - maybe it should sit within a <location><system.web> tag rather than within the main <system.web>...

....<connectionStrings/>

<system.web>
      <
trust level="Full" originUrl="" />

      <compilation debug="false">

      <assemblies>....



 


"Life is only a dream and we are the imagination of ourselves."
by Bill Hicks
.NET
Asp.Net User
Re: Can't view project using Visual Studio 20082/5/2008 8:04:45 AM

0

Hi Mikhail,

Thanks for the reply, I'll see if I can download caspol.exe and change the trust settings.

You are correct that this is a network drive, as the hundreds of projects I have wouldn't all fit on my PC's hard drive so I have to resort to storing my projects once completed on a network drive at my office and it's only now that I've had to go back to update a project that I thought I would just run VS and point to the relevant folder (saves me creating a new virtual directory in IIS and copying the folder/files over to my PC etc etc).


"Life is only a dream and we are the imagination of ourselves."
by Bill Hicks
rjcox
Asp.Net User
Re: Can't view project using Visual Studio 20082/5/2008 8:28:46 AM

0

.NET:
I'll see if I can download caspol.exe
 

CASPPOL.EXE comes with the .NET install. It is in %WinDir%\Microsoft.NET\Framework\v2.0.50727\

For development purposes you should be using a command prompt with the frame folder included in its PATH. The VS Command Prompt shortcut on the start menu will be correctly set up.


Richard
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
No Stress Tech Guide to Crystal Reports Basic for Visual Studio 2008 for Beginners Authors: Indera Murphy, Pages: 416, Published: 2008
Visual Studio 2008 All-In-One Desk Reference For Dummies Authors: Rick Leinecker, Vanessa L. Williams, Pages: 816, Published: 2008
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Head First C# Authors: Andrew Stellman, Jennifer Greene, Pages: 738, Published: 2007
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Visual Basic 2008 For Dummies Authors: Bill Sempf, Pages: 360, Published: 2008
Web Development, Silverlight, and ASP. NET AJAX: From Novice to Professional Authors: Laurence Moroney, Pages: 427, Published: 2008

Web:
Can't view project using Visual Studio 2008 - ASP.NET Forums I've recently installed Visual Studio 2008 and using VS I've opened a "website" folder on my computer so I can make some amends. ...
CodeProject: Using Workflow Foundation and Visual Studio 2008 for ... In my Visual Studio 2008, I don't have the Workflow templates for a new project type. Can't seem to find the download for the WF extensions for visual ...
Remote debugging ASP.NET applications using Visual Studio 2008 ... May 23, 2008 ... NET application project or a Visual Studio 2005 Web Application project ... running and you aren't sure which to pick you can run "cscript ...
Using Visual Studio 2008 Aug 20, 2007 ... re: Using Visual Studio 2008 Posted by Laurent on 8/28/2007 8:13 AM ... we didn' t wait on VS2008 to debug JavaScript, thankfully :-) Laurent ...
Jenny profile from United States remove recent projects from visual studio 2005 start page .... using team explorer with visual studio 2008 beta 2 ... Three Things I Can't Live Without: ...
Huy7057's User Page | VIDEO CODE ZONE - your source for music ... action view visual studio 2008 visual studio 2008 dvd iso download .... web host i can use with visual studio visual studio 2005 convert project to use ajax ...
MSDN Visual Basic IDE Can't open project. You can't open a project as a single file (that will only look at that ... Suggest using Visual Studio 2008. Visual Basic 2008 Express Edition Download ...
NUnit vs Visual Studio 2008's Test Projects for Unit Testing ... Quickly running a test to see if you didn't break something can take too long. .... How can I run Test projects with Visual Studio 2008 Standard Edition? ...
support.sourcegear.com • View topic - Can't open Visual Studio ... Re: Can't open Visual Studio 2005 solution after Branch/Share .... problematic project file and perform an individual Get on that file using ...
Temp Variable: Installing freeglut on Visual Studio 2008 *Visual Studio 2008 *OpenGL *freeglut Assuming you have VS2008 installed, the first step then is ... This is because it can't see the freeglut header files. ...

Videos:
LEARN TO PROGRAM IN VB.NET 2008 LESSEN1 CURRENT TIME ON FORM Gymjunnky.com Welcomes you to VB.NET 2008 this is tutorial 1 and my name is Gym_ In this tutorial I'm going to show you how to add the current ...
Programming a robotron 2084 clone in C# I've been writing a robotron 2084 clone in C# .NET and Dark GDK (available from www.thegamecreators.com) - I'm going to try and show you progress ...
Chris Pirillo in a Box! Updated Version here: http://tinyurl.com/6c7lyv Please use the updated one. ;) Many more features... Are you a fan of Chris Pirillo? If so ...
Programming Robotron in C# part 4 I'm sure you can see what's been added here! Yay! We have a player! Surprisingly the player movement and firing code was easy as pie to ...
Crazy drunk dancer DVLH Crazy drunk dancer. Zach V http://www.lukehadley.com "Creep" is the first single (not counting the Drill EP) released by the English rock ...






html view of .ascx and .aspx file in class library generate errors.

installing vs2008 upgrade from vs2005

connection between a datacontext and a query object

can't set configsource of compliation section in web.config in vs008

panel or row visible

one vs2008 license for both laptop and desktop?

upgrading from 2005...

visualstudio orcas beta /// the namespace 'resources' error

debugging file io in c++

intellisense in aspx control properties

ws vs. wap and "edit and continue" feature

intellisense for pagemethods

what is the recommended way to deploy websites in vs2008?

change item positioning from relative to absolute in visual web developer 2008

performance

vs2008 standard edition remote debugging

connect to access database

vb2k8 import problem in asp.net page

debug --> exceptions window missing "user-unhandled"

lost javascript color coding and intellisense.

designer does not find css for theme when css file in subfolder

unit testing web application

source files not showing up in folder in solution explorer...

question about the "organize using" new feature

when is "ling to sql" available?

vs2008 installation/setup failed with return code: 1625

event binding from html designer source view

linq and mysql

migration question

vs2008 integration of css applied through themes

   
  Privacy | Contact Us
All Times Are GMT