Question

Parser Error Message: Could not load type 'abbott_aspnet.Global'

Asked by: suporte_wgsystems

Im getting the following error message :

>>>>>>>>>>>>>>>>>>>>>>>>>
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'abbott_aspnet.Global'.
Source Error:
Line 1:  <%@ Application Codebehind="Global.asax.vb" Inherits="abbott_aspnet.Global" %>
Source File: \\cotia\c$\TesteProducao\global.asax    Line: 1

>>>>>>>>>>>>>>>>>>>>>>>>>
I get this only when I move the web project to another directory in another server..

I'll explain what exactly is going on..

I have created the web project in the local machine of development here on "c:/inetpub/wwwroot/SystemX/"
and I created a virtual directory in IIS to set to the directory...
Then I have selected  the "Copy Project" on the project to some settings:



I checked out the

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-05-18 at 07:37:42ID21428336
Tags

load

,

could

,

type

,

error

,

parser

Topic

Programming for ASP.NET

Participating Experts
3
Points
0
Comments
44

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. global.asax error on localhost
    Hi, I just rebuilt my localhost in VS.NET and I am now getting the following error on all .aspx files: ########################################## Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error ...
  2. Parser Error
    Can somebody tell me what this means... -------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error ...
  3. Parser Error
    I changed my project name from NewsToYou to News2You. It works fine on my local machine, but after I copied all my files including the "bin" to Visual Source Safe and tested on the test server. I got a Parser Error. "Could not load type 'NewsToYou.Global'&qu...
  4. Error in Global.asax
    I am getting an error message in "Global.asax" file. It says, ---------- Parser Error Message: Could not load type 'userFiles.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="userFiles.Global" %> -...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: RejojohnyPosted on 2005-05-18 at 07:57:39ID: 14027688

u will get this error if u haven't yet compiled/build the project .. build it using the menu Build->Build solution ...

 

by: suporte_wgsystemsPosted on 2005-05-18 at 08:00:25ID: 14027712

(Please ignore the source file mentioned "\\cotia\c$\TesteProducao\global.asax" it is: \\absd12\ProjectA/Production/SystemX
   .. For a mistake I submit the text)

Destination project folder:
http://localhost/ProjectPubArc/

Web Access Method:
File Share>>
Path:
c:\inetpub\wwwroot\ProjectPubArc\

Copy: Only files needed to run this application

Then I get the files inside the folder ProjectPubArc and move to a server in the same directory that I was building the project:
I copy the files inside the folder ProjectPubArc to:
c:/inetpub/wwwroot/SystemX\
and I set the virtual directory to http://localhost/SystemX/.

I got success in that.. but when I move the exactly folder that was running correctly to another HD :
"D:/ProjectA/Production/SystemX/"
the following error occurred...
Then I suspect that in the dll of the project is fixed the path.. like: "C:/inetpub/wwwroot/A.aspx...."..
And when I open the project dll in an editor.. I had the confirmation....
So how can I configure when I'm copying the project (Only files needed to run this application) to an dynamic path!? and not a fixed path like "x:/...."

Any question about it
I'm here to ask
Thanks

 

by: jetforcePosted on 2005-05-18 at 08:02:26ID: 14027736

It seems to me that it might be the Source File: \\cotia\c$\TesteProducao\global.asax , is \\cotia your test/development machine name? Try global.asax instead of \cotia\c$\TesteProducao\global.asax.

Jetforce

 

by: jetforcePosted on 2005-05-18 at 08:03:21ID: 14027745

Sorry,
 time typing issue

 

by: suporte_wgsystemsPosted on 2005-05-18 at 08:04:00ID: 14027754

Rejojohny,
Its was compiled right.

Like I said above.. I was running perfectly in one server the application.

 

by: jetforcePosted on 2005-05-18 at 08:06:15ID: 14027776

Is it a security issue? Is the D drive a network drive (it seems not from your posting)? Has the IUSR got access to that drive?

Jetforce

 

