Toon posts:

[C#] compile error na uploaden

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo allemaal,

Ik heb een shoutbox gemaakt als eerste projectje in C#, gebruik normaal altijd vb.net en gaat prima, ik upload dus mijn programmatje, maak een applicatie onder IIS, probeer de pagina te openen en ja een fout, ik kijk vanaf mijn server naar de pagina zodat ik de foutmelding kan zien, best irri dat je als client alleen altijd dat verhaal over customerrors krijgt.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS1595: 'System.Runtime.CompilerServices.CompilerGlobalScopeAttribute' is defined in multiple places; using definition from 'C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'

Source Error:

 

Line 25:     
Line 26:     
Line 27:     [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28:     public class Global_asax : ShoutBox2.Global {
Line 29:


ik heb op msdn gezocht kon zo snel niets vinden, iemand een idee hoe ik dit oplos?

Martin

Verwijderd

Iets meer zelf zoeken mag ook wel (www.deja.com).. als ik daar zoek op 'CompilerServices.CompilerGlobalScopeAttribute is defined in multiple places' dan krijg ik een hele berg hits, met daarin ook deze:
Make sure that the ASP.NET account has access to the path. I have seen this
problem on an installation where ASP.NET did not have access to the root
directory of the system drive.

Verwijderd

Topicstarter
heb net dus flink wat van die threads doorgelezen, maar ja, asp.net heeft al access tot alle folders en files op die drive, dus dat is niet echt het probleem, had die fout al eens eerder gehad, sinds dien heeft asp.net access tot alle files op mijn webdrive en de root, maar ja, ook opnieuw compilen, etc.. heeft ook allemaal niet geholpen.

Nog iemand een idee?

  • EfBe
  • Registratie: Januari 2000
  • Niet online
je hebt het gecompileerd op 1.1 (vs.net 2003) en de server heeft 1.0 geinstalleerd staan?

Creator of: LLBLGen Pro | Camera mods for games
Photography portfolio: https://fransbouma.com


Verwijderd

Topicstarter
nope, ook niet, ik draai overal 1.0, heb nu al vanalles geprobeert, maar heb het nog steeds niet werkend, best vaag, ik zal 1.1 wel eens gaan installeren, had wel wat aardige features zag ik, maar dan moet ik ook die patch kopen :-/

  • EfBe
  • Registratie: Januari 2000
  • Niet online
Waar heb je allemaal "CompilerGlobalScopeAttribute" gedefinieerd? want kennelijk vind hij dat niet goed.

Creator of: LLBLGen Pro | Camera mods for games
Photography portfolio: https://fransbouma.com


Verwijderd

Topicstarter
ik heb het zelf nergens gedeclareerd, probleem is op mijn desktop werkt het prima, maar zodra ik het upload gaat het fout :-/

  • zoepercavia
  • Registratie: September 2001
  • Laatst online: 26-12-2025
De officiele probleem omschrijving staat in http://support.microsoft....?scid=kb%3ben-us%3b318274.

Ik citeer uit het artikel:
Web services use the C# compiler to compile their proxies, regardless of whether they are written in Visual Basic .NET or Visual C# .NET. Therefore, you may receive this error message even if you are working with a Visual Basic .NET project.

Note that you can also receive similar compiler error messages if you combine the src and the codebehind attributes in a single page. However, this is considered a developer error. If you are encountering the specific problem that is described in this article, the error message always specifies the mscorlib.dll assembly.

Default access control lists on a volume grant the Everyone and the Users groups permission to read and to list files. However, sometimes these permissions are removed to provide a more secure environment. When this occurs, Csc.exe cannot cannibalize path names. Because ASP.NET does not currently provide the /nostdlib option to the compiler, the compiler contains multiple instances of assemblies. This problem does not occur when you use the Visual Basic .NET compiler (Vbc.exe) to compile resources.
.

Op een forum stond het volgende:
I didn't see any prblem in your code. I think you need to re-reg your aspnet on top of IIS using aspnet_regiis -i from the command prompt.
.

Dat al geprobeerd? Ik heb namelijk recentelijk mijn win2k server helemaal gepatched volgens de regelen der kunst (lockdown tool, alle patches) en kreeg soortgelijke problemen door rechten problemen. Met de hand oplossen wou niet echt. Alleen een re-install (uninstall en daarna install) kon het oplossen.

Panacea.NL als je geinteresserd bent in IT en Geneeskunde!

Pagina: 1