web.config errors


Author
Message
Pertti Karjalainen
Pertti Karjalainen
StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)
Group: Forum Members
Posts: 54, Visits: 4K
I created a new web site, but when I tried to compile it the compiler complained about not being able to find "Microfour Strataframe Base".  Took me  a while to realize that web.config on this brand new site reference said Base once without a version number, and again with a version number.  I took the version-numberless entry out of the web.config file, and got a bit further.

Next it complained about the Business one, same problem.  Took the versionless entry out, and got further.

Once I was done taking all of these guys out, the compiler complained about an invalid memory access.  It happened on this line:

<add assembly="Microsoft.SqlServer.Replication, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

I took that one out, too, and now I can FINALLY compile without errors.  I don't suppose that the Replication assembly is critical for my app, since I don't replicate SQL Server databases...

Is is just me, or is .NET quirky when it comes to this stuff?  Between this and a bunch of missing templates, I wasted some precious time debugging the framework configuration oddities...

Pertti

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
.NET is pretty quirky when it comes to this stuff.  In a WinForms app, the references that you explicitly add to the project are always maintained, however, with ASP.NET, the reference tree is walked, and any DLL referenced by a DLL that is referenced by your project is automatically brought in as well.  Even if you remove the reference, the next time you rebuild the project or open the web.config file or hit whatever trigger within VS that makes it recalculate the references, that DLL will be right back in there.  It's a pain I tell you.

The web projects don't seem to have the problem with the references inadvertantly being added back in, however, our type editors do not currently work with web projects, so it's a trade off...

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search