by: RejojohnyPosted on 2005-05-18 at 08:10:17ID: 14027822

i reason i said that was u get this error when the dll is missing .. so u r saying u have copied the dll from the bin directopry too??

 

by: RejojohnyPosted on 2005-05-18 at 08:13:04ID: 14027848

>>Then I suspect that in the dll of the project is fixed the path.. like: "C:/inetpub/wwwroot/A.aspx...."..
And when I open the project dll in an editor.. I had the confirmation....
what editor? I just copied an exiting application to a completely new directory and created a virtual directory of the same and it works fine ...

 

by: suporte_wgsystemsPosted on 2005-05-18 at 08:14:02ID: 14027859

Well Jetforce,

We had checked this and is not that. Because we have tested putting the permission to that drive to "All" and we are getting the same message error.

The problem is that.. the dll that we open have informations about fixed paths.. that do not exist any more.
I was reading about some articles and I think that the way of a solution in this case is fix something about the assemblies location.. when I compile the project.

 

by: suporte_wgsystemsPosted on 2005-05-18 at 08:24:31ID: 14027960

Rejojohny ,

When I enter on the \BIN directory of the project I have some dll files..
The dll file names do not interest to us.. so I'll put an example here:

abbott_aspnet.dll
abbott_aspnet.pdb
ADODB.dll
ControleMessageBox.dll  --->USER CONTROL
KeySortDropDownList.dll --->USER CONTROL

When I get a "open with Notepad" the abbott_aspnet.dll and abbott_aspnet.pdb I got some places in the text that have some paths that do not exist any more.. that are fixed.. like:

C:\Documents and Settings\cabecia\VSWebCache\COTIA\abbott_aspnet\obj\Debug\abbott_aspnet.pdb  

and C:\Inetpub\wwwroot\Abbott_ASPNET\CadPessoa.aspx.vb...etc..

Any question are welcome

 

by: RejojohnyPosted on 2005-05-18 at 22:59:29ID: 14033801

first of all u do not need the pdb file .. also when u compile the project to release it to production, u will need to change the configuration from "debug" to "release" .. this will create the dll for release .. but ur problem is not because of all this .. still u could give it a try .. so if u have seen the paths in the pdb file .. just ignore it .. I think it is the debug information .. where ur breakpoints for debuggin were etc ...

>>I got success in that.. but when I move the exactly folder that was running correctly to another HD :
"D:/ProjectA/Production/SystemX/"
So u created a virtual directory for this path too?

 

by: suporte_wgsystemsPosted on 2005-05-19 at 04:46:42ID: 14035262

Rejojohny ,
Yes, the virtual directory is created. I just change the path of the old virtual directory.

I'll try to compile the project using the config "release" and I'll tell if I get success or not! :)

 

by: RejojohnyPosted on 2005-05-19 at 05:05:16ID: 14035363

>>Yes, the virtual directory is created. I just change the path of the old virtual directory
From where? IIS console? y don't u create a new virtual directory and add the file to that folder and try whether it still gives an error ..

 

by: suporte_wgsystemsPosted on 2005-05-19 at 05:31:35ID: 14035542

One question...
What steps would I get to publish the project!?
Am I doing right?
To put the publishing files on the server..
First I create a new folder x and I create a new virtual directory in IIS to this folder x.
Then I just click in the project "Copy Project.." and I set the configuration:

Destination project folder:
http://localhost/x/

Web Access Method:
File Share>>
Path:
c:\inetpub\wwwroot\x\

Copy: Only files needed to run this application
 
