CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/11/2003 2:58:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 59 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
Vintious
Asp.Net User
AspNetHostingPermission problem8/11/2003 2:58:03 PM

0/0

Here's my problem. I have a project located on a web server. I shared the virtual directory so that I could work on the project from my machine elsewhere in the room.

I added a reference to the Microsoft IE WebControls dll. It copied over the dll to the bin directory, which is good :P

I added the TreeView and ToolBar objects to a page. When I open the project and the page from within Visual Studio on the web server, it shows the controls as little grey boxes and descriptions and such.

However, when I open the project from my machine, it shows the controls as the "Error Creating Control" box. When I move my mouse over to see what the big deal is, it tells me:


Parser Error: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.


Now, I could live with this because when I try to view in browser, it works fine. However, Visual Studio seems to think it's smart, and removes the event handlers for those objects when I open the page on my machine. So evertime I open the project from my machine, I have to manually add the event handlers in the code-behind file.

I have even gone as far as giving Everyone full control over the Share, but still no success.

Any ideas?
stevemc
Asp.Net User
Re: AspNetHostingPermission problem8/12/2003 1:37:30 AM

0/0

Are you opening the project using file protocol with a UNC like this?

\\servername\sharename\project
If so you may need to go to use the .NET Configuration tool on your machine and adjust zone security for your local internet zone. I'm not certain on this but it's an area to look at.

Or are you going to Visual Studio and using File, Open, Project from web?
In order to effectively work in this way you must have administrative access to the server, be a member of the Debugger user group, and have the remote components of VS.net or VS.net installed on the server.
Vintious
Asp.Net User
Re: AspNetHostingPermission problem8/12/2003 2:17:49 PM

0/0

I basically shared the vitual directory, and then simply opened the project by browing to it via Windows Explorer.

e.g. \\webname\projectfolder\project.csproj
stevemc
Asp.Net User
Re: AspNetHostingPermission problem8/12/2003 2:48:09 PM

0/0

You are better off using File Open, Project from web. That way you can do remote debugging as well.
Vintious
Asp.Net User
Re: AspNetHostingPermission problem8/12/2003 3:19:00 PM

0/0

It didn't make any difference.

My domain user is a part of the local admins on the web server.

When I log in as a domain admin, however, it runs fine.
stevemc
Asp.Net User
Re: AspNetHostingPermission problem8/12/2003 4:26:49 PM

0/0

Then I am back to the suggestion I made previously.

You may need to go to use the .NET Configuration tool on your machine and adjust zone security for your local internet zone. I'm not certain on this but it's an area to look at.

I took a .net framework course a while back from Jeffery Richter. He showed an example of running a console app from an executable on the local drive, then running it from a UNC. The app failed from the UNC because the permission the app was trying to use was not given to apps running from a UNC. The solution was to use the .NET configuration tool. I don't remember exactly how it was used but I hope this points you in the right direction.
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003

Web:
AspNetHostingPermission problem - ASP.NET Forums AspNetHostingPermission problem. Last post 08-12-2003 12:30 PM by stevemc. 5 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Basic Date Picker Forums - AspNetHostingPermission error I don't see anything about an AspNetHostingPermission error. I've tried the Framework configuration tool on both the server and my local ...
System.Web.AspNetHostingPermission Failed Error - .NET 2.0 ... Web.AspNetHostingPermission blah blah blah Failed error. So of course, I turn to Google to try to solve the problem. Well I came up with tons of people who ...
MSDN MSBuild ASPNETCompiler Error - System.Web ... ASPNETCompiler Error - System.Web.AspNetHostingPermission, System. ... I have 2 on one server- and one I could build no problem, but on the other I am now ...
System.Web.AspNetHostingPermission error - Community Server AspNetHostingPermission, System, Version=2.0.0.0, ... I experienced a similiar problem, when debugging one of my Visual Studio 2005 web ...
Security Exception, AspNetHostingPermission Error … Security Exception, AspNetHostingPermission Error … Problem. You get this error when running your application:. Security Exception ...
inetserver iis ASP.NET 2 - System.Web.AspNetHostingPermission ASP.NET 2 - System.Web.AspNetHostingPermission - Slint. 02-Apr-07 04:56:26. Thanks Steve Schofield Your solution solved the problem. ...
MS CRM 3.0 + HttpModule + AspNetHostingPermission in Reporting ... Mar 23, 2006 ... MS CRM 3.0 + HttpModule + AspNetHostingPermission in Reporting Services. Yesterday I encountered an interesting problem on a MS CRM 3.0 ...
Request for the permission of type System.Web ... AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, ... If anyone has encountered this problem and knows a workaround for it ...
System.Web.AspNetHostingPermission when Accessing Network or ... Does anyone have any suggestions for this problem at devtime? # Error 'System. Web.AspNetHostingPermission' only for AjaxControlToolkit.dll ...




Search This Site:










servertime at wh4l vs my location

control draw issues with extension of the page class ? ?

how to build login control ?

listbox add and remove functions

use adrotator for text only ads?

checking is framework is installed ?

retrieving id from a custom control

collection property and viewstate

custom control and visual studio design support

custom calendar control

bug ????

insert value in a user control with vs studio .net - urgent!

event firing problem

custom web control - calendar control.........need help.....

viewstate and multiple custom server controls on a page.... will key's be unique?

beginner new help finding a website host

viewstate in templated usercontrol

reload usercontrols and keeping viewstate

databound dropdownlists?

free hosting

composite control design time behavior

can you control the formatting of the server control tags

visual studio annotations, how to create?

can anyone comment

500 errors with www.webhost4life.com, anybody?

uploading ms sql databases to "1 and 1" webhost

help! controls problem

why is processpostdata called twice?

datagridcolumncollection in aspx source

how to build a control that runs on the client side?

  Privacy | Contact Us
All Times Are GMT