Please, help me to understand one thing in Sharepoint, as I'm very new in it...
I have an SP site with many related lists. There are different custom forms (NewForm, for example) that have code behind, as I understand it was designed in Visual Studio 2010, then packed to .dll, signed by .snk/.pfx and stored to GAC. Or maybe it was deployed using .wsp package. In .aspx page I can find an assembly that points to my .dll:
... Assembly=MyCorp.AssemblyName.SomeSpace, MyCorp.AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a8e961163eb5c9cc ...
Now, if I try to sign .dll with another .snk/.pfx and put it to GAC I'll get another public key. I'm changing PublicKeyToken in the .aspx page, restarting IIS and then getting a error. Then I look for corellation ID in logs and find something like "NullReferenceException". The thing I can't understand - the code was not modified, just the PublicKeyToken... Why this doesn't work? Or I'm just simplifying, and everything is much more complicated?
Thanks in advance!
P.S.: Sorry me for my bad english, it's not native for me.