And Finish..
I get all the entire folder x and I get them to the server that I want.
(The problem is.. I was putting on the Customer's server the exactly path that I was putting when I was "copying the project" -( http://localhost/x/ , c:\inetpub\wwwroot\x\) and now the customer have change the default location of production projects to
i.e.:
http://host/x/ ,  d:/ProjectA/Production/SystemX/
When they tell that... I just move the entire folder to
d:/ProjectA/Production/SystemX/ and I change the settings of the virtual directory to this new path.
Then when I call him in the browser.. come the error Could not load type '......Global'.

Maybe the cause is the way that I'm doing the "copy project" .. i dunno.
What u suggest?

 

by: suporte_wgsystemsPosted on 2005-05-19 at 05:33:33ID: 14035554

I tryed this.
I created a new virtual directory on IIS console and still getting this error

 

by: RejojohnyPosted on 2005-05-19 at 05:40:51ID: 14035615

instead of using the copy project option .. just manually copy the file to the new location ..
also verify that the d: drive is not a mapped drive ..

 

by: suporte_wgsystemsPosted on 2005-05-19 at 05:50:40ID: 14035703

"just manually copy the file to the new location "
But I dont want to put on the customer's server all the project files.. I want only the necessary files..
I checked and "D:" is another HD and not a mapped drive.

 

by: RejojohnyPosted on 2005-05-19 at 06:15:07ID: 14035923

>>I dont want to put on the customer's server all the project files
just copy the aspx, resx, images, asax, acsx, and dlls .. just confirm that the web.config and global.asax are present in the root ...

 

by: RejojohnyPosted on 2005-05-19 at 06:23:20ID: 14035995

i hope u have also verified that the dll file has indeed been copied to the destination directory .. what is the path? is it the bin directory? could u also other files like the web.config, global.asax etc in the destination folder ... could u post the directory structure of ur destination path ..
is it something like this ..
Root
      \Web.config
      \Global.asax
      \Bin\UrProjectdll.dll
      \Bin\OtherDllls .....
.......
aspx files
       \SomeOtherDirectory\aspx files  

 

by: RejojohnyPosted on 2005-05-19 at 06:31:58ID: 14036064

is ur project name "'abbott_aspnet" ? what is the root namespace given in project->project properties .. as another option .. just try deleting the dll from the \bin folder .. rebuilding the solution .. copying the latest dll to the production server ..

 

by: suporte_wgsystemsPosted on 2005-05-19 at 08:06:34ID: 14037081

And after copying the latest dll to the production server(/bin) should I copy to the bin directory too the dll's of my user controls ?

 

by: RejojohnyPosted on 2005-05-19 at 08:10:48ID: 14037124

not necessary .. but as we are currently trying everything, it would be better .. delete of all the files from the bin directory .. (hope that the references to the project to ur usercontrol are not from this directory) .. Do a build->Rebuild all .. all the dll should reapprear in the bin direcory .. copy all of them to the bin directory in the production server ... also u haven't confirmed the directory structure ...

 

by: suporte_wgsystemsPosted on 2005-05-19 at 08:37:46ID: 14037452

I'll confirm the directory structure.. just one more note..
The references to the project to my usercontrol are like that:

- References
      -mycontrol

The properties of mycontrol is:
copylocal = TRUE

So I have to set to False!?


 

by: suporte_wgsystemsPosted on 2005-05-19 at 10:42:16ID: 14038682

Sorry Rejojohny ,

I was mistaked....

"D:" is a mapped drive.

In this case what should I do?

 

by: RejojohnyPosted on 2005-05-21 at 22:47:41ID: 14053938

if it is mapped drive .. instead of giving the local directory as d:\.... give the unc path .. like \\machinename\path ....

 

by: suporte_wgsystemsPosted on 2005-05-24 at 13:47:18ID: 14072355

I did it and not work..
One clue that I have:

 http://support.microsoft.com/default.aspx?scid=kb;en-us;312311

I want to do what is on this article.. I dunno how... but I want to compile on demand..
Delete my global.asax and compile on demand..
There I was reading.. and its saying to add the Src attribute to each aspx in @ Page directive as follows: <%@ Page language="vb" Codebehind="SrcSample.aspx.vb"
AutoEventWireup="false" Inherits="SrcSample"
Src="SrcSample.aspx.vb"%>.

I have so many aspx pages to add manually the "src=..." in the @ Page directive..

Any suggestion!??
Thanks!
At least is more clear what I want.. I presume.

 

by: RejojohnyPosted on 2005-05-24 at 22:58:32ID: 14074954

adding the erc will need that u deploy evn ur .vb file .. there will also be a performance degredation ... the problem with the UNC path might be that there is not enough permission set on the directory .. y can't the path be a local path .. if the client insists on using the path on an other machine, then try giving permission to that the at directory to "everyone" with "full control" .. if that works .. then keep removing premissions until the minimum set of permissions are set and the site is working ... when the site is set for "anonymous acess" the security context under which ur application runs would be ASPNet user ..
another option is set
<identity impersonate="true" />
in the we.config file

this will ensure that the user IUR_Machine name is used for anonymous accesss .. if that is the user that the clients have set acceess rights to ...

 

by: suporte_wgsystemsPosted on 2005-05-25 at 06:13:34ID: 14076906

Hi Rejojohny!

I have inserted the <identity impersonate="true" /> on the web.config file and I have changed the permission directory to "everyone" with "full control"...
And I still getting this error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'abbott_aspnet.Global'.

Source Error:


Line 1:  <%@ Application Codebehind="Global.asax.vb" Inherits="abbott_aspnet.Global" %>

 

Source File: \\sampa\SAMPA_DISC\DadosWG\Temp\Caio\global.asax    Line: 1

The folder that I have changed the permission to everyone was the folder "Caio".

 

by: suporte_wgsystemsPosted on 2005-05-25 at 06:25:22ID: 14077005

I tried now to give permission to all the sampa_disc directory and the error changed!! =)
Its something about a user control that I'm using...
see below
>>>>>>

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'KeySortDropDownList'.

Source Error:


Line 223:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 224:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 225:                <add assembly="*"/>
Line 226:            </assemblies>
Line 227:
 

Source File: c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 225

Assembly Load Trace: The following information can be helpful to determine why the assembly 'KeySortDropDownList' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = KeySortDropDownList
 (Partial)
LOG: Appbase = file://sampa/SAMPA_DISC/DadosWG/Temp/Caio
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: KeySortDropDownList
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/producao/0b3f3296/7250c154/KeySortDropDownList.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/producao/0b3f3296/7250c154/KeySortDropDownList/KeySortDropDownList.DLL.
LOG: Attempting download of new URL file://sampa/SAMPA_DISC/DadosWG/Temp/Caio/bin/KeySortDropDownList.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: KeySortDropDownList, Version=1.0.1880.17428, Culture=neutral, PublicKeyToken=null

 

 

by: RejojohnyPosted on 2005-05-25 at 06:29:19ID: 14077040

hmm .. have never faced this type of a problem before with user controls .. is the user control present within the bin .. does the directory have enough permissions ..

 

by: suporte_wgsystemsPosted on 2005-05-25 at 06:51:12ID: 14077264

Well.. below -> the structure directory of BIN

/BIN
//abbott_aspnet.dll
//ADODB.dll
//ControleMessageBox.dll  ---> User Control
//KeySortDropDownList.dll ---> User Control

I'm giving full permission access to all the directory, now its impossible to be a error of permission.. i guess

I hope that the information above help something...

 

by: suporte_wgsystemsPosted on 2005-05-25 at 06:56:35ID: 14077324

I said it wrong.. sorry

The KeySortDropDownList.dll is not a user control..
its a custom control of a dropdownlist that I have got.. like this dropdownlist:
http://authors.aspalliance.com/thycotic/demos/3/KeySortDropDownListDemo.aspx

And the ControleMessageBox.dll is another custom control.. that I have compiled from a project x.. like the KeySortDropDownList.

 

by: RejojohnyPosted on 2005-05-25 at 06:59:47ID: 14077358

does these controls have any dependencies?

 

by: RejojohnyPosted on 2005-05-25 at 07:06:45ID: 14077431

is this a intranet or internet application? what kind of authetication have u planned? do u require anonymous access? if not, temove it and just keep the windows authentication

 

by: suporte_wgsystemsPosted on 2005-05-25 at 07:16:45ID: 14077555

Its a intranet application.

What kind of authenticantion? R u saying on IIS?
I just have set the configuration of IIS to default.
On the stab "Security" of my virtual directory properties on IIS I didnt changed nothing.
Theres a option "Anonymous Control Access and Autentication" that have a button "Edit..."

Do I have to set some change on this config??


(The intranet application will be access only by a group of members that the administrator will allow to access the folder.)

 

by: RejojohnyPosted on 2005-05-25 at 07:22:53ID: 14077617

ys, in IIS .. just try removing the anonymous access check box and set the access as "Windows Integrated" ..

 

by: suporte_wgsystemsPosted on 2005-05-25 at 07:29:52ID: 14077711

I have changed and I still getting the error message

 

by: RejojohnyPosted on 2005-05-25 at 07:53:33ID: 14077982

am stumped .. did u try this with a local directory? Does that work fine?

 

by: suporte_wgsystemsPosted on 2005-05-25 at 08:52:29ID: 14078651

yes it work with no errors

 

by: suporte_wgsystemsPosted on 2005-05-25 at 12:39:35ID: 14080767

Now I was checking the directory :

LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/producao/0b3f3296/7250c154/KeySortDropDownList.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/producao/0b3f3296/7250c154/KeySortDropDownList/KeySortDropDownList.DLL.
LOG: Attempting download of new URL file://sampa/SAMPA_DISC/DadosWG/Temp/Caio/bin/KeySortDropDownList.DLL.

When I enter on the directories(my local machine.. not SAMPA)... the dlls.. was not found there... then I saw that the version of the framework the I'm using is 1.0 and not 1.1.... In the machine was 2 frameworks .... I uninstall the vers. 1.1...
Then when I executed the application.. I was with a different error...
I check too the SAMPA if there was the framework installed but it wasnt.. so I decide to test on another machine(COTIA) that have the framework 1.0 installed...
Now.. the mapped drive is not more :
"//sampa/SAMPA_DISC/DadosWG/Temp/Caio"

I have changed to:
"//COTIA/C$/TesteProducao"

Now the error is:

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: Security error.

Source Error:


Line 36:        
Line 37:         Public Sub New()
Line 38:             MyBase.New
Line 39:             If (ASP.Global_asax.__intialized = false) Then
Line 40:                 ASP.Global_asax.__intialized = true
 

Source File: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\producao\0b3f3296\7250c154\ttzcgqqo.0.vb    Line: 38

Stack Trace:


[SecurityException: Security error.]
   abbott_aspnet.Global..ctor() +0
   ASP.Global_asax..ctor() in C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\producao\0b3f3296\7250c154\ttzcgqqo.0.vb:38
 
Then when i got this error.. I was seeking a solution on the web and I found out this article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;320268
I'm confused..
So.. I have to enter on the "COTIA" / Administrative Tools/.Net Framework Configuration/
And on the .Net Framework Configuration of the machine "COTIA" enter on
code group of machine and create a new code group.. : "Concorrencia", and set the URL to "file://C:/TesteProducao".
I was so confused that I change to on my machine the same configuration.. but setting the URL to:
"file://COTIA/C$/TesteProducao".

Please give some light!
Thanks

 

by: suporte_wgsystemsPosted on 2005-05-25 at 13:53:56ID: 14081446

I read

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20822306.html?query=System.Security.SecurityException&clearTAFilter=true

and

I know now wht I want to do, but not how.....
I want to ...
On ".NET Framework Configuration", rightclick on Runtime Security Policy...

Set Trust Assembly....
But I dunno wht are the assemblies of my application to set they to trusted.

 

by: suporte_wgsystemsPosted on 2005-05-30 at 05:52:23ID: 14107828

Well...
I got the solution in the following website:

http://www.mcse.ms/archive109-2003-12-231023.html

I hope that could help someone =)


 

by: moduloPosted on 2005-06-25 at 02:14:47ID: 14299247

PAQed with points refunded (500)

modulo
Community Support Moderator

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...